/* Zen Imperfection collection page, stage version. One pinned stage: the shop for one colour at a time, the silk-and-plate film travelling across the page.
   Matches the rest of the site: white, ink, Outfit light uppercase, lots of air. */
.zg { overflow-anchor: none; --zg-ink: #212121; --zg-soft: #6b6560; --zg-red: #a82730; color: var(--zg-ink); font-family: inherit; background: #fff; }
.zg * { box-sizing: border-box; }

/* without scripts: plain stacked sections */
.zg-ch { max-width: 1100px; margin: 0 auto; padding: 48px clamp(18px, 4vw, 48px); text-align: center; }
.zg-count { margin: 0 0 14px; font-size: 11px; letter-spacing: .26em; color: var(--zg-soft); }
.zg-ch h3 { margin: 0; font-size: clamp(36px, 5.6vw, 86px); font-weight: 200; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.zg-sub { margin: 14px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--zg-soft); }
.zg-sub s { color: #9a948e; margin: 0 4px; }
.zg-plates { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.zg-item { margin: 0; }
.zg-plate { display: block; color: inherit; text-decoration: none; text-align: center; }
.zg-plate img { display: block; width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 12px rgba(30, 24, 18, .2)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.zg-plate:hover img, .zg-plate:focus-visible img { transform: translateY(-4px) scale(1.04); }
.zg-plate:focus-visible { outline: 2px solid var(--zg-ink); outline-offset: 4px; }
.zg-plate__name { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.zg-plate__price { display: block; margin-top: 3px; font-size: 12px; color: var(--zg-red); }
.zg-film, .zg-dots { display: none; }

/* with scripts: the pinned stage */
.zg.is-live .zg-pin { overflow-anchor: none; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.zg.is-live .zg-film { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.zg.is-live .zg-chapters { position: absolute; inset: 0; pointer-events: none; }
.zg.is-live .zg-ch { position: absolute; top: 50%; left: 0; width: 50vw; max-width: none; margin: 0; padding: 0 clamp(40px, 6.5vw, 120px); text-align: left; opacity: 0; will-change: opacity, transform; }
.zg.is-live .zg-ch.is-right { left: 50vw; }
.zg.is-live .zg-ch.is-on { pointer-events: auto; }
.zg.is-live .zg-plates { grid-template-columns: repeat(3, minmax(0, 150px)); gap: 26px 30px; margin-top: 38px; }
.zg.is-live .zg-ch h3 { font-size: clamp(44px, 5vw, 80px); }
.zg.is-live .zg-item { will-change: opacity, transform; }
.zg.is-live .zg-dots { display: flex; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; z-index: 3; }
.zg-dots a { display: block; padding: 3px; }
.zg-dots i { display: block; width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--g) 0 50%, var(--k) 50% 100%); border: 1px solid rgba(0, 0, 0, .25); outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color .3s, transform .3s; }
.zg-dots a.is-on i { outline-color: var(--zg-ink); transform: scale(1.15); }

@media (max-width: 899px) {
  .zg-plates { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
  .zg.is-live .zg-ch, .zg.is-live .zg-ch.is-right { top: calc(46% + 44px); bottom: auto; left: 0; right: 0; width: auto; padding: 0 18px; text-align: center; }
  .zg.is-live .zg-ch h3 { font-size: clamp(30px, 9vw, 44px); }
  .zg.is-live .zg-count { margin-bottom: 8px; }
  .zg.is-live .zg-sub { margin-top: 8px; font-size: 10px; letter-spacing: .12em; }
  .zg.is-live .zg-plates { grid-template-columns: repeat(3, 1fr); margin-top: 14px; gap: 6px 12px; padding: 0 6px; }
  .zg.is-live .zg-plate__name { margin-top: 5px; font-size: 9px; }
  .zg.is-live .zg-plate__price { font-size: 11px; }
  .zg.is-live .zg-dots { right: auto; left: 50%; top: 8px; transform: translateX(-50%); flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) { .zg-plate img, .zg-dots i { transition: none; } }

/* Zen v4 integration: progressive fallback, real header offset, fixed-control clearance. */
[data-collection-stage] .zg-rest-poster{display:block;max-width:380px;margin:0 auto 28px}
[data-collection-stage] .zg-rest-poster img{display:block;width:100%;height:auto;max-height:420px;object-fit:cover}
[data-collection-stage].is-live .zg-rest-poster{display:none}
[data-collection-stage].is-live .zg-pin{top:var(--zg-top,0px);height:var(--zg-height,100svh)}
[data-collection-stage].is-live .zg-ch{width:50%;left:0;padding-inline:clamp(28px,5vw,88px)}
[data-collection-stage].is-live .zg-ch.is-right{left:50%}
[data-collection-stage].is-live .zg-ch[aria-hidden="true"]{pointer-events:none}
[data-collection-stage] .zg-wait-poster{display:none;position:absolute;object-fit:cover;object-position:50% 60%;pointer-events:none}
[data-collection-stage].is-live.is-waiting .zg-film{visibility:hidden}
[data-collection-stage].is-live.is-waiting .zg-wait-poster{display:block}
[data-collection-stage] .zg-dots a{display:flex;width:44px;height:44px;align-items:center;justify-content:center;padding:0}
[data-collection-stage] .zg-dots a:focus-visible{outline:2px solid var(--zg-ink);outline-offset:0;border-radius:22px}
[data-collection-stage].is-live .zg-dots{gap:0;right:8px}
[data-collection-stage] .zg-sub strong{font-weight:400;color:var(--zg-ink)}
@media(max-width:899px){
 [data-collection-stage].is-live .zg-ch,[data-collection-stage].is-live .zg-ch.is-right{left:0;width:100%;top:calc(var(--zg-phone-panel,.46) * 100% + 58px);padding-inline:16px}
 [data-collection-stage].is-live .zg-plates{justify-content:center;grid-template-columns:repeat(3,minmax(0,var(--zg-plate-width,90px)));gap:8px 14px;margin-top:12px;padding:0}
 [data-collection-stage].is-live .zg-dots{top:0;left:50%;right:auto;gap:0}
 [data-collection-stage].is-live .zg-sub{margin-top:6px}
 [data-collection-stage] .zg-plate__name{white-space:normal;line-height:1.25;min-height:12px}
 [data-collection-stage] .zg-rest-poster{max-width:280px}
}
@media(max-width:899px) and (max-height:650px){
 [data-collection-stage].is-live .zg-count{display:none}
 [data-collection-stage].is-live .zg-ch h3{font-size:26px}
}
