* {
    box-sizing: border-box;
}

:root {
    --background: #f7f6f2;
    --background-rgb-code: 247, 246, 242;
    --surface: #FCFAF6;
    --text: #171717;
    --text-light: #4B4B4B;
    --muted: #686868;
    --skill-blue: #6fc5f4;
    --skill-green: #7bd4ad;
    --skill-purple: #c5a0f3;
    --skill-orange: #eab56c;
    --skill-coral: #E58B78;
    --skill-darker-blue: #3187B8;
    --skill-darker-green: #368F6B;
    --skill-darker-purple: #8B62B5;
    --skill-darker-orange: #B77A2E;
    --skill-darker-coral: #C56855;
    --accent-1: #365f52;
    --accent-2: #7bd4ad;
    --line-1: #deddd8;
    --line-2: #344a5c;
    --background-color-1: #101a25;
    --background-color-2: #172b3d;
    --header-transition-duration: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

a {
    color: inherit;
}

.bg-color-1 {
    background: var(--background-color-1) !important;
}

.text-skill-blue {
    color: var(--skill-darker-blue) !important;
}

.text-skill-green {
    color: var(--skill-darker-green) !important;
}

.text-skill-purple {
    color: var(--skill-darker-purple) !important;
}

.text-skill-orange {
    color: var(--skill-darker-orange) !important;
}

.text-surface {
    color: var(--surface) !important;
}

.text-background {
    color: var(--background) !important;
}

.text-skill-coral {
    color: var(--skill-darker-coral) !important;
}

.bg-skill-blue {
    background-color: var(--skill-darker-blue);
}

.bg-skill-green {
    background-color: var(--skill-darker-green);
}

.bg-skill-purple {
    background-color: var(--skill-darker-purple);
}

.bg-skill-orange {
    background-color: var(--skill-darker-orange);
}

.bg-skill-coral {
    background-color: var(--skill-darker-coral);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.divider {
    width: 0;
    border-right: 1px solid var(--line-1);
}

.grid-container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 90rem;
}

.section-recessed {
    border-top: 0.125rem solid var(--surface);
    border-bottom: 0.125rem solid var(--background);
    box-shadow:
        inset 0 18px 22px -12px rgba(0, 0, 0, 0.48),
        inset 0 -18px 22px -12px rgba(0, 0, 0, 0.48);
}

.section-recessed--top {
    border-top: 0.125rem solid var(--surface);
    box-shadow: inset 0 18px 22px -12px rgba(0, 0, 0, 0.48);
}

.section-recessed--bottom {
    border-bottom: 0.125rem solid var(--background);
    box-shadow: inset 0 -18px 22px -12px rgba(0, 0, 0, 0.48);
}

#site-header {
    height: 88px !important;
    width: 100%;
}

#site-header .stickyy {
    background-color: rgb(var(--background-rgb-code), 0.8);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    border-bottom: 1px solid var(--line-1);
    margin-top: 0 !important;
    max-width: 100% !important;
    top: 0px;
    bottom: auto;
    position: fixed;
    z-index: 5;
    width: 100%;
    transition: opacity var(--header-transition-duration) ease, background-color var(--header-transition-duration) ease;
}

.top-bar {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    transition: min-height var(--header-transition-duration) ease;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.site-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: font-size var(--header-transition-duration) ease;
    color: var(--text);
}

.site-name:hover {
    color: var(--text);
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    transition: width var(--header-transition-duration) ease, height var(--header-transition-duration) ease;
}

.desktop-navigation .menu {
    gap: 0;
    background: transparent;
}

.desktop-navigation a {
    font-size: 0.9375rem;
    text-decoration: none;
    display: initial;
    transition: padding var(--header-transition-duration) ease, font-size var(--header-transition-duration) ease;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    right: 0.75rem
}

/* ========================================
   Scrolled Header
   ======================================== */
.scrolled #site-header .stickyy {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: rgb(247, 246, 242, 1);
}

.scrolled #site-header .top-bar {
    min-height: 54px;
}

.scrolled #site-header .site-name {
    font-size: 1.05rem;
}

.scrolled #site-header .header-logo {
    width: 26px;
    height: 26px;
}

.scrolled #site-header .desktop-navigation a {
    font-size: 0.88rem;
}

/* Keep the header hidden until its initial state is set */
html.header-state-pending #site-header .stickyy {
    opacity: 0;
    transition: none !important;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    #site-header .stickyy {
        transition: none;
    }
}

.off-canvas {
    padding-top: 1rem;
    background: rgb(23, 23, 23);
}

.off-canvas .close-button {
    font-size: 2.4em;
    top: 0.7rem;
    color: var(--background);
}

body.scrolled .close-button {
    top: 0.4rem;
}

.off-canvas .menu {
    padding-left: 0.5rem;
}

.off-canvas .menu a {
    color: var(--background);
}

.off-canvas .logo-bg {
    position: absolute;
    bottom: 4%;
    left: 8%;
    opacity: 0.15;
    z-index: 1;
    width: 84%;
    height: auto;
}

.off-canvas .on-top {
    position: relative;
    z-index: 2;
}

.menu-icon::after {
    background: var(--text);
    box-shadow: 0 6px 0 var(--text), 0 12px 0 var(--text);
}

.behind-the-systems .ph-atom {
    background: linear-gradient(135deg,
            #6fc5f4,
            #7bd4ad,
            #c5a0f3,
            #3187B8,
            #8B62B5);
    background-size: 250% 250%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: nav-gradient-orbit 5s linear infinite;
    display: inline-block;
    font-size: 1.0625rem;
    ;
    /* transition: filter 0.3s ease; */
}


.off-canvas .behind-the-systems .ph-atom {
    margin-right: 2px;
}

.top-bar .behind-the-systems .ph-atom {
    position: relative;
    /* top: 0.01875rem; */
    top: 1.2px;
    margin-right: 0.2rem;
}

body.scrolled .top-bar .behind-the-systems .ph-atom {
    top: 1.3px;
}

.site-footer .behind-the-systems .ph-atom {
    position: relative;
    left: 1px;
}

span.behind-the-systems .ph-atom {
    animation: nav-gradient-orbit 13s linear infinite;
}

/* .behind-the-systems.nav a:hover .ph-atom,
span.behind-the-systems:hover .ph-atom {
    filter: brightness(1.2) saturate(1.2);
    animation-play-state: paused;
} */

@keyframes nav-gradient-orbit {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }

    25% {
        background-position: 100% 50%;
        transform: rotate(90deg);
    }

    50% {
        background-position: 0% 50%;
        transform: rotate(180deg);
    }

    75% {
        background-position: 100% 50%;
        transform: rotate(270deg);
    }

    100% {
        background-position: 0% 50%;
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .behind-the-systems .ph-atom {
        animation: none;
    }
}

/* =========================================

   FOOTER

========================================= */
.site-footer {
    padding: 3rem 0rem 1rem 0;
    border-top: 1px solid var(--line-1);
    margin-top: 0;
    overflow: hidden;
}

.footer-logo {
    max-width: 64px;
    height: auto;
    width: 100%;
}

.site-footer .menu {
    background: transparent;
}

.site-footer .menu a {
    font-size: 0.9rem;
    text-decoration: none;
    padding: .5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-footer .menu li:last-child a {
    padding-right: 0;
}

.site-footer .footer-nav i {
    display: inline-block;
    line-height: 1;
    flex-shrink: 0;
    font-size: 0.9375rem;
    padding-top: 1px;
}

.site-footer .nav-wrap {
    padding-right: 0;
}

.copyright {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 1.05rem;
    opacity: 0.9;
}

.dot-field {
    --dot-color: #657d8d;
    --dot-opacity: 0.65;
    --dot-spacing: 18;
    --dot-radius: 1;
    --dot-repel-radius: 75;
    --dot-repel-strength: 24;

    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.dot-field canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.dot-field> :not(canvas) {
    position: relative;
    z-index: 1;
}

/* Dots background make text readable */
.dots-text-bg-white {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.dots-text-bg-white::after {
    content: "";
    position: absolute;
    inset: -6px -8px;
    z-index: -1;
    background: var(--background);
    filter: blur(12px);
    opacity: 0.9;
    pointer-events: none;
}

@media screen and (max-width: 63.9375em) {
    .grid-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #site-header {
        height: 62px !important;
    }

    .top-bar {
        min-height: 62px;
    }

    .scrolled #site-header .top-bar {
        min-height: 50px;
    }
}

/* 639px */
@media (max-width: 39.9375em) {
    .grid-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .top-bar {
        min-height: 72px;
    }

    .desktop-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-footer {
        padding-bottom: 1.5rem;
    }

    .site-footer .menu li {
        flex-basis: calc(50% - 0.5rem);
    }

    .site-footer .menu li:last-child a,
    .site-footer .menu li a {
        padding-right: 0;
    }

    .site-footer .menu {
        box-sizing: border-box;
        max-width: 260px;
    }
}