/* ── Storefront v2 front page — tiles (15 Sept 2026; "exquisite" pass) ─────────────────────────
   Ivory ground, white cards that sit ABOVE it (layered shadow = real depth, not a flat border),
   bold serif titles with a gold hairline, photos in clipped frames that breathe on hover, and a
   gentle rise into place on scroll. Brand palette: ink #2b201a, gold #c5a55a, terracotta #b3541e. */

.wig-front {
	--f-ink: #2b201a; --f-gold: #c5a55a; --f-terra: #b3541e; --f-ivory: #faf6ef;
	--f-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--f-lift: 0 1px 1px rgba(43,32,26,.05), 0 8px 16px -8px rgba(43,32,26,.22), 0 22px 40px -22px rgba(43,32,26,.28);
	--f-lift-hover: 0 2px 4px rgba(43,32,26,.06), 0 18px 32px -12px rgba(43,32,26,.30), 0 40px 70px -30px rgba(43,32,26,.35);
	background: radial-gradient(1200px 500px at 20% -10%, #fffaf2 0%, rgba(255,250,242,0) 60%), linear-gradient(180deg, #f6f0e6 0%, #efe7da 100%);
	padding: 26px 0 56px; font-family: var(--f-ui); color: var(--f-ink);
}
.wig-front__top { display: grid; grid-template-columns: minmax(230px, 1fr) 3fr; gap: 22px; align-items: stretch; }

/* Brand panel — the illustration on a soft halo, caption in italic serif */
.wig-front__brand {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 22px 18px 26px; border-radius: 16px; overflow: hidden;
	background: radial-gradient(420px 520px at 50% 38%, #ffffff 0%, var(--f-ivory) 55%, #f1e8d9 100%);
	box-shadow: var(--f-lift); border: 1px solid rgba(197,165,90,.30);
}
.wig-front__brand::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(197,165,90,.28); border-radius: 10px; pointer-events: none; }
.wig-front__brand img { width: 100%; max-width: 330px; height: auto; display: block; filter: drop-shadow(0 18px 18px rgba(43,32,26,.18)); }
.wig-front__tagline { margin: 16px 6px 0; font: italic 600 clamp(22px, 2.1vw, 30px)/1.2 var(--f-serif); color: var(--f-ink); letter-spacing: .2px; }
.wig-front__tagline::before { content: ""; display: block; width: 44px; height: 1px; margin: 0 auto 12px; background: var(--f-gold); }

.wig-front__tiles { display: grid; grid-template-rows: auto auto; gap: 22px; min-width: 0; }
.wig-front__band-a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wig-front__band-b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wig-front__band { margin-top: 38px; }
.wig-front__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* Section heading — serif with gold rules either side */
.wig-front__head { display: flex; align-items: center; gap: 18px; margin: 0 2px 18px; }
.wig-front__head h2 { flex: 1; display: flex; align-items: center; gap: 16px; margin: 0; font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--f-serif); color: var(--f-ink); }
.wig-front__head h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(197,165,90,.8), rgba(197,165,90,0)); }
.wig-front__head a { color: var(--f-terra); text-decoration: none; font: 600 12px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.wig-front__head a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Tiles: a card that sits above the page ── */
.wig-ft, .wig-fs {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: #fff; border-radius: 14px; border: 1px solid rgba(197,165,90,.22);
	color: inherit; text-decoration: none; box-shadow: var(--f-lift);
	transform: translateY(0); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), border-color .3s;
	will-change: transform;
}
.wig-ft { padding: 18px 18px 16px; }
.wig-fs { padding: 12px 12px 12px; }
.wig-ft:hover, .wig-fs:hover, .wig-ft:focus-visible, .wig-fs:focus-visible {
	transform: translateY(-7px); box-shadow: var(--f-lift-hover), 0 0 0 1px rgba(197,165,90,.55); border-color: rgba(197,165,90,.55); outline: none;
}

/* Bold serif title with a gold hairline that draws out on hover */
.wig-ft__title, .wig-fs__title { display: block; color: var(--f-ink); font-family: var(--f-serif); font-weight: 700; letter-spacing: .15px; }
.wig-ft__title { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.12; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wig-fs__title { font-size: 18px; line-height: 1.15; margin: 0 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wig-ft__title::after, .wig-fs__title::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--f-gold); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.wig-ft:hover .wig-ft__title::after, .wig-fs:hover .wig-fs__title::after { width: 72px; }

/* Photos in clipped frames: a slow breath on hover */
.wig-ft__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wig-ft__ph { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #f4efe7; box-shadow: inset 0 0 0 1px rgba(43,32,26,.05); }
.wig-ft__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transform: scale(1.001); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.wig-ft:hover .wig-ft__ph img, .wig-fs:hover .wig-ft__ph img { transform: scale(1.06); }
.wig-fs .wig-ft__ph { aspect-ratio: 4 / 5; }

/* Call to action: small caps terracotta, the arrow steps forward */
.wig-ft__cta { margin-top: 14px; font: 600 11.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--f-terra); }
.wig-fs .wig-ft__cta { margin-top: 10px; font-size: 10.5px; }
.wig-ft__cta i { display: inline-block; font-style: normal; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.wig-ft:hover .wig-ft__cta i, .wig-fs:hover .wig-ft__cta i { transform: translateX(5px); }

/* Rise into place (only when JS turns it on and motion is welcome) */
.wig-front--anim .wig-reveal { opacity: 0; transform: translateY(18px); }
.wig-front--anim .wig-reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .3s; }
.wig-front--anim .wig-reveal.is-in:hover { transform: translateY(-7px); transition-delay: 0ms !important; }
@media (prefers-reduced-motion: reduce) {
	.wig-ft, .wig-fs, .wig-ft__ph img, .wig-ft__cta i, .wig-ft__title::after, .wig-fs__title::after { transition: none !important; }
	.wig-ft:hover, .wig-fs:hover { transform: none; }
}

@media (max-width: 1100px) { .wig-front__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.wig-front__top { grid-template-columns: 1fr; }
	.wig-front__brand { flex-direction: row; gap: 18px; text-align: left; padding: 16px; }
	.wig-front__brand img { max-width: 120px; }
	.wig-front__tagline::before { margin-left: 0; }
	.wig-front__band-a { grid-template-columns: repeat(3, minmax(200px, 1fr)); overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
	.wig-front__band-a > * { scroll-snap-align: start; }
	.wig-front__band-b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wig-front__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.wig-ft { padding: 14px; }
	.wig-ft__grid { gap: 7px; }
}
@media (max-width: 520px) { .wig-front__band-a { grid-template-columns: repeat(3, 76vw); } }

/* ── 🌿 Brand panel: image + caption ↔ calligraphy, crossfading (15 Sept 2026) ── */
.wig-front__brand .wig-bp { position: relative; width: 100%; flex: 1; min-height: 540px; }
.wig-bp__slide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	opacity: 0; transform: scale(.985); transition: opacity 1.4s ease, transform 1.8s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.wig-bp__slide.is-on { opacity: 1; transform: scale(1); pointer-events: auto; }
.wig-bp__art { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.wig-front__brand .wig-bp img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: none; }
.wig-bp__slide--image .wig-bp__art { padding: 6px 4px 0; }
.wig-bp__fit--none img { filter: drop-shadow(0 16px 16px rgba(43,32,26,.18)) !important; }
.wig-bp__fit--multiply img { mix-blend-mode: multiply; }
.wig-bp__fit--frame img { border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(43,32,26,.45); max-height: 94%; }
.wig-bp__slide--calligraphy .wig-bp__art img { max-width: 88%; max-height: 46%; }
.wig-bp__slide .wig-front__tagline { flex: 0 0 auto; margin-top: 12px; }
@media (max-width: 860px) {
	.wig-front__brand .wig-bp { min-height: 230px; }
	.wig-front__brand .wig-bp__slide { flex-direction: row; gap: 14px; }
	.wig-bp__slide--image .wig-bp__art { flex: 0 0 38%; }
}
@media (prefers-reduced-motion: reduce) { .wig-bp__slide { transition: none; transform: none; } }

/* ── Phones (15 Sept 2026): the brand panel stacks — picture on top, caption beneath, nothing cut off ── */
@media (max-width: 860px) {
	.wig-front__brand { flex-direction: column; text-align: center; padding: 14px 12px 18px; }
	.wig-front__brand .wig-bp { min-height: 420px; overflow: hidden; }
	.wig-front__brand .wig-bp__slide { flex-direction: column; gap: 4px; padding: 0 6px; }
	.wig-front__brand .wig-bp__slide--image .wig-bp__art { flex: 1 1 auto; width: 100%; padding: 4px 0 0; }
	.wig-front__brand .wig-bp img { max-width: 100%; max-height: 310px; }
	.wig-front__brand .wig-bp__slide--calligraphy .wig-bp__art img { max-width: 86%; max-height: 190px; }
	.wig-front__brand .wig-bp__slide .wig-front__tagline { font-size: clamp(20px, 5.6vw, 26px); margin: 12px 10px 0; text-align: center; white-space: normal; overflow-wrap: anywhere; }
	.wig-front__brand .wig-front__tagline::before { margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
	.wig-front__brand .wig-bp { min-height: 380px; }
	.wig-front__brand .wig-bp img { max-height: 260px; }
}
