/* ==========================================================================
   CRAFT GALLERY — six compact "art object" category cards (replaces the
   old plain circular row). A hybrid arch/gallery-window silhouette
   (large rounded top, modest rounded bottom), image + integrated ivory
   label, tiny champagne signature line. Deliberately compact — this is
   a category-discovery strip, not a hero section.
   ========================================================================== */
.craft-gallery{
  position: relative;
  width: 100%;
  padding: 42px 40px 48px;
  overflow: hidden;
  background: linear-gradient(160deg, #F7F3EB 0%, #EFE7DA 55%, #F8F5EF 100%);
}

/* Almost-invisible oversized Persian-arch line behind the row — identity
   without turning the section busy or "traditional-looking". */
.craft-gallery-arch{
  position: absolute;
  top: -420px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 900px;
  border: 1px solid rgba(200,168,107,0.07);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.craft-gallery-glow{
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(200,168,107,0.14) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.craft-gallery-row{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
  justify-items: center;
}

/* ---- Card: the <a> owns layout position (rhythm + hover lift), kept
   free of any GSAP-driven inline transform so it never fights the CSS
   below — the one-time entrance lives on .craft-card-reveal instead. ---- */
.craft-card{
  display: block;
  width: 100%;
  max-width: 225px;
  transition: transform 550ms var(--ease);
}
.craft-card:focus-visible{ outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 24px; }

/* Editorial rhythm: alternating cards sit a touch lower — not a zigzag,
   just enough to avoid a mechanically identical row. */
.craft-card:nth-child(even){ transform: translateY(10px); }
.craft-card:hover{ transform: translateY(-8px); }
.craft-card:nth-child(even):hover{ transform: translateY(2px); } /* 10px rhythm - 8px lift */

.craft-card-reveal{
  display: flex;
  flex-direction: column;
  height: 275px;
  border-radius: 62px 62px 22px 22px;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow:
    0 1px 2px rgba(24,20,14,0.05),
    0 12px 24px -14px rgba(24,20,14,0.22),
    0 28px 48px -26px rgba(24,20,14,0.2);
  transition: box-shadow 550ms var(--ease);
}
.craft-card:hover .craft-card-reveal{
  box-shadow:
    0 2px 4px rgba(24,20,14,0.06),
    0 18px 32px -16px rgba(24,20,14,0.28),
    0 40px 64px -28px rgba(24,20,14,0.26);
}

/* ---- Image zone: ~75% of card height. The photo is deliberately NOT
   what forms the arch silhouette (that depended on each photo's own
   content/contrast to read clearly, which is exactly why some cards
   looked "rounder" than others). Instead the arch is solid cream
   (.craft-card-reveal's own background, always identical), and the
   photo sits inset inside it as a plain rounded rectangle with its own
   much smaller radius — a museum mat. The silhouette is now 100%
   consistent across every card regardless of what's in the photo. ---- */
.craft-card-image{
  position: relative;
  flex: 0 0 75%;
  margin: 12px 12px 0;
  border-radius: 40px 40px 14px 14px;
  overflow: hidden;
  background: var(--linen);
  box-shadow: inset 0 0 0 1px rgba(20,17,13,.08);
}
.craft-img-wrap{ position: absolute; inset: -2%; }
.craft-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  filter: saturate(.96) sepia(.04);
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
}
.craft-card:hover .craft-card-image img{ transform: scale(1.055); filter: saturate(1) sepia(0); }

/* Very subtle warm light sweep */
.craft-card-sheen{
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,244,222,.14) 50%, transparent 58%);
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
  transition: transform 650ms var(--ease), opacity 650ms var(--ease);
}
.craft-card:hover .craft-card-sheen{ opacity: 1; transform: translateX(30%); }

.craft-card-arrow{
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(253,252,250,.92);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.craft-card-arrow svg{ width: 13px; height: 13px; }
.craft-card:hover .craft-card-arrow{ opacity: 1; transform: scale(1); }

/* ---- Label ---- */
.craft-card-label{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  background: var(--ivory);
}
.craft-card-line{
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: width 550ms var(--ease);
}
.craft-card:hover .craft-card-line{ width: 34px; }
.craft-card-label h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--forest);
  transition: transform 550ms var(--ease);
}
.craft-card:hover .craft-card-label h3{ transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce){
  .craft-card, .craft-card-reveal, .craft-card-image img, .craft-card-sheen,
  .craft-card-arrow, .craft-card-line, .craft-card-label h3{
    transition-duration: .01ms !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Tablet: horizontal scroll, ~3 cards visible                            */
/* ---------------------------------------------------------------------- */
@media (max-width: 1180px){
  .craft-gallery-row{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .craft-gallery-row::-webkit-scrollbar{ display: none; }
  .craft-card{ flex: 0 0 30%; max-width: none; scroll-snap-align: start; }
}

/* ---------------------------------------------------------------------- */
/* Mobile: horizontal swipe, ~1.5 cards visible on purpose                */
/* ---------------------------------------------------------------------- */
@media (max-width: 640px){
  .craft-gallery{ padding: 32px 20px 36px; }
  .craft-gallery-row{ gap: 14px; }
  .craft-card{ flex: 0 0 62%; }
  .craft-card:nth-child(even){ transform: translateY(0); } /* rhythm reads as noise in a single scrolling lane */
  .craft-card:hover{ transform: translateY(-6px); }
  .craft-card-reveal{ height: 250px; border-radius: 56px 56px 20px 20px; }
}
