@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;600&display=swap);html,body {
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    -webkit-text-size-adjust: auto;
    text-size-adjust: auto;
    -webkit-overflow-scrolling: auto;
    height: 100%
}

* {
    -webkit-tap-highlight-color: #fff0
}

body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom)
}

@media (max-width: 860px) {
    body.cardOpen,body.navOpen {
        overflow:hidden;
        touch-action: pan-y
    }
}

a,button {
    touch-action: pan-y
}

:focus-visible {
    outline: 2px solid rgb(255 255 255 / .35);
    outline-offset: 2px
}

html {
    scrollbar-gutter: stable both-edges
}

:root {
    --bg0: #05080d;
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.72);
    --liner: rgba(255, 255, 255, 0.14);
    --panel: rgba(0, 0, 0, 0.7);
    --panel2: rgba(0, 0, 0, 0.62);
    --shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
    --accent: #2bd4ff;
    --accent2: #7db6b1;
    --warn: #ffcc66;
    --radius: 18px;
    --max: 1480px;
    --tap: 44px;
    --orbit-center-x: 50%;
    --orbit-center-y: 50%;
    --orbit-radius: clamp(70px, 14vw, 150px);
    --orbit-gap: 0px;
    --headerH: 92px;
    --footerH: 30px
}

:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg0);
    color: var(--text);
    overflow-x: clip
}

.bg {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 800px at 15% 15%,rgb(43 212 255 / .18),transparent 60%),radial-gradient(900px 700px at 85% 30%,rgb(125 182 177 / .14),transparent 55%),linear-gradient(180deg,rgb(0 0 0 / .45),rgb(0 0 0 / .82)),url(./assets/bg.gif);
    background-size: auto,auto,auto,cover;
    background-repeat: no-repeat;
    background-position: center;
    animation: drift 22s linear infinite
}

@keyframes drift {
    0% {
        background-position: 0 0,0 0,0 0,center
    }

    100% {
        background-position: 0 0,0 0,0 0,center
    }
}

header.siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--headerH);
    z-index: 1000;
    border-bottom: 1px solid rgb(255 255 255 / .1);
    background: rgb(0 0 0 / .58);
    backdrop-filter: blur(10px)
}

.topbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 0 22px;
    width: min(100%, var(--max));
    margin: 0 auto
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-height: var(--tap);
    width: 100%;
    flex: 1;
    min-width: 0
}

.logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / .18);
    background: rgb(255 255 255 / .06)
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.brandText {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-width: 0;
    line-height: 1.05;
    padding: 0 0rem;
    gap: .15rem
}

body,p,li,a,button,input,textarea {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.45
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    margin: 0;
    padding: 0;
    line-height: 1.15
}

h1 {
    font-weight: 800
}

h2 {
    font-weight: 600
}

h3 {
    font-weight: 500
}

.brandTitle {
    font-family: var(--font-heading);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1rem, 2.5vw, 2rem);
    color: rgb(255 255 255 / .95)
}

.brandTag {
    font-family: var(--font-heading);
    font-weight: 300;
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(.90rem, 1.8vw, 1.4rem);
    color: rgb(255 255 255 / .92)
}

.desktopNav {
    flex: 0 0 auto
}

.menuBtn {
    flex-shrink: 0
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footerH);
    z-index: 1000;
    padding: 0;
    color: var(--muted);
    border-top: 1px solid rgb(255 255 255 / .12);
    background: rgb(0 0 0 / .62);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem
}

footer .wrap.small {
    width: 100%;
    text-align: center
}

.mainFrame {
    position: fixed;
    top: var(--headerH);
    bottom: var(--footerH);
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    contain: layout paint
}

@media (max-width: 860px) {
    body.cardOpen .mainFrame {
        position:fixed;
        top: var(--headerH);
        bottom: var(--footerH);
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        contain: layout paint
    }

    body.cardOpen,body.cardOpen .mainFrame {
        overflow-x: visible!important
    }

    body.cardOpen .mainFrame {
        position: static!important;
        overflow: visible!important
    }
}

@media (min-width: 861px) {
    body.aboutPage .mainFrame {
        overflow-y:auto!important;
        padding-top: 0!important;
        padding-bottom: 0!important
    }
}

@media (min-width: 861px) {
    body:not(.aboutPage) .mainFrame {
        overflow-y:auto
    }
}

@media (max-width: 860px) {
    body.aboutPage .mainFrame {
        overflow-y:auto!important;
        scrollbar-width: none;
        -webkit-text-size-adjust: auto;
        text-size-adjust: auto
    }

    body.aboutPage .mainFrame::-webkit-scrollbar {
        display: none
    }
}

.mainFrame::-webkit-scrollbar {
    width: 6px
}

.mainFrame::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / .25);
    border-radius: 3px
}

body.indexPage .mainFrame {
    overflow-y: auto!important;
    scrollbar-width: none
}

body.indexPage .mainFrame::-webkit-scrollbar {
    display: none
}

.wrap {
    width: min(var(--max), 100%);
    margin-inline:auto;padding-left: 0;
    padding-right: 0
}

.fullFrame {
    width: 100%;
    margin: 0;
    padding: 0
}

.desktopNav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    height: 60px
}

.desktopNav a:not(.btn) {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #fff0;
    min-height: var(--tap);
    display: inline-flex;
    align-items: center
}

.desktopNav a:hover:not(.btn) {
    color: var(--text);
    border-color: rgb(255 255 255 / .14);
    background: rgb(255 255 255 / .06);
    box-shadow: 0 0 0 3px rgb(43 212 255 / .15)
}

.desktopNav a.active {
    color: var(--text);
    border-color: rgb(43 212 255 / .22);
    background: rgb(43 212 255 / .1)
}

@media (min-width: 861px) {
    body.aboutPage .mainFrame {
        overflow-y:auto!important;
        padding-top: 0!important;
        padding-bottom: 0!important
    }
}

@media (max-width: 860px) {
    body.aboutPage .mainFrame {
        overflow-y:auto!important;
        scrollbar-width: none;
        -webkit-text-size-adjust: auto;
        text-size-adjust: auto
    }

    body.aboutPage .mainFrame::-webkit-scrollbar {
        display: none
    }
}

.navBtn,.desktopNav .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: .9rem;
    line-height: 1
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 850;
    border: 1px solid rgb(255 255 255 / .18);
    background: rgb(0 0 0 / .2);
    color: var(--text);
    min-height: var(--tap)
}

.btn.primary {
    border-color: rgb(43 212 255 / .32);
    background: linear-gradient(135deg,rgb(43 212 255 / .2),rgb(125 182 177 / .1))
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

.menuBtn {
    display: none;
    width: var(--tap);
    height: var(--tap);
    border-radius: 12px;
    border: 1px solid rgb(255 255 255 / .16);
    background: rgb(255 255 255 / .06);
    cursor: pointer;
    padding: 0;
    position: relative;
    align-items: center;
    justify-content: center
}

.menuBtn .hamburger.btn1 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 16px;
    transform: translate(-50%,-50%)
}

.menuBtn .btn1 .icon-left,.menuBtn .btn1 .icon-right {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 3px;
    background: rgb(255 255 255 / .92);
    border-radius: 3px;
    transform: translate(-50%,-50%);
    transition: 0.35s ease
}

.menuBtn .btn1 .icon-left::before,.menuBtn .btn1 .icon-left::after,.menuBtn .btn1 .icon-right::before,.menuBtn .btn1 .icon-right::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 22px;
    height: 3px;
    background: rgb(255 255 255 / .92);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: 0.35s ease
}

.menuBtn .btn1 .icon-left::before,.menuBtn .btn1 .icon-right::before {
    top: -6px
}

.menuBtn .btn1 .icon-left::after,.menuBtn .btn1 .icon-right::after {
    top: 6px
}

.menuBtn .btn1.open .icon-left,.menuBtn .btn1.open .icon-right {
    background: #fff0
}

.menuBtn .btn1.open .icon-left::before {
    top: 0;
    transform: translate(-50%,-50%) rotate(45deg)
}

.menuBtn .btn1.open .icon-left::after {
    top: 0;
    transform: translate(-50%,-50%) rotate(-45deg)
}

.menuBtn .btn1.open .icon-right::before,.menuBtn .btn1.open .icon-right::after {
    opacity: 0;
    width: 0
}

@media (max-width: 860px) {
    .desktopNav {
        display:none
    }

    .menuBtn {
        display: inline-flex
    }
}

@media (max-width: 860px) {
    #mobilePanel {
        position:fixed;
        top: var(--headerH);
        left: 0;
        right: 0;
        z-index: 2000;
        background: rgb(0 0 0 / .78);
        backdrop-filter: blur(22px);
        border-radius: 0 0 var(--radius) var(--radius);
        height: auto;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        touch-action: none;
        display: block;
        transition: max-height 0.60s cubic-bezier(.22,.61,.36,1),opacity 0.45s ease-out
    }

    #mobilePanel * {
        margin-top: 0!important;
        min-height: 0!important
    }

    .navOverlay {
        pointer-events: none
    }

    #mobilePanel.open {
        max-height: 40vh;
        opacity: 1;
        pointer-events: auto;
        touch-action: auto
    }

    .navOverlayInner {
        padding: 0 10px
    }

    .navOverlayNav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 0;
        padding-top: 0
    }

    .mobileNavBtn {
        width: 100%;
        margin: 0;
        padding: 10px 12px;
        line-height: 1.25;
        min-height: 40px;
        font-size: .9rem;
        font-weight: 750;
        border-radius: 10px;
        border: 1px solid rgb(255 255 255 / .14);
        background: rgb(255 255 255 / .05);
        backdrop-filter: blur(10px);
        text-decoration: none;
        color: rgb(255 255 255 / .9);
        display: flex;
        align-items: center;
        justify-content: center
    }

    .mobileNavBtn.active,.mobileNavBtn[aria-current="page"] {
        border-color: rgb(43 212 255 / .26);
        background: rgb(43 212 255 / .12)
    }

    .navOverlayActions {
        margin-top: 6px;
        padding: 6px;
        background: rgb(0 0 0 / .32);
        backdrop-filter: blur(18px);
        border-radius: 12px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%
    }

    #mobilePanel .navOverlayActions .btn {
        flex: 0 0 42%;
        padding: 6px 10px;
        min-height: 32px;
        font-size: .85rem;
        border-radius: 10px;
        text-align: center;
        border: 1px solid rgb(43 212 255 / .32);
        background: linear-gradient(135deg,rgb(43 212 255 / .2),rgb(125 182 177 / .1));
        color: rgb(255 255 255 / .95);
        backdrop-filter: blur(22px);
        box-shadow: 0 0 0 3px rgb(43 212 255 / .15)
    }
}

.siteHeader,.siteHeader * {
    touch-action: auto!important
}

body.cardOpening,body.cardOpening .mainFrame {
    overflow-x: visible!important
}

.indexpillcard,.indexpillcard * {
    font-family: var(--font-body)
}

.indexpillcard h2[data-title] {
    font-family: var(--font-heading);
    font-weight: 700
}
