/* Shared by the Layers section (minimalist.html), the hoodie section (index.html) and hoodies.html.
   The pieces themselves are ordinary product cards (sections/drop/drop.css), like the tees. */
.layers { max-width: var(--max); margin: 0 auto; padding: var(--section-y, clamp(56px, 8vw, 112px)) var(--gutter); scroll-margin-top: var(--header-h); border-top: 1px solid var(--line); }
.layers__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px 56px; align-items: end; margin-bottom: clamp(24px, 4vw, 48px); }
.layers__kicker { grid-column: 1 / -1; font-size: var(--fs-0); font-weight: 700; color: var(--lit); letter-spacing: .04em; text-transform: uppercase; }
.layers__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .95; }
.layers__lede { max-width: 44ch; color: var(--muted); }

.layers__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); }
.piece { position: relative; display: flex; flex-direction: column; min-width: 0; }
.piece__stage {
  position: relative; aspect-ratio: 1 / 1.06; border-radius: var(--radius-img); overflow: hidden;
  /* a lit grey studio floor, tinted by the picked colour, so black pieces still read on a black page */
  background:
    radial-gradient(60% 55% at 50% 40%, rgba(255, 255, 255, .13), transparent 70%),
    radial-gradient(80% 45% at 50% 96%, color-mix(in srgb, var(--sw, #fff) 30%, #2b2b2b) 0%, transparent 75%),
    #191919;
  transition: background .6s ease;
}
.piece__stage::after { /* floor shadow */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 5%; height: 6%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); pointer-events: none;
}
.piece__open { position: absolute; inset: 0; z-index: 1; }
.piece__img { position: absolute; inset: 6% 5% 9%; width: 90%; height: 85%; object-fit: contain; transition: opacity .35s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.piece__img--back { opacity: 0; }
.piece.is-turned .piece__img--back { opacity: 1; }
.piece.is-turned .piece__img--front { opacity: 0; }
@media (hover: hover) {
  .piece:hover .piece__img { transform: translateY(-2%) scale(1.03); }
}
.piece__turn {
  position: absolute; z-index: 2; left: 10px; top: 10px; padding: 6px 10px; border-radius: 999px;
  font: inherit; font-size: var(--fs-0); font-weight: 700; color: var(--fg); background: rgba(0, 0, 0, .55);
  border: 1px solid var(--line); cursor: pointer; backdrop-filter: blur(6px);
}
.piece__turn[aria-pressed="true"] { color: #000; background: var(--lit); border-color: var(--lit); }
.piece .heart--photo { z-index: 2; }
.piece__cap { display: flex; flex: 1; flex-direction: column; gap: 4px; padding-top: 12px; }
.piece__cap .picker { margin: 4px 0 0; }
.piece__add { margin-top: auto; }
.piece__fabric { font-size: var(--fs-0); color: var(--muted); }
.piece__name { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: var(--fs-2); line-height: 1.1; }
.piece__name a { color: inherit; text-decoration: none; }
.piece__name a:hover { color: var(--lit); }
.piece__price { font-weight: 600; }
.piece .swatches { flex-wrap: wrap; margin-top: 4px; }
.piece__cap > :nth-last-child(2) { margin-bottom: 12px; }
/* larger screens: every row of text and the buttons line up across the pieces */
@media (min-width: 900px) {
  .piece { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .piece__cap { display: contents; }
  .piece__fabric { padding-top: 12px; }
  .piece__name, .piece__price { padding-top: 4px; }
  .piece__cap .picker { margin-top: 12px; }
  .piece__add { align-self: end; margin-top: 12px; }
  .layers__row { grid-auto-rows: auto; row-gap: 32px; }
}

@media (max-width: 899px) {
  .layers__head { grid-template-columns: 1fr; }
  /* phones: a row you swipe sideways, one and a bit pieces in view */
  .layers__row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none;
    scroll-padding-inline: var(--gutter); /* snap keeps the gutter instead of pinning the card to the screen edge */
  }
  .layers__row::-webkit-scrollbar { display: none; }
  .piece { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .piece__img { transition: none; }
}

/* hoodies as product cards, with the way on to the full page */
.layers__grid { margin: 0; }
.layers__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }

/* Layer it: a real model photo, with the hoodie's studio shot laid over its corner like a styling page */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 44px); }
.pair { margin: 0; }
/* the tee as worn, with the hoodie laid over its lower right corner (it hangs off the photo's edge) */
.pair__stage { position: relative; width: 80%; }
.pair__worn { display: block; border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.pair__worn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.pair__layer {
  position: absolute; right: -22%; bottom: -6%; width: 54%; aspect-ratio: 1106 / 1422;
  border-radius: var(--radius-img); overflow: hidden; background: var(--frame, #f2f2f2);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(2.5deg); transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.pair__layer img { width: 100%; height: 100%; object-fit: cover; }
.pair:nth-child(even) .pair__layer { transform: rotate(-2.5deg); }
@media (hover: hover) {
  .pair__worn:hover img { transform: scale(1.03); }
  .pair__layer:hover { transform: rotate(0deg) translateY(-6px); }
}
/* caption: one line per piece, name then price, never split mid-price */
.pair__cap { display: grid; gap: 4px; margin-top: calc(6% + 18px); max-width: 80%; font-family: var(--serif); font-style: italic; font-size: var(--fs-2); line-height: 1.2; }
.pair__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pair__cap a { text-decoration: none; }
.pair__cap a:hover { text-decoration: underline; }
.pair__cap small { font-family: var(--mono); font-style: normal; font-size: var(--fs-0); color: var(--muted); white-space: nowrap; }
.pair__plus { color: var(--lit); font-style: normal; }
@media (max-width: 699px) {
  .pairs { grid-template-columns: 1fr; }
  .pair__stage { width: 74%; }
  .pair__layer { right: -30%; width: 56%; }
  .pair__cap { max-width: 100%; font-size: var(--fs-1); }
}

/* "See all 17 hoodies & sweatshirts", centred under its section (owner, 13 Nov) */
.layers__more--center { justify-content: center; }

/* ---------- Tee first. Then the hoodie: a woodblock print on a coffee band (owner's pick, 13 Nov 2026) ---------- */
.woodblock {
  --coffee: #000000; --espresso: #0e0d0c; --mocha: #a39e96; --latte: #ffc53d; --beige: #f2efe9; --paper: #171615; --ink: #f2efe9; --seal: #ffc53d; /* black + yellow since 14 Nov (owner rejected coffee/beige) */
  background: var(--coffee);
  color: var(--beige);
}
.woodblock .layers__kicker { color: var(--latte); }
.woodblock .layers__title { color: var(--beige); }
.woodblock .layers__lede { color: color-mix(in srgb, var(--beige) 78%, transparent); }
.wood { display: grid; gap: clamp(18px, 3vw, 28px); max-width: 1080px; margin: clamp(20px, 3vw, 36px) auto 0; }
.wood__sheet {
  position: relative; padding: clamp(18px, 4vw, 48px) clamp(14px, 4vw, 52px) clamp(30px, 5vw, 60px); border-radius: 4px;
  background: radial-gradient(120% 90% at 30% 20%, #22211f, var(--paper) 55%, #121110);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .42s steps(5, end), opacity .42s steps(5, end);
}
.wood__sheet.is-lifting { transform: translateY(-10%) rotate(-3deg); opacity: 0; }
/* the cutter's registration marks (kento) */
.wood__sheet::before, .wood__sheet::after { content: ""; position: absolute; bottom: 16px; height: 18px; border: solid var(--mocha); opacity: .5; }
.wood__sheet::before { left: 16px; width: 18px; border-width: 0 0 2px 2px; }
.wood__sheet::after { right: 16px; width: 36px; border-width: 0 0 2px 0; }
.wood__print { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: clamp(8px, 2vw, 22px); }
.wood__plus { align-self: center; font: 400 italic clamp(28px, 4vw, 52px)/1 var(--serif); color: var(--mocha); }
.wood__piece { display: grid; gap: 12px; }
.wood__blocks { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--frame, #f2f2f2); }
.wood__block {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  /* the baren sweep: a diagonal wipe with a soft edge, sliding a few pixels into register */
  -webkit-mask-image: linear-gradient(120deg, #000 0 42%, rgba(0,0,0,.6) 46%, transparent 52%); mask-image: linear-gradient(120deg, #000 0 42%, rgba(0,0,0,.6) 46%, transparent 52%);
  -webkit-mask-size: 300% 300%; mask-size: 300% 300%; -webkit-mask-position: 100% 100%; mask-position: 100% 100%;
  transform: translate(-5px, -3px);
  transition: -webkit-mask-position .45s cubic-bezier(.3, .6, .2, 1), mask-position .45s cubic-bezier(.3, .6, .2, 1), transform .3s cubic-bezier(.2, 1.2, .4, 1) .2s;
}
.wood__block--key { filter: grayscale(1) contrast(1.35) brightness(.85); mix-blend-mode: multiply; }
.wood__block--colour { filter: saturate(1.15) contrast(1.04); transform: translate(5px, 3px); }
.wood__block.is-in { -webkit-mask-position: 0 0; mask-position: 0 0; transform: translate(0, 0); }
.wood__tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; color: var(--ink); }
.wood__no { width: 100%; font: 600 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mocha); }
.wood__tag a { font-weight: 700; font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.wood__tag a:hover { color: var(--seal); }
.wood__tag small { font: 500 .75rem/1 var(--mono); color: var(--mocha); }
.wood__seal {
  position: absolute; right: clamp(16px, 4vw, 52px); bottom: clamp(14px, 2.5vw, 26px); display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 10px; background: var(--seal); color: #000; text-align: center;
  font: 800 .625rem/1.05 var(--display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), inset 0 0 0 4px var(--seal);
  transform: rotate(-6deg) scale(1.35); opacity: 0;
}
.wood__seal.is-stamped { animation: wood-stamp .22s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes wood-stamp { to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.wood__controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.wood__looks { display: flex; flex-wrap: wrap; gap: 8px; }
.wood__look {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: none; color: var(--beige);
  font: 600 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.wood__look[aria-pressed="true"] { background: var(--lit); color: #000; border-color: var(--lit); }
.btn--beige { background: var(--lit); color: #000; }
.btn--beige:hover { background: var(--lit-press); }
@media (max-width: 699px) {
  .wood__print { gap: 6px; }
  .wood__sheet { padding-bottom: 84px; }
  .wood__controls { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wood__block, .wood__sheet { transition: none; }
  .wood__seal.is-stamped { animation: none; transform: rotate(-6deg); opacity: 1; }
}
