/* Design 14 - Stacked: a souvlaki builds itself layer over layer in 3D as you scroll; menu panels stack like pages. */
.build { height: 460vh; background: linear-gradient(180deg, #fff, var(--blue-l)); }
.build.static { height: auto; }
.stage { position: sticky; top: 66px; height: calc(100vh - 66px); display: grid; align-items: center; overflow: hidden; }
.build.static .stage { position: static; height: auto; padding: 40px 0; }
.stage-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; }
h1 { font-size: clamp(38px, 5.4vw, 76px); color: var(--blue); margin-top: 8px; }
h1 em { font-style: normal; color: var(--red); }
.copy .lead { margin: 12px 0 0; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px auto 1fr; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 8px; color: var(--muted); opacity: .45; transition: opacity .3s, background .3s, transform .3s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--blue-m); color: var(--blue-d); font-weight: 900; transition: background .3s, color .3s; }
.steps b { font: 900 18px/1 var(--sans); color: var(--blue); }
.steps span { font-size: 14px; }
.steps li.done { opacity: .8; } .steps li.done::before { content: "✓"; background: var(--blue); color: #fff; }
.steps li.on { opacity: 1; background: #fff; box-shadow: 0 0 0 2px var(--blue); transform: translateX(8px); } .steps li.on::before { background: var(--red); color: #fff; }

.pile-wrap { position: relative; height: min(74vh, 640px); perspective: 1300px; }
.pile { position: absolute; left: 50%; top: 56%; width: min(86%, 500px); aspect-ratio: 1; translate: -50% -50%; transform: rotateX(56deg) rotateZ(var(--turn, 0deg)); transform-style: preserve-3d; opacity: var(--pile, 1); }
.board { position: absolute; inset: -9%; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 14px #fff, 0 0 0 17px var(--blue), 0 50px 60px rgba(9, 87, 163, .35); }
.lay { position: absolute; left: 50%; top: 50%; width: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); opacity: var(--o, 0); transform: translateZ(calc(var(--i) * 20px + (1 - var(--e, 0)) * 760px)) rotate(calc((1 - var(--e, 0)) * var(--spin))); filter: drop-shadow(0 10px 8px rgba(20, 35, 59, .35)); will-change: transform; }
.wrapped { position: absolute; left: 50%; top: 50%; height: 88%; width: auto; translate: -50% -50%; opacity: var(--w-o, 0); scale: calc(.6 + var(--w-o, 0) * .4); rotate: calc((1 - var(--w-o, 0)) * -30deg); filter: drop-shadow(0 30px 26px rgba(20, 35, 59, .35)); pointer-events: none; }
.scrollcue { position: absolute; left: 50%; bottom: 0; translate: -50% 0; padding: 7px 16px; border-radius: 999px; background: var(--blue); color: #fff; font: 900 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; animation: cue 1.6s ease-in-out infinite; transition: opacity .4s; }
.scrollcue.off { opacity: 0; }
@keyframes cue { 50% { transform: translateY(6px); } }
main > .keystrip { height: 26px; margin: 0; -webkit-mask-size: 26px 26px; mask-size: 26px 26px; }

/* menu panels that slide over each other */
.stack .mk-cat { margin-bottom: 34px; box-shadow: 0 -14px 30px -18px rgba(9, 87, 163, .55); }
.stack .mk-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
@media (min-width: 961px) and (min-height: 680px) {
  .stack .mk-cat { position: sticky; top: calc(78px + var(--n, 0) * 14px); }
}
@media (max-width: 960px) {
  .stage-in { grid-template-columns: 1fr; gap: 6px; }
  .pile-wrap { order: -1; height: 34vh; }
  .pile { width: min(60%, 250px); top: 52%; }
  .copy .lead, .copy .cta, .copy .caps { display: none; }
  h1 { font-size: 34px; }
  .steps { margin-top: 10px; gap: 0; } .steps li { padding: 3px 8px 3px 4px; } .steps b { font-size: 16px; } .steps span { font-size: 12.5px; }
  .steps li::before { width: 24px; height: 24px; }
  .stack .mk-items { grid-template-columns: 1fr; }
}
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border: 2px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); font: 900 14px/1 var(--sans); cursor: pointer; }
.seg img { width: 30px; height: 30px; object-fit: contain; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
@media (max-width: 960px) { .seg { justify-content: center; margin-top: 8px; } }
