* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #7f7caf;
    --virulent-purple: hsl(281, 57%, 41%);
    --white: rgb(252, 252, 253);
    --black: hsl(244, 24%, 3%);
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
}

h1 {
    font-size: 140px;
    font-weight: 900;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    transform-origin: top left;

}

h1 span {
    transform: translate3d(0, 100%, 0);
}

p,
a {
    font-family: 'Outfit', sans-serif;
}

.try {
    margin-top: 40dvh;
}

.first__try {
    position: relative;
    margin-bottom: calc(20dvh + 40px);
}

.first__try-desc {
    max-width: 500px;
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
    font-weight: 100;
    position: relative;
    overflow: hidden;
}
.first__try-desc span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200%;
}

.first__try-desc span span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--black);
    height: 100%;
    clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    85% 100%,
    85% 85%,
    70% 85%,
    70% 70%,
    55% 70%,
    55% 55%,
    40% 55%,
    40% 40%,
    25% 40%,
    25% 25%,
    10% 25%,
    10% 10%,
    0 10%
    );
}
.first__try-desc span span:nth-last-of-type(1) {
    /* transform: scaleX(-1); */
}

/* .first__try-desc:before,
.first__try-desc:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 50%;
    background-color: red;
    height: 200%;
    clip-path: polygon(0 0, 100% 0, 100% 48%, 34% 100%, 0 100%);
}

.first__try-desc:after {
    right: 0;
    left: auto;
    transform: scaleX(-1);
} */

.separator {
    position: absolute;
    background-color: var(--white);
    pointer-events: none;
}
.separator--h {
    width: calc(100% - 80px);
    height: 1px;
    margin-left: auto;
    margin-right: auto;
}
.separator--v {
    width: 1px;
    height: calc(100% - 80px);
    position: absolute;
    left: calc(50% - 1px);
    top: 40px;
}

.first__try .cols {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    padding: 40px;
    height: 100dvh;
    width: 100vw;
    margin: 20dvh 0;
}

.first__try .col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: calc(50% - 20px);
}

.first__try .col--1 {
    margin-right: 20px;
}

.first__try .col--2 {
    margin-left: 20px;
}

.first__try .col .image {
    position: relative;
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.first__try .col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.first__try .col:hover .image {
    height: 80%; /* Image size change on hover */
    width: 80%;
}


.first__try .cols .separator {
    opacity: .2;
}
.first__try .cols .separator--h {
    top: -10dvh;
    transform: scale(0 ,0);
}
.first__try .cols .separator--h:nth-last-of-type(1) {
    bottom: -10dvh;
    top: auto;
}

.first__try .cols .separator--v {
    transform-origin: top;
    transform: scale(0 ,0);
}

.second_try {
    min-height: 130dvh;
    margin-bottom: 20dvh;
    width: 100%;
    position: relative;
}

.second_try .background-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform-origin: top;
}

.second_try .background-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 0, 0, .3);
}


.second_try .background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.second_try h3 {
    position: absolute;
    background-color: var(--black);
    bottom: 0;
    left: 0;
    right: 0;
    mix-blend-mode: darken;
}

.second_try h3 span {
    display: block;
    font-size: 200px;
    font-weight: 900;
}

.second_try h3 span:nth-last-of-type(1) {
    transform: translate(20%, 0);
}

.third_try {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(auto-fill, 30px);
    grid-template-rows: repeat(auto-fill, 30px);
    width: 100%;
    height: 100%;
}

.third_try h2 {
    font-size: 100px;
    width: fit-content;
}

.grid div {
    position: relative;
    opacity: .1;
}
.grid div span {
    position: absolute;
    /* opacity: 0; */
    /* transition: 1s; */
    /* transition: ease-out .5s; */
}
/* .grid div:hover span {
    opacity: 1;
    transition: 0;
} */
.grid div span:nth-child(1) {
    height: 4px;
    width: 1px;
    top: 0;
    left: 0;
    background-color: var(--white);
}
.grid div span:nth-child(2) {
    height: 1px;
    width: 4px;
    top: 0;
    left: 0;
    background-color: var(--white);
}
.grid div span:nth-child(3) {
    height: 1px;
    width: 4px;
    top: 0;
    right: 0;
    background-color: var(--white);
}
.grid div span:nth-child(4) {
    height: 4px;
    width: 1px;
    top: 0;
    right: 0;
    background-color: var(--white);
}
.grid div span:nth-child(5) {
    height: 4px;
    width: 1px;
    bottom: 0;
    right: 0;
    background-color: var(--white);
}
.grid div span:nth-child(6) {
    height: 1px;
    width: 4px;
    bottom: 0;
    right: 0;
    background-color: var(--white);
}
.grid div span:nth-child(7) {
    height: 1px;
    width: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
}
.grid div span:nth-child(8) {
    height: 4px;
    width: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
}

canvas#gridCanvas {
    transition: .4s;
}

canvas#gridCanvas:not(:hover) {
    opacity: .2;
    filter: grayscale(1);
}

footer {
    background-color: var(--virulent-purple);
    color: var(--black);
    position: relative;
    padding: 140px 22px;
}

footer .background-text {
    color: transparent;
    position: absolute;
    overflow: hidden;
    display: flex;
    pointer-events: none;
    top: 0;
    left: 0;
    font-size: 500px;
    line-height: .8;
    font-family: 'Bricolage Grotesque', sans-serif;
    -webkit-text-stroke: .5px hsl(281, 57%, 31%);
    text-stroke: .5px hsl(281, 57%, 31%);
    /* opacity: .3; */
    /* filter: blur(4px); */
}
footer .cols {
    display: flex;
    /* flex-direction: row-reverse; */
    flex-wrap: nowrap;
    gap: 15%;
    /* text-align: right; */
}

footer li {
    list-style: none;
}

footer li + li {
    margin-top: 8px;
}

footer li a {
    color: black;
    text-decoration: none;
}

footer .col-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 900;
    margin-bottom: 16px;
}