/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: #070707;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}

.live-clock {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 210;
    color: #e5a63a;
    font-family: Oswald, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-align: right;
    line-height: 1.35;
    pointer-events: none;
    text-transform: uppercase;
}

.live-clock b {
    display: block;
    color: #e10600;
    font-family: "Black Ops One", Impact, sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .08em;
}

@media (max-width: 520px) {
    .live-clock {
        top: 8px;
        right: 10px;
        font-size: 9px;
    }
    .live-clock b { font-size: 12px; }
}




/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;
    height: 175vh;

    background:
        radial-gradient(
            circle at 50% 45%,
            #30140d 0%,
            #160a07 30%,
            #080504 55%,
            #050505 78%
        );
}


/* =========================================================
   STICKY STAGE
========================================================= */

.stage {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 200;
    pointer-events: none;
    will-change: transform;
}

.brand img {
    display: block;
    height: auto;
    width: auto;
    max-height: 200px;
    max-width: min(420px, 78vw);
    object-fit: contain;
}

.stage {
    padding-top: 0;
}

.flame {
    font-size: 38px;

    filter:
        drop-shadow(
            0 0 16px
            rgba(255, 59, 18, .85)
        );
}

.brand h1 {
    margin: 8px 0 3px;

    color: #f7c46a;

    font-size:
        clamp(25px, 3vw, 48px);

    line-height: .95;

    letter-spacing: .16em;
}

.brand h1 span {
    display: block;

    margin-top: 5px;

    font-size: .55em;
}

.brand p {
    margin: 8px 0 0;

    color: #bbbbbb;

    font-size: 11px;

    letter-spacing: .35em;
}


/* =========================================================
   BURGER CONTAINER
========================================================= */

.burger {
    position: relative;

    width: min(620px, 92vw);
    height: 100%;

    z-index: 10;

    transform-origin: center center;

    overflow: visible;
}


/* =========================================================
   BURGER LAYERS
========================================================= */

.layer {
    position: absolute;

    left: 50%;
    top: 50%;

    width: max-content;

    display: flex;

    justify-content: center;
    align-items: center;

    /* GSAP owns transform via xPercent / yPercent */
    transform-origin: center center;

    overflow: visible;

    will-change: transform;
}


/* =========================================================
   STACKING ORDER
========================================================= */

/*
   Upper ingredients render in front
   of lower ingredients.
*/


/* TOP BUN */

.layer[data-i="0"] {
    z-index: 100;
}


/* SAUCE */

.layer[data-i="1"] {
    z-index: 90;
}


/* LETTUCE */

.layer[data-i="2"] {
    z-index: 80;
}


/* TOMATO */

.layer[data-i="3"] {
    z-index: 70;
}


/* ONION */

.layer[data-i="4"] {
    z-index: 60;
}


/* PICKLES */

.layer[data-i="5"] {
    z-index: 50;
}


/* BACON */

.layer[data-i="6"] {
    z-index: 40;
}


/* CHEESE */

.layer[data-i="7"] {
    z-index: 30;
}


/* BEEF PATTY */

.layer[data-i="8"] {
    z-index: 20;
}


/* BOTTOM BUN */

.layer[data-i="9"] {
    z-index: 10;
}


/* =========================================================
   ALL INGREDIENT IMAGES
========================================================= */

.layer img {
    display: block;

    width: auto;
    height: auto;

    max-width: none;
    max-height: none;

    object-fit: contain;

    user-select: none;

    -webkit-user-select: none;
    -webkit-user-drag: none;

    pointer-events: none;

    filter:
        drop-shadow(
            0 10px 12px
            rgba(0, 0, 0, .45)
        );
}


/* =========================================================
   LABELS
========================================================= */

.tag {
    position: absolute;
    top: 50%;
    width: 168px;
    padding: 8px 12px;
    transform: translateY(-50%);
    text-align: center;
    border: 1px solid rgba(229, 166, 58, .85);
    border-radius: 30px;
    background: rgba(5, 5, 5, .92);
    box-shadow: 0 0 25px rgba(255, 132, 0, .08);
    z-index: 500;
    pointer-events: none;
}

.tag::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 1px;
    background: #e5a63a;
}

.tag::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 2px solid #e5a63a;
    border-radius: 50%;
    background: #070707;
    transform: translateY(-50%);
}


/* LABEL TITLE */

.tag b {
    display: block;
    color: #e10600;
    font-family: "Black Ops One", Impact, "Arial Black", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #1a0000, 0 0 12px rgba(225, 6, 0, .35);
}


/* LABEL DESCRIPTION */

.tag span {
    display: block;
    margin-top: 3px;
    color: #d8d0c0;
    font-family: Oswald, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
}


/* =========================================================
   CENTERED LABELS
========================================================= */

.tag.right {
    left: calc(100% + 22px);
    text-align: center;
}

.tag.right::before { right: 100%; }
.tag.right::after { right: calc(100% + 26px); }

.tag.left {
    right: calc(100% + 22px);
    left: auto;
    text-align: center;
}

.tag.left::before { left: 100%; }
.tag.left::after { left: calc(100% + 26px); }


/* =========================================================
   SCROLL HINT
========================================================= */

.hint {
    position: absolute;

    left: 50%;
    bottom: 3vh;

    transform:
        translateX(-50%);

    color: #e5a63a;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .30em;

    white-space: nowrap;

    z-index: 200;

    pointer-events: none;
}


/* =========================================================
   FINAL MESSAGE
========================================================= */

.burger-complete {
    position: absolute;

    left: 50%;
    bottom: 5vh;

    transform:
        translateX(-50%);

    text-align: center;

    opacity: 0;

    white-space: nowrap;

    pointer-events: none;

    z-index: 200;
}

.burger-complete span {
    display: block;

    margin-bottom: 7px;

    color: #e5a63a;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .35em;
}

.burger-complete strong {
    display: block;

    color: #e10600;

    font-family: "Black Ops One", Impact, "Arial Black", sans-serif;

    font-size:
        clamp(24px, 3vw, 42px);

    font-weight: 400;

    letter-spacing: .08em;

    text-shadow:
        0 0 20px
        rgba(255, 120, 20, .25);
}


/* =========================================================
   FINISH SECTION
========================================================= */

.finish {
    position: relative;

    min-height: 100vh;

    display: grid;

    place-content: center;

    padding: 40px;

    text-align: center;

    background: #050505;
}

.finish p {
    margin:
        0 0 12px;

    color: #999999;

    font-size: 12px;

    letter-spacing: .4em;
}

.finish h2 {
    margin: 0;

    color: #f1b34b;

    font-size:
        clamp(40px, 7vw, 100px);
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .brand {
        left: 50%;
        top: 50%;
    }

    .brand img {
        height: auto;
        max-height: 140px;
        max-width: min(280px, 76vw);
    }

    .brand h1 {
        font-size:
            clamp(20px, 7vw, 32px);
    }

    .brand p {
        display: none;
    }


    .burger {
        width: min(620px, 52vw);
        height: 100%;
    }

    .tag,
    .tag.left,
    .tag.right {
        left: calc(100% + 10px);
        right: auto;
        width: 112px;
        padding: 6px 8px;
        text-align: center;
        transform: translateY(-50%);
    }

    .tag b { font-size: 9px; letter-spacing: .06em; }
    .tag span { display: none; }

    .tag::before,
    .tag.left::before,
    .tag.right::before {
        right: 100%;
        left: auto;
        width: 16px;
    }

    .tag::after,
    .tag.left::after,
    .tag.right::after {
        right: calc(100% + 14px);
        left: auto;
    }


    /* FINAL MESSAGE */

    .burger-complete {
        bottom: 4vh;
    }

    .burger-complete span {
        font-size: 9px;

        letter-spacing: .25em;
    }

    .burger-complete strong {
        font-size:
            clamp(20px, 6vw, 30px);
    }
}

.menu-btn {
    position: relative;
    display: inline-block;
    margin-top: 22px;
    padding: 18px 56px;
    min-width: 200px;
    color: #f3ead6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.42em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #1a0000;
    background: #070707;
    border: 3px solid #e10600;
    border-radius: 2px;
    -webkit-clip-path: polygon(
        12px 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        12px 100%,
        0 calc(100% - 12px),
        0 12px
    );
    clip-path: polygon(
        12px 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        12px 100%,
        0 calc(100% - 12px),
        0 12px
    );
    box-shadow:
        0 0 0 2px #070707,
        0 0 0 5px #e8e0cc,
        0 10px 24px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

.menu-btn::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(225, 6, 0, 0.55);
    pointer-events: none;
}

.menu-btn::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 6px;
    height: 1px;
    background: rgba(243, 234, 214, 0.35);
    pointer-events: none;
}

.menu-btn:hover,
.menu-btn:focus {
    color: #070707;
    background: #e10600;
    text-shadow: none;
    outline: none;
}
/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 520px) {

    .brand img {
        max-height: 110px;
        max-width: min(240px, 80vw);
    }

    .burger {
        width: min(620px, 46vw);
    }

    .tag,
    .tag.left,
    .tag.right {
        width: 96px;
        left: calc(100% + 8px);
        right: auto;
        padding: 5px 6px;
        transform: translateY(-50%);
    }

    .tag b { font-size: 8px; }

    .hint {
        bottom: 2vh;

        font-size: 9px;
    }
}


/* =========================================================
   BRANCHES
========================================================= */

.branches {
    position: relative;
    padding: 36px 18px 44px;
    background: #050505;
    text-align: center;
}

.branches-kicker {
    margin: 0 0 18px;
    color: #e10600;
    font-family: "Black Ops One", Impact, sans-serif;
    font-size: 14px;
    letter-spacing: .28em;
}

.branch-stamps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: min(980px, 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.branch-stamps button,
.branch-stamp {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 8px 12px;
    color: #f3ead6;
    font-family: Oswald, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    background: #070707;
    border: 2px solid #e10600;
    cursor: pointer;
}

.branch-stamps b {
    color: #e10600;
    font-family: "Black Ops One", Impact, sans-serif;
    font-weight: 400;
    margin-right: 6px;
}

.branch-stamps span {
    display: none;
}

.branch-stamps a { text-decoration: none; }
.branch-stamps button:hover,
.branch-stamps button:focus,
.branch-stamp:hover,
.branch-stamp:focus {
    color: #070707;
    background: #e10600;
    outline: none;
}

.branch-stamps button:hover b,
.branch-stamps button:focus b {
    color: #070707;
}

.branch-live {
    min-height: 1.2em;
    margin: 16px 0 0;
    color: #cfc6b4;
    font-family: Oswald, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .14em;
}

@media (max-width: 520px) {
    .branch-stamps button,
.branch-stamp { font-size: 11px; padding: 7px 10px; }
}


/* =========================================================
   MOBILE PERF
========================================================= */

@media (max-width: 900px) {
    .layer img {
        filter: none;
    }

    .brand,
    .burger,
    .layer {
        -webkit-filter: none !important;
        filter: none !important;
    }
}

.branch-contact { margin: 10px 0 0; }
.branch-contact a {
    color: #e5a63a;
    font-family: Oswald, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    text-decoration: none;
}
.branch-contact a:hover { color: #e10600; }

.branch-stamp.is-on {
    color: #070707;
    background: #e10600;
}
.branch-stamp.is-on b { color: #070707; }

.branch-table-wrap {
    width: min(720px, 100%);
    margin: 22px auto 0;
}

.branch-table {
    width: 100%;
    border-collapse: collapse;
    color: #f3ead6;
    background: #070707;
    border: 2px solid #e10600;
    font-family: Oswald, Arial, sans-serif;
    font-size: 14px;
}

.branch-table caption {
    caption-side: top;
    padding: 10px;
    color: #e10600;
    font-family: "Black Ops One", Impact, sans-serif;
    font-size: 18px;
    letter-spacing: .06em;
}

.branch-table th,
.branch-table td {
    padding: 10px 12px;
    border-top: 1px solid #3a1510;
    text-align: right;
}

.branch-table th {
    width: 34%;
    color: #e5a63a;
    font-weight: 700;
}

.branch-table a { color: #f3ead6; }
