/* == CHERNO MORE TICHА == */


/* Base */

.cherno-page {

    width: 100%;

    background: var(--bg);

    color: var(--primary-color);

}


.cherno-container {

    width: min(calc(100% - 80px),
            1440px);

    margin-inline: auto;

}


/* Section */
.cherno-section {

    padding:
        clamp(90px, 10vw, 150px) 0;

}


.cherno-section-label {

    display: flex;

    align-items: baseline;

    gap: 1.5rem;

    margin-bottom:
        clamp(70px, 9vw, 130px);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.14);

    padding-bottom: 1rem;

}


.cherno-section-label .section-number {

    margin: 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(3.5rem, 5vw, 5.5rem);

    font-style: italic;

    font-weight: 400;

    line-height: 0.8;

    letter-spacing: -0.06em;

    color:
        var(--accent);

}


.cherno-section-label .section-name {

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size:
        0.75rem;

    font-weight: 500;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;

    opacity: 0.7;

}


/* Typography */

.cherno-page p,
.cherno-page h1,
.cherno-page h2,
.cherno-page h3 {

    font-family:
        "IBM Plex Mono",
        monospace;

}


.cherno-kicker {

    margin: 0 0 2rem;

    font-size:
        0.75rem;

    font-weight: 500;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;

    opacity: 0.65;

}


.cherno-page h1,
.cherno-page h2,
.cherno-page h3 {

    margin: 0;

    font-weight: 400;

}


.cherno-page h1 {

    font-size:
        clamp(3rem, 7vw, 7rem);

    line-height: 0.95;

    letter-spacing:
        -0.06em;

}


.cherno-page h1 span,
.cherno-page h2 span {

    opacity: 0.4;

}


.cherno-page h2 {

    font-size:
        clamp(2.5rem, 5vw, 5.5rem);

    line-height: 0.95;

    letter-spacing:
        -0.06em;

}


/* Project Overview */

.cherno-overview {

    padding-top:
        clamp(150px, 16vw, 240px);

}


.cherno-overview-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr) minmax(280px, 0.75fr);

    gap:
        clamp(50px, 10vw, 160px);

    align-items: end;

    margin-bottom:
        clamp(70px, 9vw, 130px);

}


.cherno-overview-description {

    max-width: 560px;

}


.cherno-overview-description p {

    margin: 0;

    font-size:
        clamp(1rem, 1.25vw, 1.3rem);

    line-height: 1.7;

    opacity: 0.65;

}


/* Hero */

.cherno-hero {

    width: 100%;

    margin: 0;

    overflow: hidden;

    background:
        #111;

}


.cherno-hero img {

    display: block;

    width:
        min(100%, 720px);

    max-height: 78vh;

    height: auto;

    object-fit: contain;

    margin-inline: auto;

    transition:
        filter 1s
        cubic-bezier(.22, 1, .36, 1),

        transform 1s
        cubic-bezier(.22, 1, .36, 1);
}


.cherno-hero:hover img {

    filter:
        grayscale(0%);

    transform:
        scale(1.01);

}


.cherno-meta {

    display: flex;

    justify-content: space-between;

    gap: 2rem;

    padding-top: 1.25rem;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size:
        0.7rem;

    letter-spacing:
        0.1em;

    text-transform:
        uppercase;

    opacity: 0.55;

}


/* Content */
.cherno-content-intro {

    max-width: 820px;

    margin:
        0 0 clamp(80px, 10vw, 140px);

}


.cherno-content-intro p {

    margin: 0;

    font-size:
        clamp(1.15rem, 1.6vw, 1.6rem);

    line-height: 1.65;

    letter-spacing:
        -0.02em;

}


/* Scope */

.cherno-scope {
    border-top:
        1px solid rgba(255, 255, 255, 0.18);
}


.cherno-scope-item {

    display: grid;

    grid-template-columns:
        45px 1fr;

    align-items: center;

    gap: 2rem;

    padding:
        1.75rem 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.18);

    animation:
        chernoScopeIn 0.8s cubic-bezier(.22, 1, .36, 1) both;
}


.cherno-scope-item span {

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size:
        0.7rem;

    letter-spacing:
        0.08em;

    color:
        var(--accent);
}


.cherno-scope-item p {

    margin: 0;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size:
        clamp(1rem, 1.4vw, 1.35rem);

    font-weight: 400;

    line-height: 1.2;

    letter-spacing:
        -0.02em;

    color:
        var(--primary-color);

    opacity:
        0.35;

    text-transform:
        none;

    transform:
        translateX(0);

    transition:
        color 0.45s ease,
        opacity 0.45s ease,
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}


/* Section Headings */

.cherno-section-heading {

    margin-bottom:
        clamp(60px, 8vw, 110px);

}


/* Image grid */

.cherno-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        clamp(45px, 5vw, 80px) clamp(24px, 3vw, 48px);

    max-width: 1200px;

    margin-inline: auto;
}


.cherno-card {

    margin: 0;

}


.cherno-card figure {

    position: relative;

    width: 100%;

    aspect-ratio:
        4 / 5;

    margin: 0;

    overflow: hidden;

    background:
        #111;

}


.cherno-card figure img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        transform 1s
        cubic-bezier(.22, 1, .36, 1);
}


/* Image hover */

.cherno-card:hover figure img {
    transform: scale(1.012);
}


/* Card meta */

.cherno-card-meta {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 2rem;

    padding-top:
        1rem;

}


.cherno-card-meta span {

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size:
        0.65rem;

    letter-spacing:
        0.1em;

    text-transform:
        uppercase;

    opacity: 0.55;

}


.cherno-card-meta h3 {

    margin-top:
        0.35rem;

    font-size:
        0.85rem;

    line-height:
        1.4;

    letter-spacing:
        0.04em;

    text-transform:
        uppercase;

}


.cherno-arrow {

    opacity: 0.65 !important;

    transition:
        transform 0.6s cubic-bezier(.22, 1, .36, 1);

}


.cherno-card:hover .cherno-arrow {

    transform:
        translateX(6px);

}


/* Page Entrance */

.cherno-overview>.cherno-container {

    animation:
        chernoPageIn 1.2s cubic-bezier(.22, 1, .36, 1) both;

}


@keyframes chernoPageIn {

    from {

        opacity: 0;

        transform:
            translateY(30px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* Scope Entrance */

.cherno-scope-item {
    animation:
        chernoScopeIn 0.8s cubic-bezier(.22, 1, .36, 1) both;
}

.cherno-scope-item:nth-child(1) {
    animation-delay: 0.1s;
}

.cherno-scope-item:nth-child(2) {
    animation-delay: 0.18s;
}

.cherno-scope-item:nth-child(3) {
    animation-delay: 0.26s;
}

.cherno-scope-item:nth-child(4) {
    animation-delay: 0.34s;
}

.cherno-scope-item:nth-child(5) {
    animation-delay: 0.42s;
}

/* Active Scope Item */
.cherno-scope-item p {

    margin: 0;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size:
        clamp(1rem, 1.4vw, 1.35rem);

    line-height:
        1.2;

    letter-spacing:
        -0.02em;

    color:
        var(--primary-color);

    opacity:
        0.35;

    font-style:
        normal;

    transform:
        translateX(0);

    transition:
        color 0.8s cubic-bezier(.22, 1, .36, 1),
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        transform 0.8s cubic-bezier(.22, 1, .36, 1),
        font-style 0.8s ease;

}

.cherno-scope-item.is-active p {

    font-family:
        Georgia,
        serif;

    font-style:
        italic;

    color:
        var(--accent);

    opacity:
        1;

    transform:
        translateX(12px);
}


.cherno-scope-item.is-active span {

    opacity:
        1;

}


@keyframes chernoScopeIn {

    from {

        opacity: 0;

        transform:
            translateY(18px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}