Hearts saw off Hibs to reach the 2022 Scottish Cup Final after a hard-fought win at Hampden Park.
Two absolute beauties from Ellis Simms and Stephen Kingsley had Hearts two goals up in 20 minutes but Chris Cadden reduced the arrears.
Joe Newell saw red for Hibs in the second half and the Jambos held onto their lead to secure European group stage football next season for the first time in 18 years.
Robbie Neilson named an unchanged XI from last week's victory over the Hibees, although there was a place on the bench for Cammy Devlin, fit again after a hamstring injury.
There was an expected cagey start to affairs with neither team able to get a foothold on proceedings but a moment of magic opened the scoring.
Hibs had possession near halfway but Alex Cochrane did well to win the ball and feed Barrie McKay. He slid a ball though for Ellis Simms and the big striker fired an absolute rocket from 25 yards out that flew past Matt Macey.
The Hearts tails were up now, and a moment of sheer genius doubled the lead. Stephen Kingsley lined up a free kick from 30 yards out but instead passed to Liam Boyce who teed up Kingsley to bend a sensational left footed strike into the top corner.
It seemed like one way traffic but almost immediately Hibs were back in the match. Lewis Stevenson cut a ball back for Chris Cadden whose first shot was blocked but the second with his left foot found the corner of the net.
The Jambos were dealt a blow on 36 minutes when Andy Halliday, last week's derby hero, was forced from the field with an ankle knock. He was replaced by Aaron McEneff.
It should have been three on the stroke of half time, Simms worked the ball through to Boyce who bore down on goal but he dragged his shot agonisingly wide.
There was another injury stoppage immediately into the second half when Craig Halkett went down with what appeared to be a serious injury, and he had to leave the field with Taylor Moore replacing him.
The defensive reshuffle seemed to unsettle Hearts, and Hibs won a few corners in succession. From one, Ryan Porteous rose unchallenged to power a header towards goal that Craig Gordon somehow tipped onto the post and gathered safely.
Just after the hour, Hibs were reduced to ten men when Joe Newell flew into a challenge with Peter Haring, catching him late and earning a second yellow card.
Simms had a chance soon after to add a third when McKay slipped him in on the left, his low shot pushed away by Macey and McKay's rebound blocked out for a corner.
The game descended into a flurry of yellow cards as the final ten minutes drew near. Josh Campbell's late challenge on Haring earned a yellow, as did Haring for the reaction, and Hibs skipper Paul Hanlon for good measure, before Moore was also as yellowed for a foul.
Hibs had a glorious chance to level on 89 minutes when Cadden's cross was deflected to Elias Melkersen but the striker nodded past the post.
In the seventh minute of added time, Sylvester Jasper's free kick was pushed away by Gordon as Hearts tried to hold firm.
And hold firm they did, as John Beaton's whistle sounded in the 9th minute of injury time to signal the end of the match and another famous day at the national stadium.
Hearts: Gordon, Kingsley (Devlin, 87'), Haring, Boyce, Atkinson, Halliday (McEneff, 39'), Cochrane, McKay, Halkett (Moore, 50'), Simms, Sibbick. Subs: Stewart, Woodburn, Mackay-Steven, Ginnelly.
Hibs: Macey, McGinn (Campbell, 74'), Porteous, Hanlon, Stevenson (Melkersen, 74'), Cadden, Doyle-Hayes, Newell, Clarke, Henderson (Mueller, 90'), Scott (Jasper, 90'). Subs: Dabrowski, Doig, Allan, Hauge, Mitchell, Bushiri, Delferriere.
Referee: John Beaton