/* ==========================================================================
   Collective Editions — page-specific
   Mother purchase block styles come from gallery.css (enqueued before this file).
   ========================================================================== */

.page-template-template-collective .lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__display,
.page-template-template-collective .lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__sub,
.page-template-template-collective .lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__eyebrow {
  text-shadow: none;
}

/* ---------- Strapline (below manifesto) ---------- */
.lbv-collective-strapline {
  padding-block: clamp(32px, 5vw, 48px);
}

.lbv-collective-strapline__text {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--ink);
}

/* ---------- Porcelain Study column ---------- */
.page-template-template-collective .lbv-collective-product__eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
}

/* Price line, Add to Cart, limited edition note, discover link — centered */
.page-template-template-collective #porcelain-study .lbv-mother__copy > .lbv-price-line,
.page-template-template-collective #porcelain-study .lbv-mother__copy > .lbv-mother__limited,
.page-template-template-collective #porcelain-study .lbv-mother__copy > .lbv-mother__discover {
  text-align: center;
}

.page-template-template-collective #porcelain-study .lbv-mother__copy > .lbv-buy {
  justify-content: center;
}

.page-template-template-collective #porcelain-study .lbv-mother__copy > button.btn {
  display: block;
  margin-inline: auto;
}

.lbv-mother__limited {
  margin-top: 28px;
}

.lbv-collective-product__body {
  margin-top: 22px;
  max-width: 42rem;
  font-family: var(--font-text);
  line-height: 1.65;
  color: var(--ink-soft);
}

.lbv-collective-product__body + .lbv-collective-product__body {
  margin-top: 1em;
}

/* ---------- Discover Collective body ---------- */
.lbv-discover-collective__copy p + p {
  margin-top: 1.25em;
}

.lbv-discover-collective__footer-visual {
  margin-top: clamp(40px, 6vw, 72px);
  min-height: 120px;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(184, 148, 95, 0.15) 0%,
    rgba(245, 240, 232, 0.6) 45%,
    rgba(200, 190, 175, 0.25) 100%
  );
  border-radius: 2px;
}

/* ---------- Rule between product block and Featured Artist (mockup) ---------- */
.lbv-collective-artist {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--rule-gold);
}

/* ---------- Featured Artist — static portrait + bio ---------- */
.lbv-collective-artist__label {
  display: block;
  text-align: center;
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: var(--fs-eyebrow);
  color: var(--ink-soft);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.lbv-collective-artist__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: clamp(40px, 7vw, 96px); */
  gap: 0;
  align-items: center;
}

.lbv-collective-artist__portrait {
  margin: 0;
}

.lbv-collective-artist__portrait {
  justify-self: center;
}

.lbv-collective-artist__portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 23rem;
}

.lbv-collective-artist__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.lbv-collective-artist__bio p {
  margin: 0 0 1.25em;
  font-family: var(--font-text);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38rem;
}

.lbv-collective-artist__bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .lbv-collective-artist__bio {
    margin-top: 1rem;
  }
  
  .lbv-collective-artist__grid {
    grid-template-columns: 1fr;
  }
}

#porcelain-study {
  padding: 0;
  padding-top: 120px;
}

#porcelain-study .lbv-mother__main-img {
  aspect-ratio: initial;
  box-shadow:
    0  2px  6px  rgba(40, 24,  6, 0.07),
    0  8px  28px rgba(40, 24,  6, 0.13),
    0 28px  72px rgba(40, 24,  6, 0.10);
}

/* Space above discover panel — always reserves rhythm from product copy (collapsible body hides rule + text only) */
.page-template-template-collective #discover-collective .lbv-collective-discover-top-pad {
  padding-top: clamp(40px, 5vw, 56px);
}

/* Gradient rule above discover copy — visible only when #collective-discover-body is expanded */
.page-template-template-collective #collective-discover-body .lbv-collective-discover-sep-wrap {
  padding-top: 0;
  padding-bottom: clamp(40px, 5vw, 56px);
  width: 100%;
  box-sizing: border-box;
}

.page-template-template-collective #collective-discover-body {
  padding-bottom: clamp(40px, 5vw, 56px);
}

.page-template-template-collective .lbv-collective-discover-sep {
  display: block;
  border: none;
  height: 1px;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 184, 155, 0.2) 14%,
    rgba(201, 160, 91, 0.42) 50%,
    rgba(200, 184, 155, 0.2) 86%,
    transparent 100%
  );
}

.page-template-template-collective #discover-collective {
  padding: 0;
  margin-top: 0;
}

.lbv-discover-collective__copy {
  font-size: 1rem;
}

#porcelain-title {
  font-size: 3.25rem;
  padding-bottom: 1rem;
}

/*
 * Collective portrait MP4 — desktop:
 * Feather mask applies to `.lbv-hero__video` only; `.lbv-hero__video-loading-still` is a sibling under `.lbv-hero__media` and covers the full hero.
 */
@media (min-width: 901px) {
  .lbv-hero--collective.has-hero-video .lbv-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #12100c;
    background-image: var(--lbv-hero-video-cover, none);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount {
    position: relative;
    z-index: 0;
    isolation: isolate;
    flex: 0 1 auto;
    overflow: hidden;
    width: min(100%, calc(92vh * var(--lbv-hero-video-ar-w, 1) / var(--lbv-hero-video-ar-h, 1)));
    max-height: 92vh;
    aspect-ratio: var(--lbv-hero-video-ar-w, 1176) / var(--lbv-hero-video-ar-h, 1764);
    --lbv-coll-hero-mask-sides: linear-gradient(
      to right,
      hsl(0 0% 0% / 0) 0%,
      hsl(0 0% 0% / 0.45) max(28px, 2.65vw),
      hsl(0 0% 0% / 1) max(88px, 9%),
      hsl(0 0% 0% / 1) calc(100% - max(88px, 9%)),
      hsl(0 0% 0% / 0.45) calc(100% - max(28px, 2.65vw)),
      hsl(0 0% 0% / 0) 100%
    );
    --lbv-coll-hero-mask-soft: radial-gradient(
      farthest-side ellipse at 50% 48%,
      hsl(0 0% 0% / 1) 0%,
      hsl(0 0% 0% / 1) 54%,
      hsl(0 0% 0% / 0.38) 84%,
      hsl(0 0% 0% / 0) 96%
    );
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount .lbv-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    z-index: 0;
    -webkit-mask-image: var(--lbv-coll-hero-mask-sides), var(--lbv-coll-hero-mask-soft);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: var(--lbv-coll-hero-mask-sides), var(--lbv-coll-hero-mask-soft);
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-composite: intersect;
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount picture.lbv-hero__motion-reduce-only {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount picture.lbv-hero__motion-reduce-only img,
  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount > img.lbv-hero__motion-reduce-only {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
  }

  @supports not (mask-composite: intersect) {
    .lbv-hero--collective.has-hero-video .lbv-hero__video-mount .lbv-hero__video {
      -webkit-mask-image: linear-gradient(
        to right,
        hsl(0 0% 0% / 0) 0%,
        hsl(0 0% 0% / 0.4) max(34px, 3.25vw),
        hsl(0 0% 0% / 1) max(100px, 10.5%),
        hsl(0 0% 0% / 1) calc(100% - max(100px, 10.5%)),
        hsl(0 0% 0% / 0.4) calc(100% - max(34px, 3.25vw)),
        hsl(0 0% 0% / 0) 100%
      );
      mask-image: linear-gradient(
        to right,
        hsl(0 0% 0% / 0) 0%,
        hsl(0 0% 0% / 0.4) max(34px, 3.25vw),
        hsl(0 0% 0% / 1) max(100px, 10.5%),
        hsl(0 0% 0% / 1) calc(100% - max(100px, 10.5%)),
        hsl(0 0% 0% / 0.4) calc(100% - max(34px, 3.25vw)),
        hsl(0 0% 0% / 0) 100%
      );
    }
  }
}

@media (max-width: 900px) {
  .lbv-hero--collective.has-hero-video .lbv-hero__media {
    background-image: none;
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    max-height: none;
    aspect-ratio: unset;
    flex: unset;
    overflow: visible;
    -webkit-mask: none !important;
    mask: none !important;
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount .lbv-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount picture.lbv-hero__motion-reduce-only {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount picture.lbv-hero__motion-reduce-only img,
  .lbv-hero--collective.has-hero-video .lbv-hero__video-mount > img.lbv-hero__motion-reduce-only {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }

  .page-template-template-collective .lbv-hero__media img:not(.lbv-hero__video-mount img),
  .page-template-template-collective .lbv-hero__media video:not(.lbv-hero__video-mount .lbv-hero__video) {
    object-position: top;
  }
}

/* ---------- How It's Made — editorial dark section with lazy-loaded portrait video ---------- */
.lbv-him {
  background: var(--ink);
  color: var(--ivory);
  padding-block: clamp(72px, 10vw, 120px);
}

.lbv-him__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

/* Copy column */
.lbv-him__eyebrow {
  display: block;
  color: var(--gold-warm);
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.lbv-him__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ivory);
  margin: 0 0 clamp(24px, 3vw, 36px);
}

.lbv-him__body {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(246, 243, 236, 0.72);
  margin: 0 0 1.25em;
  max-width: 36rem;
}

.lbv-him__detail {
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: rgba(201, 160, 91, 0.6);
}

/* Video column */
.lbv-him__media {
  display: flex;
  justify-content: center;
}

.lbv-him__video-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 480 / 848;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.lbv-him__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading spinner — gold thin arc, centred over poster */
.lbv-him__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  background: rgba(17, 17, 17, 0.28);
  transition: opacity 0.3s ease;
}

.lbv-him__loader[hidden] {
  display: none;
}

.lbv-him__video-wrap.is-loading .lbv-him__loader {
  display: flex;
}

.lbv-him__spinner {
  width: 44px;
  height: 44px;
  animation: lbv-spin 1.1s linear infinite;
}

@keyframes lbv-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lbv-him__spinner { animation: none; }
}

/* Controls pinned to bottom-right of the video wrap */
.lbv-him__controls {
  position: absolute;
  bottom: clamp(12px, 2.5vw, 18px);
  right: clamp(12px, 2.5vw, 18px);
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* Responsive — stack on narrow viewports */
@media (max-width: 900px) {
  .lbv-him__grid {
    grid-template-columns: 1fr;
    gap: clamp(36px, 8vw, 56px);
  }

  .lbv-him__video-wrap {
    max-width: min(320px, 72vw);
    margin-inline: auto;
  }

  .lbv-him__body {
    max-width: none;
  }
}

/* ---------- Footer tagline below artist (mockup: gold small caps + rule) ---------- */
.page-template-template-collective .lbv-collective-footer-tagline {
  border-top: 1px solid var(--rule-gold);
  padding-block: clamp(40px, 6vw, 64px);
}

.page-template-template-collective .lbv-collective-footer-tagline__text {
  margin: 0;
  text-align: center;
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--gold-warm);
}