.maithe-collections {
  overflow: hidden;
  background: #ece5db;
  color: var(--color-ink);
}

.maithe-collections__shell {
  width: min(100%, calc(var(--container-width) + (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding: clamp(90px, 11vw, 164px) var(--page-gutter);
}

.maithe-collections__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: 64px;
  margin-bottom: clamp(52px, 7vw, 92px);
}

.maithe-collections__heading p:first-child {
  margin: 0 0 30px;
  font: 500 10px/1.2 var(--font-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.maithe-collections__heading h2 {
  margin: 0;
  font: 400 clamp(58px, 7.3vw, 108px)/.88 var(--font-serif);
  letter-spacing: -.045em;
}

.maithe-collections__heading h2 em {
  color: var(--color-clay);
  font-weight: 400;
}

.maithe-collections__introduction {
  max-width: 360px;
  margin: 0 0 8px;
  color: rgba(31, 26, 23, .7);
  font: 400 15px/1.65 var(--font-sans);
}

.maithe-collections__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-rows: minmax(620px, 72vw) minmax(520px, 62vw);
  gap: 18px;
}

.maithe-collections__card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #7a675b;
}

.maithe-collections__card--3 { grid-column: 1; }
.maithe-collections__card--4 { grid-column: 2; }

.maithe-collections__card > a,
.maithe-collections__card img,
.maithe-collections__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.maithe-collections__card img {
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2, .7, .2, 1), filter 500ms ease;
}

.maithe-collections__card--1 img { object-position: 50% 32%; }
.maithe-collections__card--2 img { object-position: 55% 34%; }
.maithe-collections__card--3 img { object-position: 50% 42%; }
.maithe-collections__card--4 img { object-position: 50% 34%; }

.maithe-collections__shade {
  background:
    linear-gradient(180deg, rgba(20, 16, 14, .08) 10%, rgba(20, 16, 14, .12) 44%, rgba(20, 16, 14, .82) 100%),
    linear-gradient(90deg, rgba(20, 16, 14, .2), transparent 52%);
  transition: background 400ms ease;
}

.maithe-collections__number {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 253, 249, .6);
  border-radius: 50%;
  color: #fffdf9;
  font: 500 9px/1 var(--font-sans);
  letter-spacing: .12em;
}

.maithe-collections__content {
  position: absolute;
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(26px, 4vw, 54px);
  left: clamp(24px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fffdf9;
}

.maithe-collections__areas {
  margin-bottom: 16px;
  font: 500 9px/1.2 var(--font-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.maithe-collections__content strong {
  max-width: 620px;
  font: 400 clamp(38px, 4.3vw, 68px)/.92 var(--font-serif);
  letter-spacing: -.035em;
}

.maithe-collections__description {
  max-width: 410px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font: 400 13px/1.55 var(--font-sans);
  transform: translateY(12px);
  transition: max-height 400ms ease, margin 400ms ease, opacity 350ms ease, transform 400ms ease;
}

.maithe-collections__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 249, .48);
  font: 500 10px/1 var(--font-sans);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.maithe-collections__link i {
  font: normal 16px/1 var(--font-sans);
  transition: transform 250ms ease;
}

.maithe-collections__card a:hover img,
.maithe-collections__card a:focus-visible img { transform: scale(1.035); }

.maithe-collections__card a:hover .maithe-collections__description,
.maithe-collections__card a:focus-visible .maithe-collections__description {
  max-height: 80px;
  margin-top: 16px;
  opacity: 1;
  transform: none;
}

.maithe-collections__card a:hover .maithe-collections__link i,
.maithe-collections__card a:focus-visible .maithe-collections__link i { transform: translate(3px, -3px); }

.maithe-collections__card a:focus-visible {
  outline: 2px solid #fffdf9;
  outline-offset: -5px;
}

@media (min-width: 1200px) {
  .maithe-collections__grid {
    grid-template-rows: 760px 650px;
  }
  .maithe-collections__card--2 .maithe-collections__content strong,
  .maithe-collections__card--4 .maithe-collections__content strong { font-size: clamp(36px, 3.2vw, 52px); }
}

@media (max-width: 980px) {
  .maithe-collections__shell { padding-inline: 36px; }
  .maithe-collections__heading { gap: 36px; }
  .maithe-collections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 660px 560px;
  }
}

@media (max-width: 700px) {
  .maithe-collections__shell { padding: 84px 20px 90px; }
  .maithe-collections__heading {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 44px;
  }
  .maithe-collections__heading p:first-child { margin-bottom: 22px; }
  .maithe-collections__heading h2 { font-size: clamp(48px, 15vw, 68px); }
  .maithe-collections__introduction { max-width: 32rem; font-size: 14px; }
  .maithe-collections__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
    max-height: none;
  }
  .maithe-collections__card,
  .maithe-collections__card--3,
  .maithe-collections__card--4 {
    grid-column: 1;
    aspect-ratio: 4 / 5;
  }
  .maithe-collections__number { top: 20px; left: 20px; }
  .maithe-collections__content { right: 22px; bottom: 24px; left: 22px; }
  .maithe-collections__content strong { font-size: clamp(38px, 12vw, 54px); }
  .maithe-collections__description {
    max-height: none;
    margin-top: 14px;
    opacity: 1;
    transform: none;
  }
  .maithe-collections__link { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .maithe-collections__card img,
  .maithe-collections__description,
  .maithe-collections__link i { transition-duration: .01ms; }
}
