
/* VIRASAT - THE STUDIO CHRONICLES */

.vc-chronicles {
    position: relative;
    isolation: isolate;
    padding: clamp(70px, 8vw, 130px) 5%;
    background: #1b1814;
    overflow: hidden;
}

.vc-heading {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 65px;
}

.vc-eyebrow {
    color: #c5a575;
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.vc-heading h2 {
    font-size: clamp(40px, 6vw, 88px);
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -.045em;
    color: #f0e4cc;
    margin: 20px 0;
    line-height: 1.05;
}

.vc-heading p {
    color: #bdb09b;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.8;
}

.vc-manuscript {
    position: relative;
    max-width: 1250px;
    margin: auto;
    padding: clamp(24px, 5vw, 75px);
    color: #39291d;
    background:
        url("../assets/chronicle-grain.svg"),
        radial-gradient(
            ellipse at center,
            #f1e2bd 10%,
            #e5cda1 65%,
            #bd9866 100%
        );
    border: 1px solid #b79560;
    border-radius: 4px 8px 3px 7px;
    box-shadow:
        inset 0 0 65px #78502555,
        0 0 0 7px #60452d,
        0 0 0 9px #9a794a,
        0 30px 90px #0008;
}

.vc-manuscript::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid #82613d80;
    pointer-events: none;
}

.vc-corner {
    position: absolute;
    font-family: Georgia, serif;
    font-size: 34px;
    color: #795737;
    line-height: 1;
    pointer-events: none;
}

.vc-tl { top: 17px; left: 17px; }
.vc-tr { top: 17px; right: 17px; transform: rotate(90deg); }
.vc-bl { bottom: 17px; left: 17px; transform: rotate(-90deg); }
.vc-br { bottom: 17px; right: 17px; transform: rotate(180deg); }

.vc-manuscript-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #99774b80;
}

.vc-manuscript-header span {
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.vc-manuscript-header h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 52px);
    margin: 12px 0;
    color: #39291d;
}

.vc-chapter {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(25px, 4vw, 60px);
    padding: 45px 0;
}

.vc-chapter + .vc-chapter {
    border-top: 1px solid #99774b80;
}

.vc-chapter:nth-of-type(even) .vc-copy {
    order: 2;
}

.vc-part {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 19px;
    color: #795737;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vc-part::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #96744980;
}

.vc-copy h4 {
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.035em;
    margin: 20px 0 12px;
    color: #39291d;
}

.vc-category {
    color: #795737;
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.vc-copy p {
    font-family: Georgia, serif;
    color: #4b3725;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.85;
    margin: 20px 0;
}

.vc-picture {
    margin: 0;
    min-width: 0;
}

.vc-picture-frame {
    padding: 7px;
    background: #b69765;
    border: 1px solid #785737;
    box-shadow: 3px 8px 18px #523b2733;
    transform: rotate(-.65deg);
    transition: transform .35s ease;
}

.vc-picture-frame img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #483424;
}

.vc-picture figcaption {
    text-align: center;
    font-family: Georgia, serif;
    font-style: italic;
    color: #705435;
    font-size: 13px;
    margin-top: 16px;
}

.vc-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #f4e5c7 !important;
    background: #503625;
    border: 1px solid #87613c;
    border-radius: 3px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 15px;
    transition: background .25s ease;
}

.vc-link:hover {
    background: #735037;
}

.vc-end {
    text-align: center;
    border-top: 1px solid #99774b80;
    padding-top: 24px;
    color: #795737;
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: .16em;
}

.vc-reveal {
    animation: vc-appear .65s ease both;
}

@keyframes vc-appear {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: hover) {
    .vc-picture-frame:hover {
        transform: rotate(0deg) translateY(-4px);
    }
}

@media (max-width: 760px) {
    .vc-chronicles {
        padding: 65px 20px;
    }

    .vc-heading {
        margin-bottom: 40px;
    }

    .vc-manuscript {
        padding: 28px 22px;
    }

    .vc-chapter {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding: 30px 0;
    }

    .vc-chapter:nth-of-type(even) .vc-copy {
        order: initial;
    }

    .vc-picture-frame {
        transform: none;
    }

    .vc-link {
        min-height: 44px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-chronicles *,
    .vc-chronicles *::before {
        animation: none !important;
        transition: none !important;
    }
}


/* VIRASAT - SYMMETRICAL MANUSCRIPT ORNAMENTS */

.vc-corner {
    position: absolute !important;
    display: block !important;
    width: clamp(24px, 3vw, 42px);
    height: clamp(24px, 3vw, 42px);
    font-family: Georgia, serif !important;
    font-size: clamp(25px, 3vw, 40px) !important;
    line-height: 1 !important;
    color: #795737 !important;
    opacity: .85;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.vc-tl {
    top: 20px !important;
    left: 20px !important;
    transform: none !important;
}

.vc-tr {
    top: 20px !important;
    right: 20px !important;
    transform: scaleX(-1) !important;
}

.vc-bl {
    bottom: 20px !important;
    left: 20px !important;
    transform: scaleY(-1) !important;
}

.vc-br {
    bottom: 20px !important;
    right: 20px !important;
    transform: scale(-1, -1) !important;
}

.vc-manuscript-header {
    padding-inline: 45px !important;
    padding-top: 15px !important;
}

.vc-end {
    padding-inline: 45px !important;
}

@media (max-width: 760px) {

    .vc-corner {
        width: 24px;
        height: 24px;
        font-size: 25px !important;
    }

    .vc-tl, .vc-tr {
        top: 14px !important;
    }

    .vc-bl, .vc-br {
        bottom: 14px !important;
    }

    .vc-tl, .vc-bl {
        left: 14px !important;
    }

    .vc-tr, .vc-br {
        right: 14px !important;
    }

    .vc-manuscript-header {
        padding-inline: 24px !important;
        padding-top: 22px !important;
    }

    .vc-manuscript-header span {
        font-size: 10px !important;
        letter-spacing: .12em !important;
    }
}

/* END MANUSCRIPT ORNAMENTS */

/* CHRONICLES WORK ONLY */

#studio-chronicles {
    display: none !important;
}

#work.page.active #studio-chronicles {
    display: block !important;
}

#work.page:not(.active) #studio-chronicles {
    display: none !important;
}
