/* Pixvu homepage header */
.pxh {
  --pxh-text: #141414;
  --pxh-muted: rgba(20, 20, 20, .62);
  --pxh-line: rgba(20, 20, 20, .08);
  --pxh-line-strong: rgba(20, 20, 20, .13);
  --pxh-pill: rgba(255, 255, 255, .70);
  --pxh-pill-hover: #fff;
  --pxh-card: #ececea;
  --pxh-card-line: rgba(20, 20, 20, .07);
  margin: 10px 0;
  padding: 0;
}

.pxh :focus-visible {
  outline: 2px solid rgba(20, 20, 20, .72);
  outline-offset: 3px;
  border-radius: 10px;
}

.pxh-wrap {
  position: relative;
  width: 100%;
  height: 425px;
  overflow: hidden;
  border: 1px solid var(--pxh-line);
  border-radius: 30px;
  background:
    radial-gradient(760px 380px at 28% 48%, rgba(255, 255, 255, .95), transparent 68%),
    linear-gradient(135deg, #fff 0%, #f7f7f5 50%, #ededeb 100%);
  color: var(--pxh-text);
}

.pxh-l {
  position: relative;
  z-index: 2;
  display: flex;
  width: 50%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 40px 56px;
}

.pxh-news {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--pxh-line-strong);
  border-radius: 999px;
  background: var(--pxh-pill);
  color: var(--pxh-muted);
  font-size: 13px;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}

.pxh-news b {
  padding: 3px 10px;
  border-radius: 999px;
  background: #141414;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.pxh-news svg {
  width: 13px;
  height: 13px;
  transition: transform .25s ease;
}

.pxh-news:hover {
  background: var(--pxh-pill-hover);
  color: var(--pxh-text);
  transform: translateY(-1px);
}

.pxh-news:hover svg { transform: translateX(3px); }

.pxh-h1 {
  margin: 22px 0 0;
  color: var(--pxh-text);
  font-size: clamp(48px, 5.6vw, 80px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .93;
}

.pxh-h1 span {
  display: block;
  background: linear-gradient(90deg, #141414 0%, rgba(20, 20, 20, .42) 92%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.pxh-sub {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--pxh-muted);
  font-size: 17px;
  line-height: 1.5;
}

.pxh-cols {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  display: grid;
  width: 54%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-right: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

.pxh-col {
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  animation: pxh-in 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.pxh-col:nth-child(1) { animation-delay: .05s; }
.pxh-col:nth-child(2) { animation-delay: .18s; }
.pxh-col:nth-child(3) { animation-delay: .31s; }

@keyframes pxh-in {
  to { opacity: 1; transform: none; }
}

.pxh-track {
  --pxh-duration: 78s;
  --pxh-offset: -6s;
  display: flex;
  flex-direction: column;
  animation: pxh-drift var(--pxh-duration) linear infinite;
  animation-delay: var(--pxh-offset);
  will-change: transform;
}

.pxh-col:nth-child(2) .pxh-track { --pxh-duration: 92s; --pxh-offset: -30s; }
.pxh-col:nth-child(3) .pxh-track { --pxh-duration: 84s; --pxh-offset: -52s; }
.pxh-col.rev .pxh-track { animation-direction: reverse; }
.pxh-cols:hover .pxh-track { animation-play-state: paused; }

@keyframes pxh-drift {
  to { transform: translateY(-50%); }
}

.pxh-it {
  position: relative;
  display: block;
  flex: none;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--pxh-card-line);
  border-radius: 18px;
  background: var(--pxh-card);
  box-shadow: 0 12px 28px rgba(20, 20, 20, .10);
}

.pxh-it--3x4 { aspect-ratio: 3 / 4; }
.pxh-it--4x5 { aspect-ratio: 4 / 5; }

.pxh-it img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.pxh-it span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 12px 11px;
  background: linear-gradient(0deg, rgba(10, 10, 10, .80), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}

.pxh-it:hover img { transform: scale(1.05); }
.pxh-it:hover span,
.pxh-it:focus-visible span { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .pxh-wrap { height: auto; border-radius: 24px; }
  .pxh-l { width: 100%; height: auto; padding: 32px 24px 22px; }
  .pxh-cols {
    position: relative;
    width: 100%;
    height: 260px;
    padding: 0 24px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  }
}

@media (max-width: 520px) {
  .pxh-l { padding: 28px 20px 20px; }
  .pxh-h1 { font-size: clamp(42px, 12vw, 60px); }
  .pxh-sub { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pxh-col { animation: none; opacity: 1; transform: none; }
  .pxh-track { animation: none; }
  .pxh-it img,
  .pxh-it span,
  .pxh-news,
  .pxh-news svg { transition: none; }
}
