
:root {
  --oqan-card-accent: #b6873b;
  --oqan-card-radius: 20px;
  --oqan-card-ease: cubic-bezier(.22,.61,.36,1);
}

.oqan-card {
  position: relative;
  width: 100%;
}

.oqan-card__link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.13);
  border-radius: var(--oqan-card-radius);
  background: #f5f2ea;
  color: #111;
  text-decoration: none;
  isolation: isolate;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(28,21,12,.08);
  transition:
    transform .42s var(--oqan-card-ease),
    box-shadow .42s var(--oqan-card-ease),
    border-color .42s var(--oqan-card-ease);
}

.oqan-card__link:hover,
.oqan-card__link:focus-visible,
.oqan-card__link.is-active {
  transform: translateY(-5px);
  border-color: rgba(182,135,59,.62);
  box-shadow: 0 24px 56px rgba(28,21,12,.16);
  outline: none;
}

.oqan-card__poster,
.oqan-card__video,
.oqan-card__drawing,
.oqan-card__wash,
.oqan-card__overlay,
.oqan-card__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.oqan-card__poster,
.oqan-card__video {
  object-fit: cover;
}

.oqan-card__poster {
  z-index: 1;
  opacity: .16;
  filter: grayscale(.1) contrast(.92) brightness(1.08);
  transform: scale(1.01);
  transition: opacity .85s var(--oqan-card-ease), transform 1.25s var(--oqan-card-ease);
}

.oqan-card__video {
  z-index: 2;
  opacity: 0;
  object-position: center;
  transform: scale(1.035);
  filter: saturate(.94) contrast(1.03);
  transition: opacity .95s var(--oqan-card-ease), transform 1.35s var(--oqan-card-ease);
}

.oqan-card__drawing {
  z-index: 3;
  object-fit: cover;
  object-position: center;
  padding: 0;
  opacity: .98;
  filter:
    contrast(1.22)
    drop-shadow(0 1px 0 rgba(255,255,255,.9))
    drop-shadow(0 -1px 0 rgba(67,42,11,.24))
    drop-shadow(0 0 5px rgba(182,135,59,.20));
  clip-path: inset(0 100% 0 0);
  animation: oqan-card-draw-in 1.65s var(--oqan-card-ease) .12s forwards;
  transition:
    opacity .8s var(--oqan-card-ease),
    filter .8s var(--oqan-card-ease),
    transform 1s var(--oqan-card-ease);
}

@keyframes oqan-card-draw-in {
  to { clip-path: inset(0 0 0 0); }
}

.oqan-card__wash {
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 48%),
    linear-gradient(0deg, rgba(238,233,224,.94) 0%, rgba(245,242,234,.72) 26%, rgba(245,242,234,0) 54%);
  transition: opacity .75s var(--oqan-card-ease);
}

.oqan-card__grain {
  z-index: 5;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.oqan-card__overlay {
  z-index: 6;
  opacity: .03;
  background: linear-gradient(180deg, rgba(0,0,0,0) 26%, rgba(0,0,0,.12) 58%, rgba(0,0,0,.76) 100%);
  transition: opacity .8s var(--oqan-card-ease);
}

.oqan-card__link::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  left: -44%;
  width: 36%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78) 48%, rgba(182,135,59,.26) 54%, transparent);
  mix-blend-mode: screen;
}

.oqan-card__link:hover::before,
.oqan-card__link:focus-visible::before,
.oqan-card__link.is-active::before {
  opacity: 1;
  animation: oqan-card-sweep 1.05s var(--oqan-card-ease) forwards;
}

@keyframes oqan-card-sweep {
  to { left: 110%; }
}

.oqan-card__content {
  position: absolute;
  z-index: 8;
  left: clamp(20px, 3vw, 28px);
  right: clamp(20px, 3vw, 28px);
  bottom: clamp(18px, 2.4vw, 24px);
  transition: color .75s var(--oqan-card-ease), transform .75s var(--oqan-card-ease);
}

.oqan-card__label {
  display: block;
  margin-bottom: 7px;
  color: var(--oqan-card-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.oqan-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.oqan-card__title {
  margin: 0;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 790;
  line-height: .98;
  letter-spacing: -.045em;
}

.oqan-card__description {
  display: block;
  max-width: 82%;
  margin-top: 8px;
  color: rgba(17,17,17,.66);
  font-size: 15px;
  line-height: 1.4;
  transition: color .75s var(--oqan-card-ease);
}

.oqan-card__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  transition:
    transform .55s var(--oqan-card-ease),
    background .55s var(--oqan-card-ease),
    color .55s var(--oqan-card-ease);
}

.oqan-card__link:hover .oqan-card__poster,
.oqan-card__link:focus-visible .oqan-card__poster,
.oqan-card__link.is-active .oqan-card__poster {
  opacity: 0;
  transform: scale(1.03);
}

.oqan-card__link:hover .oqan-card__video,
.oqan-card__link:focus-visible .oqan-card__video,
.oqan-card__link.is-active .oqan-card__video {
  opacity: 1;
  transform: scale(1);
}

.oqan-card__link:hover .oqan-card__drawing,
.oqan-card__link:focus-visible .oqan-card__drawing,
.oqan-card__link.is-active .oqan-card__drawing {
  opacity: .17;
  transform: scale(1.01);
  filter: contrast(1.25) invert(1) drop-shadow(0 0 7px rgba(255,255,255,.22));
  mix-blend-mode: screen;
}

.oqan-card__link:hover .oqan-card__wash,
.oqan-card__link:focus-visible .oqan-card__wash,
.oqan-card__link.is-active .oqan-card__wash {
  opacity: 0;
}

.oqan-card__link:hover .oqan-card__overlay,
.oqan-card__link:focus-visible .oqan-card__overlay,
.oqan-card__link.is-active .oqan-card__overlay {
  opacity: 1;
}

.oqan-card__link:hover .oqan-card__content,
.oqan-card__link:focus-visible .oqan-card__content,
.oqan-card__link.is-active .oqan-card__content {
  color: #fff;
  transform: translateY(-3px);
}

.oqan-card__link:hover .oqan-card__description,
.oqan-card__link:focus-visible .oqan-card__description,
.oqan-card__link.is-active .oqan-card__description {
  color: rgba(255,255,255,.8);
}

.oqan-card__link:hover .oqan-card__arrow,
.oqan-card__link:focus-visible .oqan-card__arrow,
.oqan-card__link.is-active .oqan-card__arrow {
  color: #111;
  background: #fff;
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .oqan-card__link {
    min-height: 270px;
  }

  .oqan-card__drawing {
    padding: 16px;
  }

  .oqan-card__description {
    max-width: 88%;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oqan-card__link,
  .oqan-card__link *,
  .oqan-card__link::before {
    animation: none !important;
    transition: none !important;
  }

  .oqan-card__drawing {
    clip-path: none;
  }
}
