/* The opening is a scroll-driven stage. The food list stays still while reading. */
body {
    overflow-x: clip
}

.concept-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 51px
}

header {
    position: absolute;
    top: 51px;
    inset-inline: 0;
    z-index: 8;
    border: 0;
    height: 78px
}

header .brand {
    font-size: 23px
}

header .header-note {
    font-size: 9px
}

.scene-track {
    height: 210svh;
    position: relative
}

.hero {
    position: sticky;
    top: 51px;
    height: calc(100svh - 51px);
    min-height: 630px;
    padding: 0;
    display: block !important;
    isolation: isolate;
    background: var(--paper);
    perspective: 1000px
}

.hero-top {
    position: absolute;
    inset: 90px 5% auto;
    font-size: 8px;
    z-index: 3
}

.giant-word {
    position: absolute;
    inset: 13% 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font: 900 clamp(130px, 22vw, 360px)/.72 'Barlow Condensed', Impact, sans-serif;
    letter-spacing: -.055em;
    color: var(--red);
    z-index: -1;
    will-change: transform;
    transform: translateY(calc(var(--scene, 0)*-100px)) scale(calc(1 + var(--scene, 0)*.55));
    opacity: calc(1 - var(--scene, 0)*.92)
}

.giant-word>span {
    display: block;
    transform: translateX(calc(var(--scene, 0)*-36vw)) rotate(calc(var(--scene, 0)*-14deg))
}

.giant-word>span+span {
    transform: translateX(calc(var(--scene, 0)*36vw)) rotate(calc(var(--scene, 0)*14deg));
    margin-top: 10px
}

.hero-art {
    position: absolute;
    left: 50%;
    top: 26%;
    width: clamp(290px, 36vw, 520px);
    height: auto;
    aspect-ratio: 1;
    max-width: none;
    margin: 0;
    transform: translate(-50%, calc(var(--scene, 0)*-70px)) rotate(calc(var(--scene, 0)*-24deg)) scale(calc(1 - var(--scene, 0)*.2));
    z-index: 3;
    will-change: transform
}

.mascot {
    width: 100%;
    max-width: none;
    max-height: none;
    animation: scene-bounce 2.6s ease-in-out infinite;
    filter: drop-shadow(12px 18px 0 #292e351b)
}

.sunburst {
    width: 92%;
    opacity: .6
}

.orbit-label,
.art-caption,
.little-star {
    display: none
}

.mascot-hit {
    position: absolute;
    inset: 15%;
    z-index: 5;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--ink)
}

.mascot-hit span {
    position: absolute;
    right: -20%;
    bottom: 5%;
    background: var(--yellow);
    border: 2px solid var(--ink);
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    transform: rotate(-12deg);
    animation: hint 3s ease-in-out infinite
}

.hero-copy {
    position: absolute;
    left: 5%;
    bottom: 10%;
    padding: 0;
    width: 35%;
    z-index: 4;
    transform: translateY(calc((1 - var(--scene, 0))*40px));
    opacity: calc(.25 + var(--scene, 0)*.75)
}

.hero-copy h1 {
    font-size: clamp(38px, 4.8vw, 74px) !important;
    letter-spacing: -1px !important;
    margin-bottom: 16px
}

.hero-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 10px
}

.intro {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 18px
}

.cta {
    padding: 12px 18px;
    font-size: 9px
}

.hero-bottom {
    position: absolute;
    inset: auto 5% 20px;
    font-size: 8px
}

.scene-invitation {
    position: absolute;
    right: 5%;
    bottom: 13%;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 9px;
    letter-spacing: 1px;
    writing-mode: vertical-rl
}

.scroll-wheel {
    width: 21px;
    height: 37px;
    border: 1px solid;
    border-radius: 20px;
    position: relative
}

.scroll-wheel:after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 3px;
    height: 8px;
    background: currentColor;
    border-radius: 5px;
    animation: scroll-hint 1.5s infinite
}

.skip-scene {
    position: absolute;
    right: 5%;
    top: 92px;
    font-size: 10px;
    border-bottom: 1px solid;
    padding-bottom: 5px;
    z-index: 5
}

.hero-top>span+span {
    display: none
}

.scene-sticker {
    position: absolute;
    z-index: 4;
    line-height: .9;
    font: 800 24px/.95 'Barlow Condensed', Impact, sans-serif;
    transform: rotate(-12deg);
    will-change: transform
}

.sticker-one {
    top: 36%;
    left: 7%;
    background: var(--blue);
    color: var(--paper);
    padding: 22px 27px;
    border: 3px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    transform: translateY(calc(var(--scene, 0)*-180px)) rotate(calc(-12deg + var(--scene, 0)*40deg))
}

.sticker-one b {
    font-size: 45px
}

.sticker-one span {
    display: block;
    font: 8px 'DM Sans', sans-serif;
    letter-spacing: 2px;
    margin-top: 13px
}

.sticker-two {
    right: 9%;
    top: 37%;
    color: var(--red);
    font-size: 37px;
    transform: translateY(calc(var(--scene, 0)*130px)) rotate(calc(12deg - var(--scene, 0)*35deg))
}

.scene-checks {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 16%;
    z-index: -2;
    background: repeating-conic-gradient(var(--yellow) 0% 25%, transparent 0% 50%) 0 0/60px 60px;
    transform: translateY(calc((1 - var(--scene, 0))*100%));
    opacity: .8
}

.scene-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #292e3510
}

.scene-progress span {
    display: block;
    width: calc(var(--scene, 0)*100%);
    height: 100%;
    background: var(--red)
}

.scene-ring {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border: 1px solid var(--red);
    border-radius: 50%;
    left: 30%;
    top: 20%;
    transform: scale(calc(.1 + var(--scene, 0)*3));
    opacity: calc(var(--scene, 0)*.5);
    z-index: -1
}

.menu-door {
    min-height: 540px;
    background: var(--red);
    color: var(--paper);
    padding: 95px 8% 60px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.menu-door>p {
    font-size: 9px;
    letter-spacing: 3px;
    z-index: 1
}

.menu-door h2 {
    font: 900 clamp(70px, 11vw, 165px)/.85 'Barlow Condensed', Impact, sans-serif;
    letter-spacing: -3px;
    margin: 10px 0 30px;
    transform: rotate(-4deg);
    z-index: 1
}

.menu-door h2 em {
    color: var(--yellow);
    font-style: normal
}

.door-line {
    position: absolute;
    top: 20px;
    white-space: nowrap;
    font: 700 20px 'Barlow Condensed', sans-serif;
    letter-spacing: 3px;
    animation: door-drift 12s linear infinite
}

.door-button {
    border: 1px solid var(--paper);
    border-radius: 50%;
    padding: 22px 35px;
    font-size: 10px;
    transform: rotate(-8deg);
    z-index: 1
}

.door-button span {
    font-size: 25px;
    margin-left: 30px
}

.door-doodle {
    position: absolute;
    font-size: 540px;
    color: #ffffff12;
    right: -100px;
    top: -90px;
    animation: rotate 40s linear infinite
}

.ticker {
    transform: rotate(1deg);
    position: relative;
    z-index: 2;
    background: var(--yellow);
    color: var(--ink);
    margin-top: -5px
}

.menu-section {
    background-image: repeating-conic-gradient(#292e3505 0% 25%, transparent 0% 50%);
    background-size: 70px 70px
}

.category-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px
}

.category-switcher button {
    width: 43px;
    height: 43px;
    border: 1px solid var(--ink);
    background: var(--paper);
    border-radius: 50%;
    font-size: 24px;
    transition: background .2s, transform .2s
}

.category-switcher button:hover {
    background: var(--yellow);
    transform: rotate(-15deg)
}

#category-counter {
    font-size: 11px;
    letter-spacing: 2px
}

.switcher-note {
    font-size: 8px;
    letter-spacing: 1px;
    margin-left: auto
}

.menu-content {
    background: var(--paper);
    padding: 22px 28px;
    border: 1px solid var(--ink);
    box-shadow: 7px 7px 0 #292e3518;
    transform-origin: top center
}

.menu-layout {
    perspective: 1200px;
    align-items: start
}

.category-poster {
    position: sticky;
    top: 85px;
    min-height: 540px;
    transform: rotate(-3deg);
    transition: background .5s
}

.poster-mascot {
    height: 200px;
    position: relative;
    margin-block: 5px
}

.poster-mascot .mascot {
    height: 100%;
    width: 100%;
    animation: scene-bounce 4s ease-in-out infinite
}

.poster-star {
    position: absolute;
    right: 5px;
    top: 160px;
    font-size: 135px;
    opacity: .3
}

.category-poster h3 {
    position: relative
}

.poster-mascot+.poster-star {
    z-index: -1
}

.menu-item {
    transition: padding .2s, background .2s
}

.menu-item:hover {
    background: #eebf651c;
    padding-inline: 8px
}

.menu-item {
    animation: menu-deal .55s both;
    animation-delay: calc(var(--i)*45ms)
}

.theme-wipe {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--red);
    color: var(--paper);
    transform: translateY(101%);
    pointer-events: none
}

.theme-wipe span {
    font: 900 clamp(55px, 11vw, 140px)/.9 'Barlow Condensed', Impact, sans-serif;
    transform: rotate(-6deg)
}

.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 70;
    overflow: hidden
}

.confetto {
    position: absolute;
    font: 900 35px 'Barlow Condensed', sans-serif;
    color: var(--red);
    animation: confetti-pop .95s cubic-bezier(.15, .6, .35, 1) forwards
}

.hero-art.dancing .mascot {
    animation: taco-dance .65s ease-in-out 2
}

.closing {
    overflow: hidden;
    position: relative
}

.closing:before {
    content: '';
    width: 350px;
    height: 350px;
    background: currentColor;
    -webkit-mask: url('assets/asterisk.svg') center/contain no-repeat;
    mask: url('assets/asterisk.svg') center/contain no-repeat;
    position: absolute;
    left: -70px;
    top: -100px;
    font-size: 350px;
    color: #292e3510;
    animation: rotate 30s linear infinite
}

@keyframes scene-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(-6deg)
    }

    50% {
        transform: translateY(-22px) rotate(5deg)
    }
}

@keyframes hint {
    50% {
        transform: rotate(8deg) scale(1.08)
    }
}

@keyframes scroll-hint {
    to {
        transform: translateY(10px);
        opacity: 0
    }
}

@keyframes door-drift {
    to {
        transform: translateX(-25%)
    }
}

@keyframes menu-deal {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-15deg)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes taco-dance {
    25% {
        transform: rotate(-23deg) translateY(-35px) scale(1.08)
    }

    75% {
        transform: rotate(20deg) translateY(-15px) scale(.95)
    }
}

@keyframes confetti-pop {
    from {
        transform: translate(0, 0) rotate(0);
        opacity: 1
    }

    to {
        transform: translate(var(--dx), var(--dy)) rotate(var(--spin));
        opacity: 0
    }
}

/* Three different choreographies: split poster, rolling record, opening curtains. */
body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .giant-word {
    color: var(--paper);
    inset: 23% 0 auto;
    font-style: italic;
    transform: rotate(calc(-9deg + var(--scene, 0)*-45deg)) scale(calc(1 + var(--scene, 0)*1.4));
    opacity: calc(1 - var(--scene, 0)*.95)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .giant-word>span {
    transform: none
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .giant-word>span+span {
    color: var(--yellow)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero-art {
    background: var(--red);
    border: 10px solid var(--paper);
    border-radius: 50%;
    transform: translate(calc(-50% + var(--scene, 0)*25vw), calc(var(--scene, 0)*-65px)) rotate(calc(var(--scene, 0)*230deg)) scale(calc(1 - var(--scene, 0)*.3))
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero-copy {
    color: var(--paper)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .mascot {
    animation: scene-bounce 1.8s infinite
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .sunburst {
    background: var(--yellow);
    width: 80%;
    opacity: .6
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero-copy h1 {
    transform: none;
    font-size: clamp(40px, 5vw, 74px) !important
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .sticker-one {
    background: var(--yellow);
    color: var(--ink)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .sticker-two {
    color: var(--yellow)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .scene-ring {
    border: 30px dotted var(--red)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .menu-door {
    background: var(--yellow);
    color: var(--ink);
    align-items: start;
    text-align: left
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .menu-door h2 em {
    color: var(--red)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .door-button {
    border-color: var(--ink)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster {
    position: relative;
    top: auto;
    min-height: 210px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-right: 230px
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .poster-mascot {
    position: absolute;
    right: 10px;
    top: 0;
    width: 200px
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .poster-star {
    display: none
}

@media(max-width:760px) {
    header {
        top: 51px;
        height: 69px
    }

    .hero {
        height: calc(100svh - 51px);
        min-height: 620px
    }

    .scene-track {
        height: 190svh;
        min-height: 1200px
    }

    .hero-top {
        top: 79px
    }

    .skip-scene {
        top: 78px;
        font-size: 8px
    }

    .giant-word {
        top: 19%;
        font-size: 35vw;
        line-height: .76
    }

    .hero-art {
        top: 29%;
        width: min(80vw, 350px)
    }

    .hero-copy {
        bottom: 8%;
        width: 75%;
        left: 6%;
        opacity: calc(.15 + var(--scene, 0)*.85);
        transform: translateY(calc((1 - var(--scene, 0))*35px))
    }

    .hero-copy h1 {
        font-size: 40px !important;
        margin-bottom: 10px
    }

    .hero-copy .intro {
        display: none
    }

    .hero-copy .eyebrow {
        font-size: 7px;
        margin-bottom: 10px
    }

    .hero-copy .cta {
        font-size: 8px;
        padding: 9px 14px;
        gap: 25px
    }

    .sticker-one {
        top: 37%;
        left: 3%;
        font-size: 15px;
        padding: 12px 15px;
        box-shadow: 3px 3px 0 var(--ink)
    }

    .sticker-one b {
        font-size: 26px
    }

    .sticker-one span {
        font-size: 6px;
        letter-spacing: 1px;
        margin-top: 7px
    }

    .sticker-two {
        top: 57%;
        right: 5%;
        font-size: 26px
    }

    .mascot-hit span {
        font-size: 8px;
        right: -15%;
        bottom: 0;
        padding: 10px
    }

    .scene-invitation {
        right: 5%;
        bottom: 9%;
        font-size: 7px;
        letter-spacing: .5px;
        gap: 8px
    }

    .hero-bottom {
        font-size: 6px;
        bottom: 16px;
        letter-spacing: .5px
    }

    .hero-art {
        transform: translate(calc(-50% + var(--scene, 0)*13vw), calc(var(--scene, 0)*-90px)) rotate(calc(var(--scene, 0)*18deg)) scale(calc(1 - var(--scene, 0)*.3))
    }

    .scene-checks {
        background-size: 40px 40px;
        height: 22%
    }

    .scene-ring {
        width: 85vw;
        height: 85vw;
        left: 7.5%;
        top: 30%
    }

    .menu-door {
        min-height: 450px;
        padding: 75px 5% 45px
    }

    .menu-door h2 {
        font-size: 23vw;
        letter-spacing: -2px
    }

    .door-line {
        font-size: 15px
    }

    .door-doodle {
        font-size: 380px;
        right: -140px
    }

    .menu-section {
        padding-top: 40px
    }

    .categories {
        top: 51px
    }

    .category-poster {
        position: relative;
        top: auto;
        min-height: 210px;
        padding: 22px;
        transform: rotate(-2deg);
        margin: 0 5px
    }

    .category-poster h3 {
        font-size: 40px;
        max-width: 63%
    }

    .category-poster p {
        max-width: 62%;
        font-size: 10px
    }

    .poster-mascot {
        position: absolute;
        width: 46%;
        height: 175px;
        right: 0;
        top: 15px
    }

    .poster-star {
        display: none
    }

    .menu-content {
        padding: 17px 18px;
        box-shadow: 4px 4px 0 #292e3518
    }

    .menu-item h3 {
        font-size: 15px
    }

    .menu-item strong {
        font-size: 14px
    }

    .menu-layout {
        gap: 25px
    }

    .category-switcher {
        margin-bottom: 18px
    }

    .category-switcher button {
        width: 44px;
        height: 44px
    }

    .item-number {
        font-size: 8px
    }

    .menu-item {
        gap: 9px
    }

    .theme-wipe span {
        font-size: 17vw
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .giant-word {
        top: 24%;
        font-size: 36vw
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero-art {
        top: 32%;
        width: 70vw;
        max-width: 320px;
        border-width: 6px;
        transform: translate(calc(-50% + var(--scene, 0)*24vw), calc(var(--scene, 0)*-105px)) rotate(calc(var(--scene, 0)*200deg)) scale(calc(1 - var(--scene, 0)*.3))
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero-copy h1 {
        font-size: 43px !important
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster {
        padding-right: 20px;
        display: flex;
        min-height: 230px
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster h3 {
        font-size: 43px
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .poster-mascot {
        width: 44%;
        height: 170px;
        top: 20px;
        right: 0
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster p {
        max-width: 58%
    }
}

@media(max-height:740px) and (min-width:761px) {
    .hero {
        min-height: 560px
    }

    .giant-word {
        font-size: 26vh
    }

    .hero-art {
        width: 43vh;
        top: 25%
    }

    .hero-copy {
        bottom: 12%
    }

    .hero-copy h1 {
        font-size: 46px !important
    }

    .hero-copy .intro {
        display: none
    }
}

body.paused .hero {
    --scene: 0 !important
}

body.paused .hero-copy {
    opacity: 1;
    transform: none
}

body.paused .scene-track {
    height: auto;
    min-height: 0
}

body.paused .hero {
    position: relative;
    margin-top: 51px
}

body.paused .scene-invitation {
    display: none
}

body.paused .reveal {
    opacity: 1;
    transform: none
}

body.paused * {
    transition: none !important
}

body.paused .confetto {
    display: none
}

@media(prefers-reduced-motion:reduce) {
    .hero-copy {
        opacity: 1;
        transform: none
    }

    .scene-track {
        height: auto;
        min-height: 0
    }

    .hero {
        position: relative;
        margin-top: 51px;
        --scene: 0 !important
    }

    .scene-invitation {
        display: none
    }
}/* Keep the invitation readable at every point of the animation. */
.hero-copy{opacity:1}.hero-copy .intro{opacity:.8}
@media(max-width:760px){.hero-copy{opacity:1}.sticker-two{top:24%;right:4%;font-size:23px;background:var(--paper);padding:7px;box-shadow:2px 2px 0 var(--ink)}body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .sticker-two{background:var(--red)}}
body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) header{color:var(--paper)}body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) header .brand em{color:var(--yellow)}
body:is([data-theme=cantina], [data-theme=roja]) main{overflow-x:clip}
@media(max-width:760px){body[data-theme=cantina] .sticker-two{color:var(--ink)}}

@media(max-width:760px){body[data-theme=roja] .sticker-two{color:var(--paper)}}
