/* =============================================================================
   Bigscreen — Site chrome (nav + footer), shared by every static page.
   SINGLE SOURCE OF TRUTH: edit here (src/site/partials/chrome.css), then run
   `node scripts/build-pages.mjs`. Served as /landing/chrome.css.
   Order preserves the original cascade: base (Builder symbol) -> bs-footer ->
   mobile overlay -> floating pill overrides -> angular shape rules -> submenus
   -> mobile pill. Fonts are declared first so standalone pages don't depend on
   the legacy styles.css.
   ============================================================================= */

/* ---- Fonts (from the rip; same files styles.css uses) ---- */
@font-face { font-family: "Neue Haas Grotesk Display Pro - 55 Roman"; src: local("Neue Haas Grotesk Display Pro - 55 Roman"), url("/landing/assets/052-asset.otf") format("woff2"); font-display: fallback; font-weight: 400; }
@font-face { font-family: "Zen Kaku Gothic New - Regular"; src: local("Zen Kaku Gothic New - Regular"), url("/landing/assets/078-asset.ttf") format("woff2"); font-display: fallback; font-weight: 400; }
@font-face { font-family: "Fragment Mono"; src: local("Fragment Mono"), url("/landing/assets/056-asset.ttf") format("woff2"); font-display: fallback; font-weight: 400; }
@font-face { font-family: "Zen Kaku Gothic New - Medium"; src: local("Zen Kaku Gothic New - Medium"), url("/landing/assets/077-asset.ttf") format("woff2"); font-display: fallback; font-weight: 400; }

/* ==== 1. Base chrome (Builder "Home Styles" symbol: vars, header, footer) ==== */
    /*--- Site-specific Variables ---*/
    :root {
    --navBgColor: 0, 0, 0;
    --logoInvert: 0;
    --headerColor: #FFF;

    --headerBtnHeight: 38px;
    --headerBtnFill: #4D1EF7;
    --headerBtnColor: #FFF;
    --headerBtnBorderColor: transparent;
    --headerBtnHoverTintAlpha: 0.1;
    --headerBtnHoverFill: #4D1EF7;
    --headerBtnHoverColor: #FFF;
    --headerBtnHoverBorderColor: transparent;

    --navBtnBorderColor: #FFF;
    --navBtnInnerColor: #FFF;

    --widthOffset: 0px;
    --mobileWidthOffset: 0px;
    --navMenuHeightOffset: 0px;
    --desktopMaxWidth: min(1648px, max(75vw, 856px));

    --footerBtnFill: #FFF;
    --footerBtnColor: #000;
    --footerBtnBorderColor: #FFF;
    --footerBtnIconInvert: 0;
    --footerBtnHoverFill: #000;
    --footerBtnHoverColor: #FFF;
    --footerBtnHoverBorderColor: #FFF;
    }

    /*--- Site-specific Style Changes ---*/
    div.header-note {
        text-align: right;
        margin-right: 16px;
    }
    /* div.mobile-note {
        display: none;
    } */
    div.mobile-note {
        position: fixed;
        top: 96px;
        left: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 0 0 32px;
        width: 100vw;
        max-width: 100vw;
        height: 32px;
        --bg: 77, 30, 247;
        --bga: 1;
        --col: 255, 255, 255;
        background: rgba(var(--bg), var(--bga));
        color: rgba(var(--col), 1);
        transition: background-color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
        transition-property: background-color, color;
    }
    div.mobile-note a {
        color: inherit;
        transition-property: color;
        text-decoration: underline;
    }
    /*- MOBILE Note -*/
    @media only screen and (max-width: 991px) {
        div.header-note {
            display: none;
        }
        div.mobile-note {
            position: relative;
            top: unset;
            left: unset;
            transform: translateX(64px);
            display: flex;
            justify-content: center;
            align-items: center;
            flex: 0 0 32px;
            width: 100vw;
            max-width: 100vw;
            height: 32px;
            --bg: 77, 30, 247;
            --bga: 1;
            --col: 255, 255, 255;
            background: rgba(var(--bg), var(--bga));
            color: rgba(var(--col), 1);
            transition: background-color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
            transition-property: background-color, color;
        }
    }


    /*##### vvv SYNC BETWEEN SITES vvv #####*/


    /*--- Header ---*/
    a {
        text-decoration: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    .float-right {
        float: right;
    }

    .header-nav-background {
        position: fixed;
        top: 0px;
        z-index: 100;
        width: 100%;
        height: 96px;
        /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), 75%, transparent); */
        /* perf: dropped the frosted-glass backdrop blur — repainting a blurred,
           fixed bar over moving content every scroll frame was a major jank
           source. A slightly more opaque translucent fill reads nearly the same. */
        background: rgba(var(--navBgColor), 0.82);
    }
    .header-nav-frame {
        position: -webkit-sticky;
        position: -moz-sticky;
        position: -o-sticky;
        position: -ms-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
        /* mix-blend-mode: difference; */
        display: block;
        justify-content: start;
        align-items: center;
        margin-left: max(0px, calc(calc(100% - var(--desktopMaxWidth)) / 2));
        width: calc(calc(100% / 12) * 8);
        max-width: calc(calc(var(--desktopMaxWidth) / 12) * 8);
        margin-bottom: -96px;
    }
    .header-btn-frame {
        position: -webkit-sticky;
        position: -moz-sticky;
        position: -o-sticky;
        position: -ms-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        flex-direction: row;
        justify-content: end;
        align-items: center;
        padding: 0px 16px 0px 0px;
        margin-left: auto;
        margin-right: max(0px, calc(calc(100% - var(--desktopMaxWidth)) / 2));
        width: calc(calc(calc(100% / 12) * 4) - 16px);
        max-width: calc(calc(calc(var(--desktopMaxWidth) / 12) * 4) - 16px);
        height: 96px;
        background-color: #00000000;
        color: #FFF;
    }
    .header-btn-frame>div {
        display: flex;
        justify-content: end;
        align-items: center;
    }
    nav.header-nav {
        display: grid;
        height: 96px;
        grid: 'logo logo logo link link link link link';
        gap: 16px;
        padding: 0px 16px;
        background-color: #00000000;
        align-items: center;
        color: #FFF;
    }
    header.nav-mobile {
        display: none;
    }
    a.header-logo {
        grid-area: logo;
        /* margin-top: calc(calc(100% - 42px) * .407);
        margin-bottom: calc(calc(100% - 42px) * .593); */
        margin: 22px 0px 32px;
        height: 42px;
        width: 192px;
        align-items: center;
    }
    a.header-logo img {
        height: 42px;
        width: 192px;
        filter: invert(var(--logoInvert));
    }
    a.header-link {
        grid-area: link / span 1;
        width: fit-content;
        white-space: nowrap;
        color: #787E81;
    }
    a.header-link:not(:hover) span {
        color: var(--headerColor);
    }
    a.header-btn {
        z-index: 2;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: var(--headerBtnHeight);
        max-height: var(--headerBtnHeight);
        padding: 0px 36.5px;
        width: fit-content;
        background: var(--headerBtnFill);
        color: var(--headerBtnColor);
        border-radius: 40px;
        border: 1px solid var(--headerBtnBorderColor);
    }
    /* Real store link: pin :visited to the same adaptive variable as :link, so it
       always tracks the current nav state (dark/light pill) instead of the browser's
       default visited-link color (see purchase-model-button). */
    a.header-btn:link, a.header-btn:visited { color: var(--headerBtnColor); }
    a.header-btn:hover {
        background: linear-gradient(0deg, rgba(0, 0, 0, var(--headerBtnHoverTintAlpha)), rgba(0, 0, 0, var(--headerBtnHoverTintAlpha))), var(--headerBtnHoverFill);
        color: var(--headerBtnHoverColor);
        border-color: var(--headerBtnHoverBorderColor);
    }
    .nav-btn {
        display: none;
    }

    /*- MOBILE Header -*/
    @media only screen and (max-width: 991px) {
        div.builder-blocks[builder-type="blocks"] {
            align-items: flex-start;
            -webkit-box-align: start;
        }
        a.header-link {
            display: none;
        }
        .header-nav-background {
            position: fixed;
            top: 0;
            z-index: 100;
            width: 100%;
            height: 72px;
        }
        .header-nav-frame {
            position: sticky;
            top: 0;
            z-index: 100;
            display: block;
            justify-content: start;
            align-items: center;
            margin-left: 0px;
            width: calc(calc(100% / 6) * 6);
            max-width: calc(calc(100vw / 6) * 6);
            margin-bottom: -72px;
        }
        .header-btn-frame {
            position: sticky;
            top: 0;
            right: 0;
            z-index: 100;
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            padding: 0;
            margin-left: auto;
            margin-right: 64px;
            width: calc(calc(calc(100vw / 6) * 2) - 12px);
            max-width: calc(calc(calc(100vw / 6) * 2) - 12px);
            height: 72px;
        }
        .header-btn-frame>div {
            display: flex;
            align-items: flex-end;
            flex-direction: column;
        }
        nav.header-nav {
            display: grid;
            height: 71px;
            grid: 'logo logo logo logo btn btn';
            gap: 12px;
            padding: 0px 12px;
            align-items: center;
        }
        a.header-logo {
            grid-area: logo;
            margin: 0px 0px;
            height: 30px;
            width: 134px;
            align-items: center;
        }
        a.header-logo img {
            height: 30px;
            width: 134px;
        }
        a.header-btn {
            z-index: 2;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            margin: 16px 0px;
            height: var(--headerBtnHeight);
            max-height: var(--headerBtnHeight);
            padding: 0px 25.5px;
            width: fit-content;
            border-radius: 40px;
        }
        .nav-btn {
            grid-area: btn;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            justify-self: end;
            margin-left: 12px;
            width: 40px;
            height: 40px;
            max-width: 40px;
            max-height: 40px;
            box-sizing: border-box;
            border: 1px solid var(--navBtnBorderColor);
            border-radius: 40px;
        }
        div.nav-btn-inner {
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 28px;
            height: 28px;
            max-width: 28px;
            max-height: 28px;
            box-sizing: border-box;
            border: 1px solid var(--navBtnInnerColor);
            background: var(--navBtnInnerColor);
            border-radius: 28px;
        }
        div.nav-btn-inner.icon-navx {
            display: none;
        }

        /*- MOBILE Nav Menu -*/
        header.nav-mobile {
            position: fixed;
            top: 0;
            z-index: 50;
            display: none; /*block*/
            padding: 103px 12px 32px;
            width: calc(100% - var(--mobileWidthOffset));
            max-width: calc(100vw - var(--mobileWidthOffset));
            height: calc(100% - var(--navMenuHeightOffset));
            max-height: calc(100vh - var(--navMenuHeightOffset));
            background: rgb(var(--navBgColor));
        }
        header.nav-mobile>div {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        header.nav-mobile .base-grid {
            grid-template-columns: repeat(6, 1fr [col]);
            gap: 12px;
            padding: 0px 12px;
        }
        .nav-mobile-btm {
            width: 100%;
            display: flex;
            flex-grow: 1;
            flex-direction: column;
            justify-content: flex-end;
        }
        .nav-mobile-btm>.base-grid {
            padding: 0px;
        }
        .nav-mobile-btm>.base-grid>div {
            display: flex;
            flex-direction: column;
        }
        header.nav-mobile>div a.mobile-link:not(:last-child) {
            margin-bottom: 16px;
        }
        a.mobile-link {
            color: #787E81;
            width: fit-content;
        }
        a.mobile-link:not(:hover) {
            color: var(--headerColor);
        }
    } /*- END MOBILE Header, Nav Menu -*/

    /*- TINY Header -*/
    @media only screen and (max-width: 339px) {
        a.header-btn {
            z-index: -1;
            display: none;
        }
        .mobile-note {
            margin-top: 71px;
        }
    }


    /*--- Footer ---*/

    footer.footer-frame {
        position: relative;
        z-index: 9;
        display: block;
        width: 100%;
        height: fit-content;
        background-color: rgb(var(--navBgColor));
    }
    div.footer {
        margin-left: max(0px, calc(calc(100% - var(--desktopMaxWidth)) / 2));
        width: calc(100% - var(--widthOffset));
        max-width: var(--desktopMaxWidth);
        height: fit-content;
        display: grid;
        grid: 'nav nav nav nav news news . learn learn about about social';
        gap: 0px 16px;
        padding: 0px 16px;
        color: var(--headerColor);
    }
    span.footer-head {
        color: #787E81;
    }
    a.footer-link {
        width: fit-content;
        color: #787E81;
    }
    a.footer-link:not(:hover) {
        color: var(--headerColor);
    }
    a.detail-link {
        width: fit-content;
        color: var(--headerColor);
    }
    a.detail-link:not(:last-child) {
        margin-right: 24px;
    }
    a.detail-link:not(:hover) {
        color: #787E81;
    }
    a.footer-btn {
        z-index: 2;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 46px;
        max-height: 46px;
        padding: 0px 24px 0px 16px;
        width: fit-content;
        background: var(--footerBtnFill);
        color: var(--footerBtnColor);
        border-radius: 40px;
        border: 1px solid var(--footerBtnBorderColor);
        font-family: "Neue Haas Grotesk Display Pro - Medium", "Zen Kaku Gothic New - Medium", sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -.6px;
    }
    a.footer-btn:hover {
        background: var(--footerBtnHoverFill);
        color: var(--footerBtnHoverColor);
        border: 1px solid var(--footerBtnHoverBorderColor);
    }
    a.footer-btn img {
        width: 25px;
        height: 19px;
        margin-right: 12px;
        filter: invert(var(--footerBtnIconInvert));
    }
    a.footer-btn:hover img {
        filter: invert(calc(calc(var(--footerBtnIconInvert) - 1) * -1));
    }
    div.footer-spacer {
        grid-area: auto / nav / auto / social;
        width: calc(100% - 35px);
        margin-right: 32px;
        margin-left: 1px;
        padding-right: 1px;
    }
    div.footer-nav {
        grid-area: 2 / nav;
        display: flex;
        flex-direction: column;
    }
    div.footer-newsletter {
        grid-area: 2 / news;
        display: flex;
        flex-direction: column;
    }
    div.footer-learnmore {
        grid-area: 2 / learn;
        display: flex;
        flex-direction: column;
    }
    div.footer-about {
        grid-area: 2 / about;
        display: flex;
        flex-direction: column;
    }
    div.footer-social {
        grid-area: 2 / social;
        display: flex;
        flex-direction: column;
    }

    /*- MOBILE Footer -*/
    @media only screen and (max-width: 991px) {
        div.footer {
            margin-left: 0;
            width: calc(100% - var(--mobileWidthOffset));
            max-width: 100vw;
            height: fit-content;
            display: grid;
            grid: "nav nav nav nav nav nav"
            "learn learn about about social social"
            "foot foot foot foot foot foot"
            / 1fr 1fr 1fr 1fr 1fr 1fr;
            gap: 0px 12px;
            padding: 0px 12px;
            color: var(--headerColor);
        }
        div.footer .base-grid {
            grid-template-columns: repeat(6, 1fr [col]);
            gap: 12px;
            padding: 0px 12px;
        }
        a.detail-link:not(:last-child) {
            margin-right: 16px;
        }
        a.footer-btn {
            align-self: center;
            width: 100%;
            max-width: 300px !important;
            margin: 0 auto;
        }
        div.footer-spacer {
            grid-area: auto / 1 / auto / 7;
            /* width: calc(100% - 24px);
            margin-right: 0px;
            margin-left: 0px;
            padding-right: 1px; */
            width: 100%;
            margin: 0;
            padding: 0;
        }
        div.footer-nav {
            grid-area: auto / nav;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
        }
        div.footer-nav .row-fill {
            flex: 1 1 100%;
            width: auto;
            max-width: 100%;
        }
        div.footer-nav .row-half {
            flex: 1 1 50%;
            width: auto;
            max-width: 100%;
        }
        div.footer-newsletter {
            grid-area: auto / nav;
            display: flex;
            flex-direction: column;
        }
        div.footer-learnmore {
            grid-area: auto / learn;
            display: flex;
            flex-direction: column;
        }
        div.footer-about {
            grid-area: auto / about;
            display: flex;
            flex-direction: column;
        }
        div.footer-social {
            grid-area: auto / social;
            display: flex;
            flex-direction: column;
        }
        div.footer-fine-print {
            display: flex;
            flex-direction: column-reverse;
        }
    }

    /*- TABLET Footer (keep on this line) -*/
    @media only screen and (min-width: 641px) {
        a.footer-btn {
            margin: 0 auto 0 0;
        }
    }




/* ==== 2. Footer (bs-footer) ==== */

  .bs-footer { background: #fff; color: #0a0a0c; font-family: "Neue Haas Grotesk Display Pro - 55 Roman", "Zen Kaku Gothic New - Regular", sans-serif;
    padding: clamp(48px, 7vw, 96px) 0 0; position: relative; z-index: 10; }
  /* Both live in a Builder flex-column wrapper that doesn't stretch its children, so on
     narrow screens the footer shrinks to its content (~320px) and the pre-footer collapses
     to 0 (killing the grey gradient + circuit lines). Force them to fill the wrapper. */
  .bs-footer, #prefooter-signal { width: 100% !important; align-self: stretch; box-sizing: border-box; }
  /* Match the page .container box (desktopMaxWidth, centered, 16px gutter) so the
     footer's left/right edges line up with the nav logo and the Order Now button. */
  .bs-footer-inner { max-width: var(--desktopMaxWidth); margin: 0 auto; padding-inline: 16px;
    box-sizing: border-box; display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr 1fr; gap: 40px 32px; }
  .bs-foot-corp { color: #646A6E; font-size: 15px; margin: 0 0 24px; }
  .bs-foot-primary { display: flex; flex-direction: column; gap: 2px; }
  .bs-foot-primary a { font-family: "Neue Haas Grotesk Display Pro - 55 Roman", "Zen Kaku Gothic New - Regular", sans-serif;
    font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.18; color: #0a0a0c;
    text-decoration: none; letter-spacing: -0.01em; transition: color .18s cubic-bezier(.22,1,.36,1); }
  .bs-foot-primary a:hover { color: #4D1EF7; }
  .bs-foot-discord { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
    height: 46px; padding: 0 22px; border-radius: 40px; background: #000; color: #fff;
    font-size: 14px; font-weight: 500; text-decoration: none; width: fit-content;
    transition: transform .18s cubic-bezier(.22,1,.36,1); }
  .bs-foot-discord:hover { transform: translateY(-1px); }
  .bs-foot-head { color: #646A6E; font-size: 15px; font-weight: 400; margin: 0 0 18px; }
  .bs-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .bs-foot-col a { color: #0a0a0c; font-size: 15px; text-decoration: none;
    transition: color .18s cubic-bezier(.22,1,.36,1); }
  .bs-foot-col a:hover { color: #4D1EF7; }
  .bs-foot-news-head { margin-top: 40px; }
  .bs-foot-news { display: flex; align-items: center; gap: 8px; max-width: 240px;
    border-bottom: 1px solid #DFDFDF; padding-bottom: 8px; }
  .bs-foot-news input { flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-family: "Neue Haas Grotesk Display Pro - 55 Roman", "Zen Kaku Gothic New - Regular", sans-serif; font-size: 15px; color: #0a0a0c; }
  .bs-foot-news input::placeholder { color: #646A6E; }
  .bs-foot-news button { border: none; background: transparent; color: #0a0a0c; font-size: 18px;
    cursor: pointer; line-height: 1; padding: 2px 4px; }
  .bs-foot-news button:focus-visible, .bs-footer a:focus-visible, .bs-foot-news input:focus-visible {
    outline: 2px solid #4D1EF7; outline-offset: 3px; border-radius: 2px; }
  /* Box narrowed by the 2×16px gutter so the border-top rule spans the same 166→1080
     as the footer columns (not the wider container box). */
  /* width:100%-32px (not just a max-width) keeps the SAME 16px gutter as
     .bs-footer-inner at every breakpoint, so the copyright/legal line stays aligned
     with the columns above it (below --desktopMaxWidth the old max-width-only rule
     collapsed the gutter to 0 and shifted the legal text 16px left). Bottom padding
     opened up to 48px so the plate doesn't crowd the last line. */
  .bs-footer-legal { width: calc(100% - 32px); max-width: calc(var(--desktopMaxWidth) - 32px); margin: clamp(48px, 6vw, 80px) auto 0;
    padding: 24px 0 48px; box-sizing: border-box;
    border-top: 1px solid #DFDFDF; display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; color: #646A6E; font-size: 13px; }
  .bs-footer-legal nav { display: flex; gap: 32px; }
  .bs-footer-legal a { color: #646A6E; text-decoration: none; transition: color .18s; }
  .bs-footer-legal a:hover { color: #0a0a0c; }
  @media (max-width: 991px) {
    .bs-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .bs-foot-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 560px) {
    .bs-footer-inner { grid-template-columns: 1fr; }
    .bs-footer-legal { flex-direction: column; align-items: flex-start; }
    /* On the single-column mobile footer, let the Discord button and the newsletter
       field span the full column instead of hugging their content. */
    .bs-foot-discord { width: 100%; justify-content: center; }
    .bs-foot-news { max-width: none; }
  }


/* ==== 3. Mobile menu overlay (base) ==== */

  #mnav-overlay { position: fixed; inset: 0; z-index: 9999; background: #000; color: #FCFCFD;
    display: flex; flex-direction: column; padding: 96px 24px max(32px, env(safe-area-inset-bottom)) 24px;
    gap: 2px; transform: translateX(100%); visibility: hidden;
    transition: transform .42s cubic-bezier(0.22,1,0.36,1), visibility 0s linear .42s; }
  #mnav-overlay.open { transform: none; visibility: visible; transition: transform .42s cubic-bezier(0.22,1,0.36,1); }
  #mnav-cta { margin-top: 24px; display: flex; align-items: center; justify-content: center;
    min-height: 52px; border-radius: 40px; background: #4D1EF7; color: #FCFCFD;
    font-family: "Neue Haas Grotesk Display Pro - 55 Roman", "Zen Kaku Gothic New - Regular", sans-serif; font-weight: 500; font-size: 16px; text-decoration: none; }
  #mnav-close { position: absolute; top: 22px; right: 16px; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center; background: transparent;
    border: none; color: #FCFCFD; font-size: 30px; line-height: 1; cursor: pointer; }
  #mnav-close:focus-visible, #mnav-overlay a:focus-visible { outline: 2px solid #4D1EF7; outline-offset: 3px; }
  @media (min-width: 992px) { #mnav-overlay { display: none !important; } }
  @media (prefers-reduced-motion: reduce) { #mnav-overlay, #mnav-overlay.open { transition: none; } }


/* ==== 4. Floating pill nav (overrides) ==== */

/* ── Floating pill nav: container-width, solid black, no outline (ported from v2) ── */
.header-nav-background {
  background: #000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-radius: 999px;
}
a.header-logo img { filter: brightness(0) invert(1); }   /* force white wordmark on black */
a.header-link {
  color: rgba(255, 255, 255, 0.62);
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
a.header-link:hover { color: #fff; }
a.header-link span { color: inherit; }
div.mobile-note { display: none !important; }   /* drop full-width shipping bar under the pill */

/* Desktop: one contained pill, logo+links left, order-now right */
@media (min-width: 992px) {
  .header-nav-background {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--desktopMaxWidth);
    max-width: calc(100% - 32px);
    height: 76px;
  }
  /* nav frame spans the full pill so links can center on the pill itself */
  .header-nav-frame {
    position: fixed;
    top: 18px;
    left: max(16px, calc((100% - var(--desktopMaxWidth)) / 2));
    right: max(16px, calc((100% - var(--desktopMaxWidth)) / 2));
    width: auto;
    max-width: none;
    height: 76px;
    margin: 0;
  }
  nav.header-nav {
    position: relative;
    display: flex;
    align-items: center;
    height: 76px;
    width: 100%;
    padding: 0 16px;
    background: transparent;
  }
  a.header-logo, a.header-logo img { height: 22px; width: auto; margin: 0; }
  a.header-logo { display: flex; align-items: center; }
  /* links centered on the pill */
  .header-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
  }
  a.header-link {
    font-family: "Fragment Mono", ui-monospace, monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .header-links { gap: 28px; }
  .header-btn-frame {
    position: fixed;
    top: 18px;
    left: auto;
    right: max(16px, calc((100% - var(--desktopMaxWidth)) / 2));
    width: auto;
    max-width: none;
    height: 76px;
    margin: 0;
    padding: 0 16px 0 0;   /* inset the CTA to the content grid line (matches the 16px logo inset) */
    align-items: center;
  }
  a.header-btn { height: 42px; max-height: 42px; padding: 0 24px; }
  .nav-btn { display: none !important; }
}

/* The "order now" CTA loses its fill without the live JS (coded-beyond) — restore
   the violet pill + white label, on every breakpoint. */
a.header-btn, a.header-btn.coded-beyond {
  background: #4D1EF7 !important;
  color: #fff !important;
  border: 0 !important;
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: -0.01em;
}
a.header-btn:hover, a.header-btn.coded-beyond:hover {
  background: #4000FF !important;
  color: #fff !important;
}

/* Mobile: clean floating pill — logo left, order-now right (links live in footer) */
@media (max-width: 991px) {
  /* the rip sizes this spacer to 100vw, which includes the scrollbar gutter and
     causes horizontal overflow — clamp it to the content width */
  .navbar-offset > div > div { width: 100% !important; max-width: 100% !important; }

  .header-nav-background {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    height: 54px;
  }
  .header-nav-frame {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    height: 54px;
    margin: 0;
    display: flex;
    align-items: center;
  }
  nav.header-nav {
    display: flex;
    align-items: center;
    height: 54px;
    width: 100%;
    padding: 0 0 0 18px;
    gap: 0;
    background: transparent;
  }
  .header-links { display: none !important; }   /* links collapse on mobile */
  .nav-btn { display: none !important; }
  a.header-logo { display: flex; align-items: center; height: 18px; width: auto; margin: 0; }
  a.header-logo img { filter: brightness(0) invert(1); height: 18px; width: auto; margin: 0; }
  .header-btn-frame {
    position: fixed;
    top: 10px;
    right: 22px;
    left: auto;
    width: auto;
    max-width: none;
    height: 54px;
    margin: 0;
    align-items: center;
  }
  /* nav pill bevel on mobile too */
  .header-nav-background { border-radius: 3px 3px 18px 3px; corner-shape: round round bevel round; }
}



/* ==== 5. Angular shape system (chrome) + adaptive nav theme ==== */
/* ---- Buttons (all breakpoints): angular shape + Fragment Mono uppercase ---- */
.action-btn, .action-btn2, .action-btn-two, a.header-btn, a.header-btn.coded-beyond,
.hero-btn, .bs-foot-discord, .footer-btn {
  border-radius: 2px 2px 12px 2px !important;
  corner-shape: round round bevel round;
}
.action-btn, .action-btn2, .action-btn-two, a.header-btn, .hero-btn,
.action-btn-text, .action-btn-text2, .bs-foot-discord, .footer-btn {
  font-family: "Fragment Mono", ui-monospace, monospace !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 992px) {
  /* nav pill — 3 corners softened ~3px, 45° bevel on the bottom-right */
  .header-nav-background {
    border-radius: 3px 3px 22px 3px;     /* TL TR BR BL */
    corner-shape: round round bevel round;
  }

  /* nav "order now" CTA */
  a.header-btn, a.header-btn.coded-beyond {
    border-radius: 2px 2px 10px 2px;
    corner-shape: round round bevel round;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

}

/* ---- Active nav link (current page) ---- */
@media (min-width: 992px) {
  a.header-link { position: relative; }
  a.header-link.is-active { color: #fff; }
  a.header-link.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -7px;
    height: 2px;
    background: #4D1EF7;
  }
}

/* ---- Adaptive nav theme: black pill over light/image/violet, violet pill over
        dark content sections (CTA flips to a white button with black text). ---- */
.header-nav-background { transition: background-color 280ms ease, box-shadow 280ms ease; }
/* Lift the pill off the dark hero so its outline (esp. the top-left corner) reads
   without a hard stroke: a soft, diffuse light glow gives a gentle luminance
   separation over the near-black areas, and a soft dark drop floats it over the
   brighter parts of the photo. */
.header-nav-background { box-shadow: 0 0 24px 2px rgba(255,255,255,0.08), 0 16px 34px -12px rgba(0,0,0,0.55); }
a.header-btn, a.header-btn.coded-beyond { transition: background-color 280ms ease, color 280ms ease; }
body.nav-purple .header-nav-background { background: #4D1EF7 !important; }
body.nav-purple a.header-btn,
body.nav-purple a.header-btn.coded-beyond,
body.nav-purple a.header-btn:visited,
body.nav-purple a.header-btn.coded-beyond:visited { background: #fff !important; color: #000 !important; }
body.nav-purple a.header-link.is-active::after { background: #fff; }

/* white pill over the violet section: black logo + links, violet CTA */
body.nav-white .header-nav-background { background: #fff !important; box-shadow: 0 16px 34px -12px rgba(0,0,0,0.35); }
body.nav-white a.header-logo img { filter: brightness(0) !important; }
body.nav-white a.header-link { color: rgba(0,0,0,0.55); }
body.nav-white a.header-link:hover,
body.nav-white a.header-link.is-active { color: #000; }
body.nav-white a.header-link.is-active::after { background: #4D1EF7; }
body.nav-white a.header-btn,
body.nav-white a.header-btn.coded-beyond,
body.nav-white a.header-btn:visited,
body.nav-white a.header-btn.coded-beyond:visited { background: #4D1EF7 !important; color: #fff !important; }

/* ==== Account icon (nav) ====
   Sits on the pill, left of "order now". Hidden until the reveal script (nav.html)
   finds a session cookie, so logged-out visitors never see it. Colour tracks the
   nav links across pill states (dark pill => light icon; white pill => dark icon);
   desktop only — mobile reaches the account via the footer. */
a.nav-account { display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-right: 8px; border-radius: 999px;
  color: rgba(255,255,255,0.62); flex: 0 0 auto;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1); }
a.nav-account.is-visible { display: inline-flex; }
a.nav-account:hover { color: #fff; }
a.nav-account svg { display: block; }
body.nav-white a.nav-account { color: rgba(0,0,0,0.55); }
body.nav-white a.nav-account:hover { color: #000; }
@media (max-width: 991px) { a.nav-account.is-visible { display: none; } }


/* ==== 6. Nav submenus ==== */

/* ===========================================================================
   NAV SUBMENUS — hover/focus dropdowns on Beyond-2 / Experiences / Shop, plus a
   tiny "new posts" badge on Blog. Desktop only (links collapse on mobile).
   =========================================================================== */
@media (min-width: 992px) {
  .nav-item { position: relative; display: inline-flex; align-items: center; }
  .nav-item .header-link { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }

  /* caret */
  .nav-caret {
    width: 0; height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.55;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-item:hover .nav-caret,
  .nav-item:focus-within .nav-caret { transform: rotate(180deg); opacity: 1; }

  /* panel container + invisible hover bridge over the pill edge */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding-top: 30px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
    z-index: 300;
  }
  .nav-item:hover .nav-menu,
  .nav-item:focus-within .nav-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-menu-panel {
    min-width: 268px;
    background: #0b0b0e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px 3px 16px 3px;
    corner-shape: round round bevel round;
    padding: 7px;
    box-shadow: 0 20px 44px rgba(0,0,0,0.5);
  }
  .nav-menu-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 13px;
    border-radius: 2px 2px 9px 2px;
    corner-shape: round round bevel round;
    text-decoration: none;
    transition: background-color 150ms ease;
  }
  .nav-menu-link:hover { background: rgba(255,255,255,0.07); }
  .nml-title {
    font-family: "Fragment Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12.5px;
    color: #fff;
  }
  .nml-sub {
    font-family: "NeueHaasDisplay", "ZenKaku", sans-serif;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255,255,255,0.42);
  }
  /* group label (e.g. Accessories) */
  .nav-menu-group {
    margin: 6px 13px 2px;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: "Fragment Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
  }
  /* current-page marker (Overview) */
  .nav-menu-link.is-current { position: relative; }
  .nav-menu-link.is-current::after {
    content: "";
    position: absolute;
    top: 15px; right: 13px;
    width: 6px; height: 6px;
    background: #4D1EF7;
    border-radius: 50%;
  }

  /* nested submenu ("Resources") — a second panel flying out to the right */
  .nav-sub { position: relative; }
  .nav-sub-trigger { position: relative; padding-right: 30px; }
  /* right-pointing chevron marking the flyout */
  .nav-sub-trigger::after {
    content: "";
    position: absolute;
    top: 50%; right: 15px;
    width: 6px; height: 6px;
    border-top: 1.5px solid rgba(255,255,255,0.55);
    border-right: 1.5px solid rgba(255,255,255,0.55);
    transform: translateY(-50%) rotate(45deg);
    transition: border-color 150ms ease;
  }
  .nav-sub:hover > .nav-sub-trigger,
  .nav-sub:focus-within > .nav-sub-trigger { background: rgba(255,255,255,0.07); }
  .nav-sub:hover > .nav-sub-trigger::after,
  .nav-sub:focus-within > .nav-sub-trigger::after {
    border-top-color: #fff; border-right-color: #fff;
  }
  .nav-flyout {
    position: absolute;
    top: -7px;            /* align inner panel top with parent panel padding */
    left: 100%;
    padding-left: 10px;   /* invisible hover bridge across the gap */
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(6px);
    transition: opacity 170ms ease, transform 170ms ease;
    z-index: 310;
  }
  .nav-sub:hover > .nav-flyout,
  .nav-sub:focus-within > .nav-flyout {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(0);
  }
}

/* ---- Blog "new posts" badge — tiny angular violet chip, top-right ---- */
.header-link.has-badge { position: relative; overflow: visible; }
.nav-badge {
  position: absolute;
  top: -8px; right: -14px;
  min-width: 15px; height: 15px;
  padding: 0 3px;
  background: #4D1EF7 !important;
  color: #fff !important;   /* stays white on the white pill too */
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0;
  border-radius: 2px 2px 5px 2px;
  corner-shape: round round bevel round;
}
body.nav-purple .nav-badge {
  background: #fff !important;
  color: #4D1EF7 !important;
}


/* ==== 7. Mobile pill + menu skin ==== */

@media (max-width: 991px) {
  /* ---- Pill: logo left, line-icon hamburger right; order-now lives in the menu ---- */
  .header-links { display: none !important; }
  /* keep ORDER NOW in the pill, sitting just left of the hamburger */
  .header-btn-frame { position: fixed !important; top: 4px !important; bottom: auto !important; right: 64px; left: auto !important;
    z-index: 110; margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; height: auto !important; }
  .header-btn-frame a.header-btn { height: 34px !important; min-height: 0 !important; padding: 0 13px !important; font-size: 11px !important; }
  .header-btn-frame .mobile-note { display: none !important; }

  .header-nav .nav-btn {
    display: flex !important; position: fixed; z-index: 110;
    top: 17px; right: 16px; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    color: #FCFCFD; cursor: pointer; pointer-events: auto; background: none; border: 0;
  }
  body.nav-white .header-nav .nav-btn { color: #0D0D0D; }
  /* drop the rip's raster icons; draw a hairline hamburger in currentColor (DS icon rule) */
  .header-nav .nav-btn .nav-btn-inner { display: none !important; }
  .header-nav .nav-btn::before,
  .header-nav .nav-btn::after {
    content: ""; position: absolute; left: 9px; right: 9px; height: 1.5px;
    background: currentColor; border-radius: 1px;
  }
  .header-nav .nav-btn::before { top: 14px; box-shadow: 0 6px 0 currentColor; }  /* top + middle bar */
  .header-nav .nav-btn::after  { top: 26px; }                                     /* bottom bar */

  /* ---- Slide-in menu ---- */
  #mnav-overlay {
    background: #0D0D0D;
    padding: 20px 24px max(28px, env(safe-area-inset-bottom)); gap: 0;
    transition: transform .42s cubic-bezier(0.2,0.8,0.2,1), visibility 0s linear .42s;
  }
  #mnav-overlay.open { transform: none !important; transition: transform .42s cubic-bezier(0.2,0.8,0.2,1); }

  .mnav-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 44px; scrollbar-width: none; }
  .mnav-body::-webkit-scrollbar { display: none; }

  /* CTA matches the angular order-now button: violet, Fragment Mono, beveled corner */
  #mnav-cta {
    margin-top: 22px; min-height: 52px;
    background: #4D1EF7; color: #fff;
    border-radius: 3px 3px 14px 3px; corner-shape: round round bevel round;
    font-family: "Fragment Mono", ui-monospace, monospace;
    font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 400;
    transition: background-color .12s cubic-bezier(0.2,0.8,0.2,1);
  }
  #mnav-cta:active { background: #4000FF; }
  /* Real store link: pin every link state (see purchase-model-button). */
  a#mnav-cta:link, a#mnav-cta:visited, a#mnav-cta:hover, a#mnav-cta:focus, a#mnav-cta:active { color: #fff; }

  /* Close: hairline X in currentColor */
  #mnav-close { top: 14px; right: 18px; width: 44px; height: 44px; color: #FCFCFD; font-size: 0; }
  #mnav-close::before, #mnav-close::after {
    content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px;
    background: currentColor; border-radius: 1px;
  }
  #mnav-close::before { transform: rotate(45deg); }
  #mnav-close::after { transform: rotate(-45deg); }

}

/* ==== 8. Mobile menu = a runtime clone of the desktop nav ==== */
/* The overlay's .mnav-body is filled by nav.html's script with a clone of
   .header-links, so mobile always mirrors desktop 1:1. These rules restyle the
   cloned dropdown structure as a flat accordion in the desktop voice. */
@media (max-width: 991px) {
  /* the clone is a plain column; undo the desktop pill centering/hiding */
  #mnav-overlay .mnav-menu { display: flex; flex-direction: column; position: static; transform: none; gap: 0; }
  #mnav-overlay .nav-item { display: flex; flex-wrap: wrap; align-items: center; position: static; }
  #mnav-overlay .mnav-menu > .nav-item,
  #mnav-overlay .mnav-menu > a.header-link { border-bottom: 1px solid rgba(252,252,253,.10); }

  /* top-level rows: the same mono-uppercase voice as the desktop pill links */
  #mnav-overlay a.header-link {
    display: inline-flex !important; align-items: center; gap: 10px;
    padding: 17px 0; min-height: 0; width: auto;
    font-family: "Fragment Mono", ui-monospace, monospace;
    font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
    color: #FCFCFD; line-height: 1.2; transition: opacity .12s;
  }
  #mnav-overlay a.header-link:active { opacity: .6; }
  /* active page: in-flow version of the desktop violet underline */
  #mnav-overlay a.header-link.is-active { text-decoration: underline;
    text-decoration-color: #4D1EF7; text-decoration-thickness: 2px; text-underline-offset: 7px; }

  /* the caret is a real toggle with a full-height tap area, pinned right */
  #mnav-overlay .mnav-toggle { margin-left: auto; width: 56px; align-self: stretch;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; color: #FCFCFD; cursor: pointer; }
  #mnav-overlay .nav-caret { width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid currentColor; opacity: .6;
    transition: transform .18s ease, opacity .18s ease; }
  #mnav-overlay .nav-item.is-open .nav-caret { transform: rotate(180deg); opacity: 1; }

  /* the dropdown panel, flattened into an accordion — same items as desktop */
  #mnav-overlay .nav-menu { flex-basis: 100%; display: none; position: static; transform: none;
    padding: 0; opacity: 1; visibility: visible; pointer-events: auto; }
  #mnav-overlay .nav-item.is-open .nav-menu { display: block; }
  /* rail-free accordion: sub-items are set off by indent + tone, never a line */
  #mnav-overlay .nav-menu-panel { min-width: 0; background: transparent; border: 0;
    border-radius: 0; box-shadow: none; padding: 4px 0 14px; margin: 0; }
  #mnav-overlay .nav-menu-link { display: flex; flex-direction: column; gap: 3px;
    padding: 11px 14px; text-decoration: none;
    border-radius: 2px 2px 10px 2px; corner-shape: round round bevel round;
    transition: background-color .15s ease; }
  #mnav-overlay .nav-menu-link:active { background: rgba(255,255,255,.06); opacity: 1; }
  #mnav-overlay .nml-title { font-family: "Fragment Mono", ui-monospace, monospace;
    text-transform: uppercase; letter-spacing: 0.04em; font-size: 12.5px; color: #fff; }
  #mnav-overlay .nml-sub { font-size: 12px; letter-spacing: 0; text-transform: none;
    color: rgba(255,255,255,.42);
    font-family: "Neue Haas Grotesk Display Pro - 55 Roman", "Zen Kaku Gothic New - Regular", sans-serif; }
  #mnav-overlay .nav-menu-group { margin: 12px 14px 4px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-family: "Fragment Mono", ui-monospace, monospace; text-transform: uppercase;
    letter-spacing: 0.1em; font-size: 10px; color: rgba(255,255,255,.4); }
  /* nested "Resources" submenu: flatten the flyout into a soft tonal group block
     (depth by tonal step, not a nested rule line) beneath its trigger */
  #mnav-overlay .nav-sub { display: block; width: 100%; }
  #mnav-overlay .nav-sub-trigger { padding-right: 14px; }
  #mnav-overlay .nav-sub-trigger::after { display: none; }
  #mnav-overlay .nav-flyout { position: static; padding-left: 0;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  #mnav-overlay .nav-flyout .nav-menu-panel {
    margin: 2px 0 6px 14px; padding: 4px 8px;
    background: rgba(255,255,255,.045);
    border-radius: 3px 3px 13px 3px; corner-shape: round round bevel round; }
  #mnav-overlay .nav-flyout .nav-menu-link { padding: 10px 8px; }
  /* current-page dot sits inline after the title (desktop pins it absolutely) */
  #mnav-overlay .nav-menu-link.is-current .nml-title::after { content: "";
    display: inline-block; width: 6px; height: 6px; margin-left: 8px;
    background: #4D1EF7; border-radius: 50%; }
  /* blog badge: in-flow next to the label instead of pinned to the corner */
  #mnav-overlay .nav-badge { position: static; margin-left: 6px; }
}

/* ==== Page entrance ==========================================================
   On every page load the main content softly rises and fades in, so navigating
   between pages (landing <-> experiences, and any future route) reveals the
   destination gracefully instead of hard-cutting. The nav and footer are outside
   <main>, so they stay put — the chrome is always there; only the content
   animates. Transform + opacity only (GPU-friendly, no layout thrash), and it's
   scoped to <main> so it never touches the homepage's fixed nav or sticky scroll
   canvas. Off under prefers-reduced-motion (content just appears). Tuning below. */
@media (prefers-reduced-motion: no-preference) {
  /* easeOutCubic — the rise stays perceptible across the whole duration (an
     expo-out curve snaps to rest in ~80ms and reads as a pop, not a glide). */
  .page-enter { animation: bs-page-enter 0.62s cubic-bezier(0.33, 1, 0.68, 1) both; }
  @keyframes bs-page-enter {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ==== In-page smooth scroll ==================================================
   Same-page anchor jumps (e.g. the Experiences category picker: Simulation ->
   Gaming) glide instead of snapping. Scoped with :not(.lenis) so it never fights
   the homepage, where Lenis owns scrolling and pins scroll-behavior:auto once it
   initialises — only native-scroll pages get the CSS smoothing. Off under
   prefers-reduced-motion. Anchor targets set their own scroll-margin-top to clear
   the fixed nav (see each page). */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
