/* Reserve an empty area beside the CMS heading for the embossed brand mark. */
#tasks.tt-tasks .tt-home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30%);
  grid-template-areas:
    "label mark"
    "title mark"
    "intro mark";
  column-gap: clamp(1rem, 3vw, 3rem);
}

#tasks .tt-home-heading > .tt-home-label { grid-area: label; }
#tasks .tt-home-heading > h2 { grid-area: title; }
#tasks .tt-home-heading > .tt-home-intro { grid-area: intro; }

#tasks [data-tt-imprint] {
  grid-area: mark;
  position: relative;
  width: 100%;
  max-width: 22rem;
  justify-self: end;
  align-self: stretch;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(100deg, transparent, black 27%),
                      linear-gradient(0deg, transparent, black 26%);
  mask-image: linear-gradient(100deg, transparent, black 27%),
              linear-gradient(0deg, transparent, black 26%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

#tasks [data-tt-imprint] svg {
  position: absolute;
  inset: -23% -12% -17% 0;
  width: 112%;
  height: 140%;
  transform: rotate(-14deg) skewX(-5deg);
}

#tasks .tt-imprint-edge {
  opacity: .4;
  transform: translate(.32px, .42px);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #tasks .tt-imprint-edge {
    transition: opacity 900ms ease-out, transform 950ms ease-out;
  }
  #tasks:hover .tt-imprint-edge {
    opacity: .74;
    transform: translate(.5px, .68px);
  }
}

@media (max-width: 42rem) {
  #tasks.tt-tasks .tt-home-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22%);
    grid-template-areas:
      "label label"
      "title mark"
      "intro intro";
    column-gap: .75rem;
  }
  #tasks [data-tt-imprint] {
    min-height: clamp(2.75rem, 11.5vw, 3.5rem);
    max-height: 3.6rem;
  }
  #tasks .tt-home-heading > h2 { align-self: center; }
}
