* {
    box-sizing: border-box;
}

:root {
    --ink: #171514;
    --ink-soft: rgba(23, 21, 20, 0.74);
    --wash-main: rgba(246, 241, 237, 0.82);
    --wash-soft: rgba(246, 241, 237, 0.42);
    --app-height: 100vh;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Exo 2", sans-serif;
    color: var(--ink);
    background: #000;
    overflow-x: hidden;
}

/* BACKGROUND */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    background-color: #000;
    background-image: url("../images/evanoesis-bg-desktop.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    filter: blur(0);
    transform: scale(1);
    transition:
        filter 520ms ease,
        transform 520ms ease,
        opacity 520ms ease;
}

.site-shell {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* MENU */
.top-menu {
    position: fixed;
    top: 31px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;

    padding: 0;
    margin: 0;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

button,
.top-menu button {
    appearance: none;
    -webkit-appearance: none;

    margin: 0;
    padding: 0;

    font-family: "Exo 2", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: #000;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    cursor: pointer;
    text-shadow: none;

    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

button:hover,
.top-menu button:hover {
    opacity: 0.55;
    transform: translateY(-1px);
}

button.is-active,
.top-menu button.is-active {
    opacity: 1;
    font-weight: 600;
}

/* TEXT AREA */
.text-zone {
    position: absolute;

    left: 5.8vw;
    top: 12.2vh;

    width: 29vw;
    min-width: 420px;
    max-width: 540px;
    min-height: 44vh;

    padding: 36px 42px 42px;

    isolation: isolate;
}

.text-zone::before {
    content: "";
    position: absolute;
    inset: -34px -36px -44px -36px;
    z-index: -1;

    background:
        radial-gradient(ellipse at center,
            var(--wash-main) 0%,
            var(--wash-main) 34%,
            var(--wash-soft) 66%,
            rgba(246, 241, 237, 0.16) 82%,
            rgba(246, 241, 237, 0) 100%);

    filter: blur(12px);
    opacity: 1;
    pointer-events: none;
}

/* TEXT TRANSITION */
.content-inner {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);

    transition:
        opacity 360ms ease,
        transform 360ms ease,
        filter 360ms ease;
}

.content-inner.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(3px);
}

.content-inner.is-entering {
    animation: textEnter 520ms ease forwards;
}

@keyframes textEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* TYPOGRAPHY */
.brand-title {
    position: relative;
    display: inline-block;

    margin: 0 0 28px;
    padding-right: 0.44em;

    font-family: "Michroma", sans-serif;
    font-size: clamp(34px, 3.15vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;

    color: var(--ink);
}

.brand-title span {
    position: absolute;
    top: -0.06em;
    right: 0.12em;

    margin: 0;

    font-family: "Exo 2", sans-serif;
    font-size: 0.22em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;

    color: var(--ink);
}

.tagline {
    margin: 0 0 34px;

    font-size: clamp(20px, 1.45vw, 28px);
    line-height: 1.35;
    font-weight: 400;

    color: var(--ink-soft);
}

h2 {
    margin: 0 0 28px;

    font-family: "Michroma", sans-serif;
    font-size: clamp(24px, 2.2vw, 36px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.04em;

    color: var(--ink);
}

.body-text,
.project-card p {
    max-width: 100%;
    margin: 0;

    font-size: 18px;
    line-height: 1.68;
    font-weight: 400;

    color: var(--ink-soft);
}

.body-text+.body-text {
    margin-top: 18px;
}

/* PROJECTS */
.project-slider {
    width: 100%;
    max-width: 440px;
}

.project-slider-window {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.project-slider.is-dragging,
.project-slider-window.is-dragging {
    cursor: grabbing;
}

.project-slider-track {
    display: flex;
    width: 100%;

    transition: transform 420ms ease;
    will-change: transform;

    user-select: none;
    -webkit-user-select: none;
}

.project-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.project-card {
    padding: 0;
    margin: 0;

    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.project-preview-slider {
    position: relative;
    display: block;

    width: 100%;
    max-width: 420px;
    aspect-ratio: 16 / 10;

    margin: 0 0 22px;

    overflow: hidden;

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

    border: none;
    outline: none;
    box-shadow: none;
}

.project-preview-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border: none;
    outline: none;
    box-shadow: none;

    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.project-preview-base {
    z-index: 1;
    opacity: 1;
}

.project-preview-top {
    z-index: 2;
    opacity: 0;
    animation: codeEvrymaSwap 10s infinite ease-in-out;
}

@keyframes codeEvrymaSwap {
    0% {
        opacity: 0;
    }

    42% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.project-card h3 {
    margin: 0 0 14px;

    font-family: "Michroma", sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;

    color: var(--ink);
}

.project-subtitle {
    margin-bottom: 16px !important;
    color: #000 !important;
    font-weight: 500 !important;
}

.project-extra {
    margin-top: 14px;
}

.project-status {
    width: fit-content;
    margin: 10px 0 0;

    font-size: 8.5px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.56);
}

.project-link {
    display: inline-block;
    margin-top: 9px;

    font-size: 9px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.52);
    text-decoration: none;

    cursor: default;
}

.project-slider-controls {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-top: 20px;
}

.project-arrow {
    font-size: 18px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

.project-counter {
    min-width: 34px;

    font-size: 10px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.12em;

    color: rgba(0, 0, 0, 0.62);
}

/* CONTACT */
.email-link {
    display: inline-block;
    margin-top: 22px;

    color: var(--ink);
    font-size: 20px;
    font-weight: 500;

    text-decoration: underline;
    text-underline-offset: 5px;
}

.email-link:hover {
    color: #000;
}

.contact-note {
    margin-top: 18px;
}

/* FOOTER */
.site-footer {
    position: fixed;
    right: 32px;
    bottom: 18px;
    z-index: 65;

    width: auto;
    max-width: calc(100% - 64px);

    text-align: right;
    pointer-events: none;
}

.site-footer p {
    margin: 0;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.04em;

    color: rgba(0, 0, 0, 0.62);
}

/* HOME QUOTE */
.home-quote {
    margin-top: 118px;
    max-width: 320px;
}

.quote-greek {
    display: block;
    margin: 0 0 8px;

    font-family: "Times New Roman", Georgia, serif !important;
    font-size: 10.5px;
    line-height: 1.45;
    font-weight: 700;
    font-style: italic !important;

    transform: skewX(-7deg);
    transform-origin: left center;

    color: rgba(23, 21, 20, 0.64);
}

.quote-english {
    margin: 0 0 8px;

    font-size: 10px;
    line-height: 1.45;
    font-weight: 400;
    font-style: normal !important;

    color: rgba(23, 21, 20, 0.58);
}

.quote-author {
    margin: 0;

    font-size: 8px;
    line-height: 1.3;
    font-weight: 600;
    font-style: normal !important;
    letter-spacing: 0.075em;
    text-transform: uppercase;

    color: rgba(23, 21, 20, 0.48);
}

/* TABLET */
@media (max-width: 900px) {
    .top-menu {
        top: 24px;
        gap: 26px;
    }

    .top-menu button,
    button {
        font-size: 11px;
        letter-spacing: 0.09em;
    }

    .text-zone {
        left: 38px;
        top: 96px;

        width: min(500px, calc(100vw - 76px));
        min-width: 0;
        max-width: none;
        min-height: auto;

        padding: 34px;
    }

    .text-zone::before {
        inset: -30px -26px -36px -26px;
        filter: blur(10px);
    }

    .brand-title {
        font-size: 38px;
        padding-right: 0.44em;
    }

    .brand-title span {
        top: -0.05em;
        right: 0.12em;
        font-size: 0.22em;
        letter-spacing: 0.05em;
    }

    .body-text,
    .project-card p {
        font-size: 16px;
    }
}

/* MOBILE */
@media (max-width: 520px) {
    html {
        width: 100%;
        height: var(--app-height);
        min-height: var(--app-height);

        overflow: hidden !important;
        overscroll-behavior: none !important;

        background: #000;
    }

    body {
        position: fixed;
        inset: 0;

        width: 100%;
        height: var(--app-height);
        min-height: var(--app-height);

        overflow: hidden !important;
        overscroll-behavior: none !important;

        background: #000;
    }

    .page-bg {
        position: fixed !important;
        inset: 0 !important;
        z-index: 0;

        width: 100vw !important;
        height: var(--app-height) !important;
        min-height: var(--app-height) !important;

        background-color: #000;
        background-image: url("../images/evanoesis-bg-mobile.png");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;

        overflow: hidden !important;
        pointer-events: none;

        will-change: filter, transform, opacity;
    }

    body.is-section-open .page-bg {
        filter: blur(3px);
        transform: scale(1.018);
        opacity: 0.92;
    }

    body.is-home .page-bg {
        filter: blur(0);
        transform: scale(1);
        opacity: 1;
    }

    .site-shell {
        position: fixed;
        inset: 0;
        z-index: 2;

        width: 100vw;
        height: var(--app-height);
        min-height: var(--app-height);

        margin: 0;
        overflow: hidden;
    }

    .top-menu {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);

        width: calc(100% - 28px);

        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        align-items: center;
        gap: 11px;
    }

    .top-menu button,
    button {
        padding: 0;

        font-size: 7.5px;
        letter-spacing: 0.04em;

        color: #000;
    }

    .text-zone {
        position: fixed;
        left: 28px;
        top: 78px;
        z-index: 3;

        width: calc(100% - 72px);
        min-width: 0;
        max-width: 300px;
        height: calc(var(--app-height) - 118px);
        min-height: 0;

        margin: 0;
        padding: 16px 14px 18px;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        touch-action: none !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: auto;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .text-zone::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .text-zone::before {
        inset: -14px -10px -18px -10px;

        background:
            radial-gradient(ellipse at center,
                rgba(246, 241, 237, 0.70) 0%,
                rgba(246, 241, 237, 0.54) 42%,
                rgba(246, 241, 237, 0.26) 70%,
                rgba(246, 241, 237, 0) 100%);

        filter: blur(8px);
    }

    .brand-title {
        margin-bottom: 16px;
        padding-right: 0.42em;

        font-size: 21px;
        line-height: 1;
        letter-spacing: 0.075em;
    }

    .brand-title span {
        top: -0.03em;
        right: 0.11em;

        font-size: 0.22em;
        letter-spacing: 0.05em;
    }

    .tagline {
        margin-bottom: 18px;

        font-size: 13px;
        line-height: 1.34;
    }

    h2 {
        margin-bottom: 16px;

        font-size: 16px;
        line-height: 1.15;
        letter-spacing: 0.035em;
    }

    .body-text,
    .project-card p {
        font-size: 11.5px;
        line-height: 1.52;
    }

    .body-text+.body-text {
        margin-top: 12px;
    }

    .project-slider {
        max-width: 100%;

        touch-action: none !important;
        overscroll-behavior: none !important;
    }

    .project-slider-window {
        overflow: hidden !important;

        touch-action: none !important;
        overscroll-behavior: none !important;
    }

    .project-slider-track,
    .project-slide,
    .project-card,
    .project-card h3,
    .project-subtitle,
    .project-card p,
    .project-extra,
    .project-status,
    .project-link,
    .project-preview-slider {
        touch-action: none !important;
        overscroll-behavior: none !important;
    }

    .project-preview-slider {
        max-width: 100%;
        aspect-ratio: 16 / 10;
        margin-bottom: 16px;
    }

    .project-card h3 {
        margin-bottom: 10px;

        font-size: 14px;
        line-height: 1.2;
    }

    .project-subtitle {
        margin-bottom: 11px !important;
    }

    .project-extra {
        margin-top: 10px;
    }

    .project-status {
        margin-top: 8px;
        font-size: 7.5px;
        letter-spacing: 0.045em;
    }

    .project-link {
        margin-top: 7px;
        font-size: 7.8px;
        letter-spacing: 0.045em;
    }

    .project-slider-controls {
        gap: 13px;
        margin-top: 16px;
    }

    .project-arrow {
        font-size: 16px !important;
    }

    .project-counter {
        min-width: 30px;
        font-size: 8.5px;
    }

    .email-link {
        margin-top: 16px;

        font-size: 12px;
        text-underline-offset: 4px;
    }

    .contact-note {
        margin-top: 14px;
    }

    .home-quote {
        position: fixed;
        left: 28px;
        top: 54vh;
        z-index: 5;

        margin-top: 0;
        max-width: 205px;
    }

    .quote-greek {
        margin-bottom: 6px;
        font-size: 8px;
        line-height: 1.38;
        font-weight: 700;
        font-style: italic !important;
        transform: skewX(-7deg);
    }

    .quote-english {
        margin-bottom: 6px;
        font-size: 7.5px;
        line-height: 1.38;
        font-weight: 400;
        font-style: normal !important;
    }

    .quote-author {
        font-size: 6.4px;
        line-height: 1.25;
        font-weight: 600;
        font-style: normal !important;
        letter-spacing: 0.04em;
    }

    .site-footer {
        right: 18px;
        bottom: 10px;
        width: auto;
        max-width: calc(100% - 36px);

        text-align: right;
    }

    .site-footer p {
        font-size: 8.5px;
        line-height: 1.35;
        letter-spacing: 0.025em;
        color: rgba(0, 0, 0, 0.56);
    }
}