/* ============================================================
   COLLECTIONS — the bone editorial band
   ============================================================ */

.collections{
  padding: clamp(56px, 8vw, 118px) var(--gutter) clamp(48px, 6vw, 90px);
}

/* — section head ————————————————————————————— */

.sec-head{
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  gap: clamp(24px, 4vw, 68px);
  margin-bottom: clamp(40px, 5.4vw, 76px);
}
.sec-label{
  display: block;
  margin-bottom: 20px;
  color: var(--on-light-mute);
}
h2{
  max-width: 17ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 em{ font-style: italic; color: var(--clay); }
.sec-note{
  max-width: 40ch;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--on-light-mute);
}

/* — grid ————————————————————————————————————— */

.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
}

.piece{ display: block; }

.piece-frame{
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 4 / 4.6;
  border-radius: clamp(16px, 1.6vw, 24px);
  overflow: hidden;
  transition:
    transform .7s var(--ease-out),
    box-shadow .7s var(--ease);
}
.piece-frame::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: .1;
  mix-blend-mode: multiply;
}

/* Three material grounds, cycling — nth-child(1..3) only dressed the
   first row and left every card after it with no ground at all. */
.piece .piece-frame{ background: radial-gradient(78% 66% at 42% 20%, #EFE9DE, #D9CDB9 66%, #C6B79E); }
.piece:nth-child(3n+2) .piece-frame{ background: radial-gradient(78% 66% at 42% 20%, #EDE6DA, #CFC0AA 64%, #B7A488); }
.piece:nth-child(3n) .piece-frame{ background: radial-gradient(78% 66% at 42% 20%, #E9E3DA, #D3CBBE 64%, #BAB0A0); }

.piece:hover .piece-frame{
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(22, 21, 26, .16);
}

.piece-art{
  position: relative;
  z-index: 1;
  width: 78%;
  margin-bottom: 10%;
  transition: transform .8s var(--ease-out);
}
.piece:hover .piece-art{ transform: scale(1.045) translateY(-4px); }

.piece-tag{
  position: absolute;
  z-index: 2;
  top: 14px;
  inset-inline-start: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: var(--espresso);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.piece-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 4px 0;
}
.piece-name{
  font-family: var(--display);
  font-size: 1.34rem;
  line-height: 1.14;
  letter-spacing: -.005em;
}
.piece-name .ar{
  display: block;
  margin-top: 3px;
  font-size: .74rem;
  color: var(--on-light-mute);
}
.piece-count{
  white-space: nowrap;
  font-size: .8rem;
  color: var(--on-light-mute);
  font-variant-numeric: tabular-nums;
}

.piece-line{
  position: relative;
  height: 1px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--line-light);
}
.piece-line::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.piece:hover .piece-line::after{ transform: scaleX(1); }

/* — the plant, in numbers ————————————————————— */

.stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(52px, 6.4vw, 96px);
  padding-top: clamp(30px, 3.4vw, 46px);
  border-top: 1px solid var(--line-light);
}
.stat-n{
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-n sup{
  margin-inline-start: 3px;
  font-family: var(--ui-latin);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--clay);
}
.stat-l{
  max-width: 22ch;
  margin: 10px 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--on-light-mute);
}

/* — responsive ————————————————————————————————— */

@media (max-width: 1080px){
  .sec-head{ grid-template-columns: 1fr; align-items: start; }
  .stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}

@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; gap: 30px; }
  .piece-frame{ aspect-ratio: 4 / 3.6; }
}

@media (max-width: 460px){
  .stats{ grid-template-columns: 1fr; }
}
