/* Design 11 - The Menu, Alive: the printed takeaway menu as a website, with a shuffling deck of food. */
.hero { padding: 34px 0 60px; background: var(--blue-l); }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; min-height: min(72vh, 640px); overflow: hidden; }
.hero-logo { width: min(300px, 60%); display: block; margin-bottom: 10px; }
h1 { font-size: clamp(34px, 4.6vw, 62px); color: var(--blue); }
h1 em { font-style: normal; color: var(--red); }
.hero-shout { display: inline-block; margin: 18px 0 0; padding: 8px 18px 12px; background: var(--blue); color: #fff; font: 900 clamp(20px, 2.4vw, 30px)/1 var(--sans); text-transform: uppercase; box-shadow: inset 0 -5px 0 var(--red); rotate: -2deg; }
.hero .caps { margin-top: 22px; }
.rise { opacity: 0; animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d) * 110ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; } }

/* the deck: six photos layered over each other, the front one keeps moving to the back */
.deck { position: relative; aspect-ratio: 1 / .86; }
.deck img { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z); rotate: var(--r); filter: drop-shadow(0 18px 16px rgba(20, 35, 59, .3)); transition: left 1.1s cubic-bezier(.5, 0, .2, 1), top 1.1s cubic-bezier(.5, 0, .2, 1), width 1.1s cubic-bezier(.5, 0, .2, 1), rotate 1.1s, scale .3s; cursor: pointer; }
.deck img:hover { scale: 1.07; }
.deck img.lift { animation: lift 1.1s cubic-bezier(.5, 0, .2, 1); }
@keyframes lift { 40% { translate: 0 -46px; } }

.trifold { columns: 3 320px; column-gap: 20px; }
.trifold .mk-cat { break-inside: avoid; margin-bottom: 20px; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .deck { max-width: 480px; width: 100%; margin-inline: auto; }
}
