/* Homepage cinematic gallery collage — scoped to .wvn-hg only */
.wvn-gallery.wvn-hg {
  --hg-bg: #f0ede4;
  --hg-bg-2: #f7f2ea;
  --hg-ivory: #2a1f1f;
  --hg-ivory-soft: rgba(42, 31, 31, 0.72);
  --hg-gold: #9a7b6a;
  --hg-rose: #9a6b6b;
  --hg-rose-soft: #b67a7a;
  --hg-display: "Aboreto", Georgia, serif;
  --hg-serif: "Cormorant Garamond", Georgia, serif;
  --hg-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --hg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hg-radius: 18px;
  --hg-radius-sm: 14px;

  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(72px, 9vw, 120px) 0 clamp(64px, 8vw, 100px);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(154, 107, 107, 0.08), transparent 55%),
    linear-gradient(180deg, var(--hg-bg) 0%, var(--hg-bg-2) 100%);
  color: var(--hg-ivory);
  overflow: hidden;
}

.wvn-hg__inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.wvn-hg__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.wvn-hg__eyebrow {
  margin: 0 0 14px;
  font-family: var(--hg-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hg-gold);
}

.wvn-hg__heading {
  margin: 0 0 16px;
  font-family: var(--hg-display);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hg-ivory);
}

.wvn-hg__lede {
  margin: 0 auto;
  max-width: 38em;
  font-family: var(--hg-serif) !important;
  font-size: clamp(17px, 1.5vw, 20px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--hg-ivory-soft);
}

/* Category strip */
.wvn-hg__filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 auto 36px;
  padding: 4px 2px 10px;
  max-width: 100%;
}

.wvn-hg__filters::-webkit-scrollbar {
  display: none;
}

.wvn-hg__filter {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid rgba(42, 31, 31, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(42, 31, 31, 0.78);
  font-family: var(--hg-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.wvn-hg__filter:hover,
.wvn-hg__filter:focus-visible {
  border-color: rgba(154, 107, 107, 0.55);
  color: var(--hg-ivory);
  outline: none;
}

.wvn-hg__filter.is-active {
  background: var(--hg-rose);
  border-color: var(--hg-rose);
  color: #fff;
}

/* Collage — desktop art direction */
.wvn-hg__collage.wvn-mosaic {
  width: 100%;
  margin: 0;
  columns: unset;
  column-gap: unset;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.85fr 0.9fr;
  grid-template-rows: minmax(200px, 22vw) minmax(200px, 22vw) minmax(240px, 26vw);
  gap: 14px;
}

.wvn-hg-card {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 0;
  border-radius: var(--hg-radius);
  overflow: hidden;
  background: #0c0a0a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--hg-ease), transform .8s var(--hg-ease), box-shadow .4s ease;
  transition-delay: calc(var(--hg-i, 0) * 60ms);
}

.wvn-hg-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.wvn-hg-card.is-filtered-out {
  display: none !important;
}

.wvn-hg__collage.is-filtering {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: minmax(220px, 28vw);
}

.wvn-hg__collage.is-filtering .wvn-hg-card {
  grid-column: auto !important;
  grid-row: auto !important;
}

.wvn-hg__collage.is-filtering .wvn-hg-card--feature,
.wvn-hg__collage.is-filtering .wvn-hg-card--portrait,
.wvn-hg__collage.is-filtering .wvn-hg-card--film {
  grid-row: span 2;
}

.wvn-hg-card--feature {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: 22px;
}

.wvn-hg-card--stack-a {
  grid-column: 2;
  grid-row: 1;
}

.wvn-hg-card--stack-b {
  grid-column: 2;
  grid-row: 2;
}

.wvn-hg-card--portrait {
  grid-column: 3;
  grid-row: 1 / 3;
}

.wvn-hg-card--film {
  grid-column: 4;
  grid-row: 1 / 3;
}

.wvn-hg-card--wide {
  grid-column: 1 / 3;
  grid-row: 3;
}

.wvn-hg-card--support-a {
  grid-column: 3;
  grid-row: 3;
}

.wvn-hg-card--support-b {
  grid-column: 4;
  grid-row: 3;
}

.wvn-hg-card--support-c {
  display: none;
}

.wvn-hg .wvn-mosaic a.wvn-hg-card__media {
  margin-bottom: 0;
  break-inside: auto;
  border-radius: 0;
}

.wvn-hg-card__media {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.wvn-hg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.1s var(--hg-ease);
}

.wvn-hg-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(10, 6, 6, 0.35) 68%,
    rgba(8, 5, 5, 0.82) 100%
  );
  pointer-events: none;
  transition: opacity .35s ease;
}

.wvn-hg-card__play {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 235, 0.55);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--hg-ivory);
  background: rgba(10, 6, 6, 0.35);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: border-color .25s ease, background-color .25s ease, transform .35s var(--hg-ease);
}

.wvn-hg-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 18px 16px;
  pointer-events: none;
}

.wvn-hg-card__label {
  margin: 0 0 6px;
  font-family: var(--hg-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 242, 235, 0.7);
}

.wvn-hg-card__title {
  margin: 0 0 10px;
  font-family: var(--hg-serif) !important;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #f7f2eb;
  max-width: 16ch;
}

.wvn-hg-card--feature .wvn-hg-card__title,
.wvn-hg-card--wide .wvn-hg-card__title {
  max-width: 22ch;
  font-size: clamp(18px, 1.6vw, 26px);
}

.wvn-hg-card__story {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--hg-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hg-gold);
  opacity: 0.85;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .35s var(--hg-ease), color .25s ease;
  pointer-events: auto;
  cursor: pointer;
}

.wvn-hg-card__story span {
  display: inline-block;
  transition: transform .35s var(--hg-ease);
}

.wvn-hg-card:hover .wvn-hg-card__media img,
.wvn-hg-card:focus-within .wvn-hg-card__media img {
  transform: scale(1.07);
}

.wvn-hg-card:hover .wvn-hg-card__veil,
.wvn-hg-card:focus-within .wvn-hg-card__veil {
  opacity: 0.92;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(10, 6, 6, 0.45) 62%,
    rgba(8, 5, 5, 0.88) 100%
  );
}

.wvn-hg-card:hover .wvn-hg-card__story,
.wvn-hg-card:focus-within .wvn-hg-card__story {
  opacity: 1;
  transform: translateY(0);
}

.wvn-hg-card:hover .wvn-hg-card__story span,
.wvn-hg-card:focus-within .wvn-hg-card__story span {
  transform: translateX(3px);
}

.wvn-hg-card--feature:hover {
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}

.wvn-hg-card.is-film:hover .wvn-hg-card__play {
  border-color: var(--hg-gold);
  background: rgba(196, 165, 116, 0.2);
  transform: translate(-50%, -50%) scale(1.06);
}

.wvn-hg-card__media:focus-visible {
  outline: 2px solid var(--hg-gold);
  outline-offset: 3px;
}

/* CTA */
.wvn-hg__cta {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.wvn-hg__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(42, 31, 31, 0.28);
  border-radius: 999px;
  font-family: var(--hg-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hg-ivory);
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.wvn-hg__cta-link:hover,
.wvn-hg__cta-link:focus-visible {
  border-color: var(--hg-rose);
  background: rgba(154, 107, 107, 0.1);
  color: var(--hg-rose);
  outline: none;
}

.wvn-hg__cta-arrow {
  display: inline-block;
  transition: transform .35s var(--hg-ease);
}

.wvn-hg__cta-link:hover .wvn-hg__cta-arrow,
.wvn-hg__cta-link:focus-visible .wvn-hg__cta-arrow {
  transform: translateX(4px);
}

/* Tablet */
@media (max-width: 1024px) {
  .wvn-hg__collage.wvn-mosaic {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: minmax(190px, 24vw) minmax(190px, 24vw) minmax(220px, 28vw);
  }

  .wvn-hg-card--feature {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .wvn-hg-card--stack-a {
    grid-column: 2;
    grid-row: 1;
  }

  .wvn-hg-card--stack-b {
    grid-column: 2;
    grid-row: 2;
  }

  .wvn-hg-card--portrait {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .wvn-hg-card--film {
    grid-column: 1;
    grid-row: 3;
  }

  .wvn-hg-card--wide {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .wvn-hg-card--support-a,
  .wvn-hg-card--support-b {
    display: none;
  }
}

/* Mobile — cinematic snap rail + scroll motion */
@media (max-width: 768px) {
  .wvn-gallery.wvn-hg {
    padding: 64px 0 56px;
    overflow: visible;
  }

  .wvn-hg__inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .wvn-hg__head {
    width: min(100% - 32px, 1280px);
    margin: 0 auto 24px;
  }

  .wvn-hg__heading {
    letter-spacing: 0.04em;
  }

  .wvn-hg__filters {
    justify-content: flex-start;
    width: min(100% - 32px, 1280px);
    margin: 0 auto 18px;
    padding-bottom: 8px;
  }

  .wvn-hg__filter {
    padding: 11px 16px;
    min-height: 44px;
  }

  .wvn-hg__rail-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100% - 32px, 1280px);
    margin: 0 auto 14px;
    font-family: var(--hg-sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(42, 31, 31, 0.45);
  }

  .wvn-hg__rail-hint span[data-hg-progress] {
    color: rgba(42, 31, 31, 0.7);
  }

  .wvn-hg__collage.wvn-mosaic,
  .wvn-hg__collage.wvn-mosaic.is-filtering {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 8px max(16px, calc((100% - 1280px) / 2 + 16px)) 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(16px, calc((100% - 1280px) / 2 + 16px));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-rows: unset;
  }

  .wvn-hg__collage.wvn-mosaic::-webkit-scrollbar {
    display: none;
  }

  .wvn-hg-card,
  .wvn-hg-card--feature,
  .wvn-hg-card--stack-a,
  .wvn-hg-card--stack-b,
  .wvn-hg-card--portrait,
  .wvn-hg-card--film,
  .wvn-hg-card--wide,
  .wvn-hg-card--support-a,
  .wvn-hg-card--support-b,
  .wvn-hg-card--support-c,
  .wvn-hg__collage.is-filtering .wvn-hg-card--feature,
  .wvn-hg__collage.is-filtering .wvn-hg-card--portrait,
  .wvn-hg__collage.is-filtering .wvn-hg-card--film {
    grid-column: auto !important;
    grid-row: auto !important;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: min(72vw, 280px);
    height: min(108vw, 440px);
    border-radius: 16px;
    scroll-snap-align: center;
    opacity: 0.55;
    transform: scale(0.92) translateY(18px);
    transition:
      opacity .55s var(--hg-ease),
      transform .55s var(--hg-ease),
      box-shadow .45s ease;
    transition-delay: 0ms;
  }

  .wvn-hg-card.is-in {
    opacity: 0.55;
    transform: scale(0.92) translateY(0);
  }

  .wvn-hg-card.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.48);
    z-index: 2;
  }

  .wvn-hg-card--feature {
    width: min(78vw, 310px);
    height: min(118vw, 490px);
  }

  .wvn-hg-card--film {
    width: min(72vw, 280px);
  }

  .wvn-hg-card--support-c {
    display: flex;
  }

  .wvn-hg-card.is-filtered-out {
    display: none !important;
  }

  .wvn-hg-card__media {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .wvn-hg-card__media img {
    transform: scale(1.08);
    transition: transform 1.2s var(--hg-ease);
  }

  .wvn-hg-card.is-active .wvn-hg-card__media img {
    transform: scale(1);
  }

  .wvn-hg-card__meta {
    padding: 16px 16px 18px;
  }

  .wvn-hg-card__title {
    max-width: 92%;
    font-size: clamp(17px, 4.6vw, 22px);
  }

  .wvn-hg-card__story {
    opacity: 1;
    transform: none;
    min-height: 44px;
    align-items: center;
  }

  .wvn-hg-card__play {
    top: 40%;
  }

  .wvn-hg__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 4px auto 0;
    width: min(100% - 32px, 1280px);
  }

  .wvn-hg__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(42, 31, 31, 0.22);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
  }

  .wvn-hg__dots button.is-on {
    width: 20px;
    background: rgba(42, 31, 31, 0.85);
  }

  .wvn-hg__cta {
    margin-top: 28px;
    width: min(100% - 32px, 1280px);
    margin-left: auto;
    margin-right: auto;
  }

  .wvn-hg__cta-link {
    min-height: 48px;
  }
}

@media (max-width: 430px) {
  .wvn-hg-card {
    width: 74vw;
    height: 112vw;
  }

  .wvn-hg-card--feature {
    width: 80vw;
    height: 120vw;
  }
}

/* Desktop: hide mobile-only rail chrome */
@media (min-width: 769px) {
  .wvn-hg__rail-hint,
  .wvn-hg__dots {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wvn-hg-card,
  .wvn-hg-card__media img,
  .wvn-hg-card__story,
  .wvn-hg-card__story span,
  .wvn-hg-card__veil,
  .wvn-hg-card__play,
  .wvn-hg__cta-arrow,
  .wvn-hg__filter,
  .wvn-hg__dots button {
    transition: none !important;
  }

  .wvn-hg-card,
  .wvn-hg-card.is-in,
  .wvn-hg-card.is-active {
    opacity: 1;
    transform: none;
  }

  .wvn-hg-card:hover .wvn-hg-card__media img,
  .wvn-hg-card:focus-within .wvn-hg-card__media img,
  .wvn-hg-card.is-active .wvn-hg-card__media img {
    transform: none;
  }

  @media (max-width: 768px) {
    .wvn-hg__collage.wvn-mosaic {
      scroll-snap-type: none;
    }
  }
}
