@font-face {
    font-family: 'AlphaLyrae';
    src: url("../fonts/AlphaLyrae-Medium.woff2") format('woff2'),
         url("../fonts/AlphaLyrae-Medium.woff") format('woff');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

.hero-title,
.hero-subtitle,
.next-hero-title,
.primary-font-title,
.slide-title,
.slide-date,
.slide-cat,
.list-rotator-title,
.list-rotator,
#info-text,
.clock-wrapper,
.fullscreen-menu .flexnav > li > a,
.fullscreen-menu .flexnav li a span,
.button-wrap.right.menu .button-text,
.button-wrap.right.menu .button-text span {
    font-family: 'AlphaLyrae', sans-serif !important;
    font-weight: 500;
    font-synthesis: none;
    font-feature-settings: "calt" 1, "liga" 1, "dlig" 1, "kern" 1;
    font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
    letter-spacing: 0;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo */
#logo img {
    margin-top: 10px;
    height: 22px;
    width: auto;
    transition: all 0.3s ease;
}

#logo img:hover {
    transform: scale(1.05);
}

/* Hero titles */
.ssphere-wordmark {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    overflow: visible;
    line-height: 0;
}

.ssphere-wordmark span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
}

.ssphere-wordmark img {
    display: block;
    width: clamp(320px, 58vw, 900px);
    max-width: 86vw;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ssphere-wordmark:hover img {
    transform: scale(1.03);
}

.height-title .hero-title:not(.ssphere-wordmark) > div,
.height-title .next-hero-title > div {
    display: inline-block;
    transform-origin: center bottom;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.height-title .hero-title:not(.ssphere-wordmark):hover > div,
.height-title .next-hero-title:hover > div {
    transform: translateY(-6px);
}

/* Title sized for a half-width pinned column */
.ssphere-section-title {
    font-size: 72px;
    line-height: 0.98;
}

@media only screen and (max-width: 1024px) {
    .ssphere-section-title {
        font-size: 56px;
        line-height: 1;
    }
}

@media only screen and (max-width: 479px) {
    .ssphere-section-title {
        font-size: 48px;
    }
}

/* Skills list rotator */
.list-rotator-wrapper {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

.list-rotator ul.list-rotator {
    font-size: 2.5vw;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@supports (-webkit-touch-callout: none) {
    .list-rotator ul.list-rotator {
        font-size: 20px;
        transform: none;
        animation: none;
    }

    .list-rotator-wrapper {
        padding: 20px 0;
    }

    .list-rotator ul.list-rotator li {
        margin: 10px 0;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Clock */
.clock-wrapper {
    color: #fff;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin: 20px auto;
    padding: 30px 0;
}

.clock-wrapper:hover {
    opacity: 1;
}

#clock {
    font-size: 2.5em;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

#date {
    font-size: 1.2em;
    opacity: 0.7;
}

/* Footer */
.footer-info {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: block;
    color: #fff;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.footer-info:hover {
    opacity: 1;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-info a.link::before {
    display: none;
}

.footer-separator {
    display: inline-block;
    margin: 0 10px;
    opacity: 0.5;
}

.footer-info span {
    display: inline-block;
}

/* Preloader */
.preloader-wrap {
    background: #231f1f;
}

.preloader-icon-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-icon {
    width: 156px;
    height: auto;
    display: block;
    transform-origin: center center;
    animation: ssphere-preloader-grow 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ssphere-preloader-grow {
    0% {
        opacity: 0.18;
        transform: scale(0.58);
    }
    72% {
        opacity: 1;
        transform: scale(1.06);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-icon {
        animation: none;
        opacity: 0.9;
        transform: none;
    }
}

@media screen and (max-width: 767px) {
    #logo img {
        margin-top: 20px;
        height: 16px;
    }

    .ssphere-wordmark img {
        width: min(84vw, 420px);
    }

    .list-rotator ul.list-rotator {
        font-size: 20px;
    }

    .clock-wrapper {
        padding: 20px 0;
    }

    #clock {
        font-size: 2em;
    }

    #date {
        font-size: 1em;
    }
}
