@font-face {
	font-family: 'apoc';
	src: url('/assets/apoc-i.woff2') format('woff2');
}

@font-face {
	font-family: 'monument';
	src: url('/assets/monument.woff2') format('woff2');
}

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

body {
    font-size: 100%;
    background-color: #020202;
    color: #f8f8f8;
    margin: 24px;
    font-family: 'monument', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-contain {
    background-color: #212121;
    border-radius: 8px;
    width: auto;
    filter: blur(10px);
    opacity: 0;
    animation: fadeIn, unblur, shrink; 
    animation-duration: 1s, 1.25s, 1s;
    animation-delay: 0s, 0s, 1.35s;
    animation-fill-mode: forwards;
    transition: linear;
    min-height: calc(100vh - 48px);
}

header {
    background-color: #212121;
    border-radius: 8px;
    padding: 24px;
    width: auto;
    filter: blur(10px);
    opacity: 0;
    animation: fadeIn, unblur; 
    animation-duration: 1s, 1.25s;
    animation-fill-mode: forwards;
    transition: linear;
    overflow: visible;
}

@keyframes unblur {
    to {
        filter: blur(0px);
    }
}

@keyframes shrink {
    to {
        min-height: 561.83px;
    } 
}

.left, .right {
  width: calc(80px + 0.8vw);
  height: auto;
}

.left path,
.right path,
.logo path {
  vector-effect: non-scaling-stroke;
  stroke-width: 1;
}

.top-corners, .bottom-corners {
    display: flex;
    justify-content: space-between;
}

.top-corners .right {
    transform: rotate(90deg);
}

.bottom-corners .left {
    transform: rotate(-90deg);
}

.bottom-corners .right {
    transform: rotate(180deg);
}

.bottom-corners {
    transform: translateY(calc(41vh - 24px));
    animation: btmCorners 1s forwards;
    animation-delay: 1.35s;
    transition: linear;
}

@keyframes btmCorners {
    to {
        transform: translateY(0);
    }
}

.center-head {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: -3em 0;
    gap: 3em;
    transform: translateY(200px);
    animation: centerHead 0.95s forwards;
    animation-delay: 1.35s;
    transition: linear;
}

@keyframes centerHead {
    to {
        transform: translateY(0);
    }
}

h1 {
    font-family: 'apoc', serif;
    /* font-size: clamp(66px, 7vw, 7vw); */
    font-size: calc(100px + 1vw);
    font-weight: 100;
    letter-spacing: normal;
    margin: 0;
    line-height: 0.85em;
}

.logo {
    width: calc(320px + 1vw);
}

.btm-headers {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 1em;
}

h2, h3 {
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
}

h2 {
    font-size: clamp(16px, calc(16.5px + 0.165vw), 28px);
    letter-spacing: .02em; 
}

h3 {
    font-size: clamp(12px, calc(10px + 0.1vw), 22px);
    letter-spacing: .04em; 
}

main {
    container-type: inline-size;
    column-count: 3;
    margin: 40px 0;
    column-gap: 24px;
    opacity: 0;
    filter: blur(10px);
    animation: fadeIn, unblur;
    animation-duration: 1.5s, 2s;
    animation-delay: 1.15s, 1.15s;  
    animation-fill-mode: forwards, forwards;
    transition: linear;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.image-contain {
    position: relative;
    display: block;
    cursor: pointer;
}

img {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    display: block;
}

.info {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    color:#f8f8f8;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3em;
    gap: 1em;
}

h4 {
    font-size: 20px;
    font-weight: 100;
}

.image-contain:hover .info {
    opacity: 1;
}

@media (hover: none) {
  .image-contain:focus-within .info {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
    main {
        column-count: 2;
    }

    .bottom-corners {
        transform: translateY(calc(37vh - 24px)); 
    }
    
    @keyframes shrink {
        to {
            min-height: 543.08px;
        }
    }
}

@media (max-width: 900px) {
    .info {
        padding: 0.1em;
    }
}

@media (max-width: 768px) {
    .bottom-corners {
        transform: translateY(calc(38vh - 24px)); 
    }
    
    @keyframes shrink {
        to {
            min-height: 535.81px;
        }
    }
}

@media (max-width: 430px) {
    /* ------------ / intro animation / ------------ */
    .header-contain {
        min-height: calc(100vh - 2em);
    }

    .bottom-corners {
        transform: translateY(calc(52vh - 24px)); 
    }
    
    @keyframes shrink {
        to {
            min-height: 429.75px;
        }
    }
    .center-head {
        transform: translateY(220px);
    }
    /* ---------------- //  end  // ---------------- */

    body { 
        margin: 1em;
    }

    header {
        padding: 1em;
    }

    .center-head {
        gap: 1.25em;
        margin: -1em 0;
    }

    h1 {
        font-size: 20vw;
    }

    .logo {
       width: 64vw; 
    }

    .left, .right {
        width: 12vw;
    }

    .btm-headers {
        gap: 0.5em;
    }

    main {
        column-count: 1;
    }

    .info {
        padding: 0em;
    }

    img {
        margin-bottom: 1em;
    }
}