@font-face {
    font-family: Cinzel;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: Cinzel;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: Spectral;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: Spectral;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/spectral-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: Spectral;
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/spectral-latin-400-italic.woff2") format("woff2");
}

@font-face {
    font-family: "NP-FONT";
    src: url("/fonts/NP-FONT.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Alegreya";
    src: url("/fonts/AlegreyaSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Alegreya";
    src: url("/fonts/AlegreyaSans-Thin.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Alegreya";
    src: url("/fonts/AlegreyaSans-ThinItalic.ttf") format("truetype");
    font-weight: 200;
    font-style: italic;
}


/*#090b10 alternative background */

:root {
    --bg: #0b0e0b;
    --bg-secondary: #1c231b;

    --accent-red: #a4191e;
    --accent-teal: #3a8094;
    --accent-gold: #7b6c4c;

    --text: #d8d2c9;
    --text-muted: #827d6f;

    --border: #3a4438;

    --red-bright: #db3d3e;
    --teal-bright: #96dbed;
    --gold-bright: #b8a06a;

    --max-width: 1600px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    font-family: Alegreya, sans-serif;
    font-style: normal;
    font-weight: 200;
    line-height: 1.15;
    font-size: 1.125rem;
    color: var(--text);
    background: var(--bg);

    background:
            radial-gradient(
                circle at 15% 20%,
                rgba(35, 92, 98, 0.22),
                transparent 40%
            ),
            radial-gradient(
                circle at 85% 75%,
                rgba(25, 68, 75, 0.18),
                transparent 45%
            ),
            var(--bg);}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

header { /*55*/
    position: relative;
    width: 100%;
    top: 0;
    left:0;
    right:0;
    height: 90px;
    z-index: 100;

    backdrop-filter: blur(3px);

    background: rgba(10,12,18,0.15);

    border-bottom: 1px solid var(--border);

    display: flex;
    justify-content: space-between;
    align-items: center;

    /*top  right  bottom  left*/
    padding: 0 1rem 0 0;
    flex-shrink: 0;
}


header nav a {
    position: relative;
}

header nav a::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: calc(100% + 0.4rem);

    width: 0;
    height: 0;

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8.66px solid var(--accent-red);

    opacity: 0;

    filter:
        drop-shadow(0 0 3px var(--accent-red))
        drop-shadow(0 0 7px var(--accent-red));

    transform: translateX(-50%) translateY(4px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


header nav a:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


header nav a:nth-child(1)::before {
    transform: translateX(-50%) rotate(0deg);
}

header nav a:nth-child(2)::before {
    transform: translateX(-50%) rotate(0deg);
}

header nav a:nth-child(3)::before {
    transform: translateX(-50%)  rotate(0deg);
}

header nav a:nth-child(4)::before {
    transform: translateX(-50%)  rotate(0deg);
}


header nav a:nth-child(1):hover::before {
    opacity: 1;
    transform: translateX(-50%) rotate(40deg);
}

header nav a:nth-child(2):hover::before {
    opacity: 1;
    transform: translateX(-50%)  rotate(80deg);
}

header nav a:nth-child(3):hover::before {
    opacity: 1;
    transform: translateX(-50%)  rotate(120deg);
}

header nav a:nth-child(4):hover::before {
    opacity: 1;
    transform: translateX(-50%)  rotate(160deg);
}




body:has(.header-banner) .page-scroll::before {
    content: "";
    display: block;
    padding-top: var(--banner-height, 0px);
    scroll-snap-align: start;
}

h1,
h2,
h3 {
    font-family: Cinzel, serif;
}

h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
}

h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
}

h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
}

nav {
    display: flex;
    gap: 3rem;
    padding: 2rem;
}

.page-scroll {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.test {
    font-family: "NP-FONT";
    color: var(--accent-red);
    font-size: 48px;
}


.content {
    display: flex;
    flex-direction: column;
    gap: 0;
    /*gap: 4rem;*/
}

.page-section {


}

.site-header {
    position: sticky;
    top: 0;
    height: 90px;
    z-index: 100;
}









.logo img {
    display: block;
    height: 65px;
    width: auto;
    margin: 1rem;
    padding: 0;
}

.logo:not(:has(img)) {
    margin-left: 2rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.banner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner .section-frame {
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.banner-container img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.banner-overlay {
    position: absolute;
    inset: 0;
}




.gradient-divider {
    width: 100%;
    height: 1px;
    margin: 0.2rem 0;

    background: linear-gradient(
        to right,
        transparent,
        var(--accent),
        transparent
    );
    box-shadow:
        0 0 4px rgba(139,184,255,.2);
}

.hero {
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;

    margin-bottom: 1rem;
}

.hero p {
    max-width: 700px;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-bottom: 1rem;

}



.hero .section-frame {
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0rem;
}

.hero .section-frame.hero-has-background::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.75),
        rgba(5, 5, 5, 0.95)
    );

    z-index: 1;
}

.html-box {
    position: relative;
    z-index: 2;
    width: 100%;
    
}

.hero-box {
    position: relative;
    z-index: 2;

    width: min(100%, 700px);
    margin: 0 auto;

    text-align: left;
}




.panel {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

   
}

.panel h2 {
    margin-bottom: 1rem;
}

.panel p {
    color: var(--text-muted);
}

.section-frame {
    
    width: 100%;
    height: auto;


    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top:0;
    margin-bottom:0;
    padding: 0rem;
    
}

.section-divider {
    width: 100%;
    height: 1px;
    overflow: hidden;
    line-height: 0;
}

.section-divider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.first-section .section-frame {
 width:100%;
 padding:0;
}

.text-image-c .text-image-content,
.image-text-c .text-image-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 6rem;
    font-size: 1.5rem;
}

.text-image-r .text-image-content,
.image-text-r .text-image-content {
    display: flex;
    flex-direction: column;
    height: 100%;

}


.image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image img {
    max-width: 90%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.text-image-r .image,
.image-text-r .image {
    height: 50%;
    flex-shrink: 0;
}

.text-image-r .image img,
.image-text-r .image img {
    max-height: 100%;
}

.text-image-r .text,
.image-text-r .text {
    margin-top: 1rem;
    margin-bottom: 1rem;
}




.embed h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.embed-frame {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.custom-html {
    margin: 0;
}

.custom-html h1 {
    text-align: center;
    margin-top: 2rem;
}

.custom-html h1:empty {
    display: none;
}



footer {
    border-top: 1px solid var(--border);

    background: rgba(255,255,255,0.02);

/* TOP RIGHT BOTTOM LEFT */
    padding: 0.6rem 1.5rem 0.6rem 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;

    gap: 1rem;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.footer-center,
.footer-left {
    color: var(--text-muted);
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

footer .tiny-link {
    font-size: 0.8rem;
    text-align: center;
}

.sidebar-toggle, .footer-mcenter, .nav-toggle {
    display: none;
}

.social-media img {
    height: 1.3em;
    width: auto;
    vertical-align: middle;
}



@media (max-width: 900px) {

    .page-scroll {
        overflow: hidden;
    }

    main{
        display: flex;
        flex-direction: column;
        height: calc(100% - 1rem);
        padding: 0 0rem;
        gap: 0.2rem;
    }

    .sidebar {
        position: static;
        top: 0;
        z-index: 100;
        width: 100%;
        padding-top: 0.2rem;
        margin-bottom: 0rem;
        min-height: auto;
        flex-shrink:0;
        font-size: 0.7rem;
    }

    .sidebar-state {
        position: static;
    }
    .sidebar-state:not(.active) {
        display: none;
    }
    .sidebar-state h3{
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }

    .sidebar-toggle-desktop {
    position: fixed;
    top: 2.8rem;
    left: 270px;

    z-index: 10;

    width: 28px;
    height: 28px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--bg-secondary);
    color: var(--text);

    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

    .content {
        flex: 1;
        min-height: 0;
        height: calc(100% - 1rem);
        overflow-y: auto;
        padding-top: 0;
    }

    .section-frame {
        width: 100%;
        height:100%;
    }

    .page-section {
    flex-shrink: 0;
    }

    .text-image-c .text-image-content,
    .image-text-c .text-image-content,
    .text-image-cm .text-image-content,
    .image-text-cm .text-image-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem;
        font-size: 1.5rem;
    }



    header {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        padding: 0.4rem 0.65rem;
        background: var(--panel);
        color: var(--text);
        border: 1px solid var(--border);
        border-radius: 6px;
        cursor: pointer;

        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    nav {
        display: none;
    }

    header.nav-open nav {
        display: flex;
        position: absolute;
        top: 100%;
        right: 1rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(10,12,18,0.95);
        border: 1px solid var(--border);
        border-radius: 6px;
        align-items: center;
    }

    header.nav-open nav a {
        text-align: center;
    }

    footer {
        padding: 0.65rem;
        font-size: 1rem;
        gap: 0.3rem;
        justify-content: space-between;
        flex-wrap: nowrap;
        align-items: center;
    }

    .footer-left,
    .footer-center {
        white-space: nowrap;
    }

    .footer-center {
        display: none;
    }

    .footer-mcenter {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-right {
        gap: 0.65rem;
        flex-wrap: nowrap;
    }

}