@font-face {
    font-family: 'Trafika';
    src: url("../fonts/Trafika/Trafika-Sans.otf") format("opentype");
}

@font-face {
    font-family: 'Roobert';
    src: url("../fonts/Roobert/Roobert-Regular.otf") format("opentype");
}

@font-face {
    font-family: 'Space Grotesk';
    src: url("../fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-family: 'Instrument Serif';
    src: url("../fonts/Instrument_Serif/InstrumentSerif-Regular.ttf") format("truetype");
}

@font-face {
    font-family: 'Instrument Serif Italic';
    src: url("../fonts/Instrument_Serif/InstrumentSerif-Italic.ttf") format("truetype");
}

@font-face {
    font-family: 'Rinter';
    src: url("../fonts/Rinter/OpenTypePS/Rinter.otf") format("opentype");
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Trafika', sans-serif;
    font-size: calc((100vw * .002) + 13px);
    font-weight: 400;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    webkit-overflow-scrolling: touch;
    background-color: #E4E1D4;
    cursor: url('../icons/cursor.png'), default;
    color: #31302F;
}

*:focus,
*:active,
*:hover,
input,
input:focus,
input:active,
input:hover {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

input {
    cursor: url('../icons/text-edit.png'), text;
}

h1,
h2,
h3,
h4 {
    font-family: 'Trafika', sans-serif;
    color: #31302F;
}

a {
    text-decoration: none
}

span {
    color: #494746;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    z-index: 300;
    transform: translateZ(0);
}

.grain:before {
    content: "";
    top: -10rem;
    left: -10rem;
    width: calc(100% + 20rem);
    height: calc(100% + 20rem);
    z-index: 9999;
    position: fixed;
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/5/5c/Image_gaussian_noise_example.png);
    opacity: 0.15;
    pointer-events: none;
    -webkit-animation: noise 1s steps(2) infinite;
    animation: noise 1s steps(2) infinite;
}

@-webkit-keyframes noise {
    to {
        transform: translate3d(-7rem, 0, 0)
    }
}

@keyframes noise {
    0% {
        transform: translate3d(0, 9rem, 0)
    }
    10% {
        transform: translate3d(-1rem, -4rem, 0)
    }
    20% {
        transform: translate3d(-8rem, 2rem, 0)
    }
    30% {
        transform: translate3d(9rem, -9rem, 0)
    }
    40% {
        transform: translate3d(-2rem, 7rem, 0)
    }
    50% {
        transform: translate3d(-9rem, -4rem, 0)
    }
    60% {
        transform: translate3d(2rem, 6rem, 0)
    }
    70% {
        transform: translate3d(7rem, -8rem, 0)
    }
    80% {
        transform: translate3d(-9rem, 1rem, 0)
    }
    90% {
        transform: translate3d(6rem, -5rem, 0)
    }
    to {
        transform: translate3d(-7rem, 0, 0)
    }
}

nav {
    width: calc(100% - 2rem);
    margin: 0;
    position: fixed;
    top: 0;
    left: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 99;
}

nav .txt {
    margin: 1rem 0 0;
    font-size: 1.6rem;
    line-height: 1.4rem;
}

nav img {
    height: 3.4rem;
    width: auto;
    margin: 1vw 0 0;
}

.mid-nav {
    width: calc(100% - 0rem);
    display: flex;
    justify-content: center;
}

.mid-nav .mid-nav-container {
    width: 100%;
    /* width: calc(92vw + 2rem); */
    /* max-width: calc(1200px + 2rem); */
    display: flex;
    margin: 4rem auto 8rem;
    justify-content: space-between;
    align-items: center;
}

.mid-nav .lnk {
    padding: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    cursor: url('../icons/pointer.png'), pointer;
    transition: all 0.4s ease-in-out;
}

.mid-nav .lnk:hover a {
    text-decoration: line-through;
    transition: all 0.4s ease-in-out;
}

.mid-nav .lnk l {
    margin-left: 0.1rem;
    font-weight: 300;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    display: block;
}

.mid-nav hr {
    height: 0rem;
    width: 1px;
    background-color: #494746;
    opacity: 0.4;
}

t {
    width: 100%;
    margin: 0 auto;
    position: absolute;
    top: -2.2rem;
    left: 0rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.1rem;
    font-style: italic;
    text-align: right;
    color: #494746;
    opacity: 0.6;
    /* font-family: 'Instrument Serif', serif; */
}

vrt {
    width: 100%;
    height: 1px;
    display: block;
    background-color: #494746;
}

.sc-01 {
    height: calc(100svh - 0rem);
    width: 100%;
    margin: 0rem auto 0;
    position: relative;
}

.txt-cont {
    width: 100%;
    height: 30vw;
    margin: 0rem 0 0;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.scrl {
    width: 200vw;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    overflow: visible;
    animation: move 16s infinite linear;
    /* set the time to what you want of course */
}

@keyframes move {
    to {
        transform: translateX(-50%);
    }
}

.sc-01 h1 {
    width: 100vw;
    margin: 0rem 0 0;
    /* position: absolute; */
    /* left: 0; */
    /* top: 50svh; */
    /* transform: translateY(-50%); */
    text-align: center;
    overflow-wrap: break-word;
    /* z-index: 2; */
}

.sc-01 h2 {
    width: 100%;
    margin: 0;
    font-family: 'Instrument Serif', serif;
    /* font-size: 3rem; */
    font-size: calc(2vw + 2vh);
    position: absolute;
    left: 50vw;
    top: calc(50svh - 2vw - 11vh);
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.h1-v {
    /* font-size: calc(5rem + 14vh); */
    /* line-height: calc(3rem + 13vh); */
    font-size: 24vh;
    line-height: 19vh;
}

.h1-h {
    /* font-size: calc(5rem + 8vw); */
    /* line-height: calc(3rem + 7vw); */
    font-size: 16.8vw;
    line-height: 11vw;
}

.sc-01 img {
    width: 80%;
    height: 80svh;
    margin: 0;
    object-fit: contain;
    object-position: center;
    position: absolute;
    left: 9%;
    top: 10svh;
    z-index: 1;
}

.sc-02 {
    width: calc(100% - 2rem);
    /* width: 92vw; */
    /* max-width: 1200px; */
    margin: 10rem auto 0;
    position: relative;
}

.sc-02 h1 {
    width: 96%;
    max-width: 960px;
    font-size: 3.2rem;
    line-height: 3.4rem;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.sc-02 hl {
    margin: 0 0 3.4rem;
    display: block;
    font-family: 'Instrument Serif', serif;
    font-weight: bold;
    font-size: 1.6rem;
}

.sc-02 span {
    display: block;
    max-width: 900px;
    margin: 0 0 0 auto;
    font-size: 1.5rem;
    line-height: 2.4rem;
    text-align: justify;
}

.sc-03 {
    width: calc(100% - 2rem);
    margin: 10rem auto 0;
    position: relative;
}

.sc-03 .projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.sc-03 .projects::after {
    width: 32%;
    content: "";
}

.sc-03 .projects .project {
    width: 32%;
    margin-bottom: 3rem;
    cursor: url('../icons/zoom.png'), pointer;
}

.sc-03 .projects .project h2 {
    margin: 0;
    font-size: 1.4rem;
}

.sc-03 .projects .project hl {
    margin: 0 0 0.2rem;
    display: block;
    font-family: 'Instrument Serif', serif;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0.6;
    color: #494746;
}

.sc-03 .projects .project span {
    font-size: 1.2rem;
}

.sc-03 .projects .project img {
    width: 100%;
    margin: 0.4rem 0;
    aspect-ratio: 2/3;
    object-fit: cover;
    object-position: center;
}

.sc-04 {
    width: calc(100% - 2rem);
    /* width: 96vw; */
    /* max-width: 1200px; */
    margin: 10rem auto 0;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.sc-04 .itm {
    width: 50%;
    height: 100%;
    /* display: flex; */
    /* align-items: flex-end; */
}

.sc-04 .itm h2 {
    width: 100%;
    max-width: 30rem;
    margin: 0;
    font-size: 1.8rem;
}

.sc-04 .itm hl {
    margin: 0.6rem 0 0.2rem;
    display: block;
    font-family: 'Instrument Serif', serif;
    font-weight: bold;
    font-size: 1.4rem;
    color: #494746;
}

.sc-04 .txt {
    width: 80%;
    max-width: 20rem;
    margin: -0.2rem 0 0 auto;
    padding-bottom: 20svh;
    font-size: 1.2rem;
}

.sc-04 .txt:last-of-type {
    padding-bottom: 0;
}

.sc-04 .txt h3 {
    font-size: 1.4rem;
    margin: 0.4rem 0 1.4rem;
}

.sc-04 .txt l {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 300;
}

.sc-04 .sticky {
    height: calc(100svh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* justify-content: space-between; */
    position: sticky;
    top: 5rem;
}

.sc-05 t {
    width: calc(100% - 2rem);
    left: 1rem;
}

.sc-05 {
    width: 100%;
    margin: 10rem auto 0;
    position: relative;
}

.sc-05 .txt-m {
    width: calc(100% - 2rem);
    margin: 1.2rem auto 0rem;
    text-align: center;
}

.sc-05 .txt-m h3 {
    display: inline-block;
    margin: 0 auto;
    padding: 0 0 0.1rem;
    font-size: 1.6rem;
    border-bottom: solid 1px #31302F;
    cursor: url('../icons/pointer.png'), pointer;
}

.sc-05 .projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.sc-05 .projects::after {
    flex: 1;
    content: "";
}

.sc-05 .projects .project {
    flex: 1 1 25%;
    max-width: 25%;
    position: relative;
}

.sc-05 .projects .project img {
    width: 100%;
    margin: 0;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center;
}

.sc-05 .projects .project .txt {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
}

.sc-05 .projects .project .txt h2 {
    margin: 0;
}

.sc-06 {
    width: calc(100% - 2rem);
    margin: 11rem auto 0;
    position: relative;
}

.sc-06 .txt h2 {
    font-size: 1.8rem;
}

.sc-06 .txt h3 {
    font-size: 1.8rem;
    margin-top: 6rem;
    margin-bottom: 0;
}

.sc-06 .txt hl {
    margin: 0 0 2.2rem;
    display: block;
    font-family: 'Instrument Serif', serif;
    font-weight: bold;
    font-size: 1.4rem;
    color: #494746;
}

.sc-06 form {
    width: 100%;
    max-width: 44rem;
    margin: 3rem 0 0 auto;
}

.sc-06 form-group {
    width: 100%;
    display: block;
    position: relative;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.sc-06 form-group input {
    width: 34rem;
    border: none;
    border-bottom: solid 1px #31302F;
    background-color: transparent;
    padding: 0 0 0.4rem 10rem;
    font-size: 1.3rem;
    font-family: 'Trafika', sans-serif;
}

.sc-06 form-group label {
    position: absolute;
    top: 0;
    left: 0;
    color: #494746;
    pointer-events: none;
}

.sc-06 form-group input[type="button"] {
    width: auto;
    padding: 0 0.4rem;
    margin-top: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    cursor: url('../icons/pointer.png'), pointer;
}

.sc-07 {
    width: calc(100% - 2rem);
    margin: 1rem auto 0;
    position: relative;
    overflow: hidden;
}

.sc-07 h1 {
    width: calc(100% + 0.8vw);
    margin: 0 -0.4vw;
    display: inline-block;
    text-align: justify;
    /* font-size: 16.75vw; */
    /* font-size: 15.92vw; */
    /* line-height: 14vw; */
    white-space: nowrap;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

.sc-07 .dtls {
    width: 100%;
    margin: -3vw 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-07 .dtls p {
    margin: 0;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.sc-07 .dtls hl {
    /* margin: 0 0 2.2rem; */
    display: block;
    font-family: 'Instrument Serif', serif;
    font-weight: bold;
    font-size: 1.4rem;
    color: #494746;
    cursor: url('../icons/pointer.png'), pointer;
}

.sc-07 .dtls img {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0.15rem 0.1rem -0.15rem 0rem;
    object-fit: contain;
    object-position: center;
    -webkit-animation: circle infinite 12s linear;
    -moz-animation: circle infinite 12s linear;
    -o-animation: circle infinite 12s linear;
    animation: circle infinite 12s linear;
}

@-webkit-keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/* .sc-07 h1:after {
    content: "";
    display: inline-block;
    width: 100%;
} */

@media (orientation: landscape) {
    .h1-h {
        display: block;
    }
    .h1-v {
        display: none;
    }
}

@media (orientation: portrait) {
    .h1-h {
        display: none;
    }
    .h1-v {
        display: block;
    }
}

@media only screen and (max-width: 860px) {
    .sc-01 h2 {
        top: calc(100svh - 2vw - 10vh);
    }
    .mid-nav .mid-nav-container {
        width: auto;
        margin: 3.4rem 50% 2rem auto;
        transform: translateX(50%);
        flex-direction: column;
        display: inline-block;
    }
    .mid-nav .lnk l {
        display: inline-block;
        margin-right: 0.4rem;
    }
    .sc-03 {
        width: 100%;
    }
    .sc-03 t {
        width: calc(100% - 2rem);
        left: 1rem;
    }
    .sc-03 .projects {
        width: auto;
        overflow: scroll;
        flex-wrap: nowrap;
        gap: 2rem;
        padding: 0 1rem;
    }
    .sc-03 .projects .project {
        width: 20rem;
        min-width: 20rem;
        margin-bottom: 3rem;
    }
    .sc-04 {
        flex-direction: column;
    }
    .sc-04 .itm {
        width: 100%;
    }
    .sc-04 .sticky {
        height: auto;
        margin-bottom: 3rem;
    }
    .sc-05 .projects .project {
        flex: 1 1 50%;
        max-width: 50%;
    }
    .sc-06 form-group input {
        width: calc(100vw - 8rem);
        padding: 0 0 0.4rem 6rem;
    }
}