@font-face {
    font-family: Clash Display;
    src: url("../../assets/fonts/ClashDisplay-Variable.ttf") format("truetype");
}

:root {
    --dark: #10100E;
    --cream: #FFFFE3;
}

/* --------------- RECOMMENDED LENIS CSS ---------------*/

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* ---------------------------------------------------- */

* {
    box-sizing: border-box
}

html {
    font-size: 62.5%;
    scrollbar-width: none;
}

/* -------------------- GO BACK ARROW -------------------- */

.go-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0s ease 5s forwards;
}

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

#go_back_arrow #stem {
    animation: stem 1.8s ease-out 6.3s forwards;
}

@keyframes stem {
    100% {
        transform: translate(100px, 100px);
    }
}

#go_back_arrow #lower-wing {
    animation: lower-wing 2.5s ease 6s forwards;
}

@keyframes lower-wing {
    100% {
        transform: translateY(100px);
    }
}

#go_back_arrow #upper-wing {
    animation: upper-wing 2.5s ease 6s forwards;
}

@keyframes upper-wing {
    100% {
        transform: translateX(100px);
    }
}

/* --------------------------------------------------------- */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--dark);
    color: var(--cream);
    font-family: 'Clash Display', sans-serif;
}

.name-container {
    position: fixed;
    height: 100dvh;
    inset: 0;
    background-color: #080807;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 1s ease-in-out;
}

.name-container.show {
    transform: translateY(0);
    transition: transform 1s ease-in-out;
}

.name.inner {
    display: inline-block;
}

.name-container.hide {
    opacity: 1;
    transform: translateY(-110%);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.name-container .name {
    position: absolute;
    left: 0;
    bottom: -1vw;
    margin: 0;
    padding: 0;
    width: 100%;
    height: fit-content;
    line-height: .9;
    text-align: center;
    font-size: 17vw;
    font-weight: 700;
    letter-spacing: -4px;
    z-index: 999;
}

.name-container .name.char-animation {
    visibility: hidden;
}

/* --------------- NAVIGATION ---------------*/
nav {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    z-index: 999;
    pointer-events: none;
    transform: translateX(100%);
}

nav.active {
    transform: translateX(0);
    pointer-events: auto;
}

nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark);
    font-size: 8vw;
    font-weight: bold;
    /* font-size: clamp(2rem, 8vw, 6rem); */
    text-decoration: none;
    color: var(--cream);
    opacity: 0;
    border-top: 1px solid var(--cream);
    border-bottom: 1px solid var(--cream);
    transform: translateX(100%);
}

nav.active a {
    transform: translateX(0);
    opacity: 1;
}

/* CLOSE TIMINGS */
nav a:nth-child(1) { 
    transition: transform 1s ease 1s, opacity 0s linear 2s;
}

nav a:nth-child(2) { 
    transition: transform 1s ease .7s, opacity 0s linear 1.7s;
}

nav a:nth-child(3) { 
    transition: transform 1s ease .4s, opacity 0s linear 1.4s;
}

/* OPEN TIMINGS */
nav.active a:nth-child(1) { 
    transition: opacity 0s linear 0s, transform 1s ease .4s;
}
nav.active a:nth-child(2) { 
    transition: opacity 0s linear 0s, transform 1s ease .7s;
}
nav.active a:nth-child(3) { 
    transition: opacity 0s linear 0s, transform 1s ease 1s;
}

.icons::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #222;
  border-radius: 25px;
  transition: 
    left 0.4s ease,
    width 0.4s ease,
    height 0.4s ease,
    top 0.4s ease,
    border-radius 0.4s ease;
  z-index: 0;
}

.icon:hover::before {
    transform: scale(1);
    opacity: 1;
}

.icons {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 15rem;
  height: 5rem;
  padding: 0 1.5rem;
  border-radius: 25px;
  opacity: 0;
  z-index: 999;
  animation: icons-bg-anim 1s ease-in-out 5s forwards;
  overflow: hidden;
}

@keyframes icons-bg-anim {
  100% {
    opacity: 1;
  }
}

.icons:has(.gh-btn:hover)::before,
.icons:has(.lang-btn:hover)::before,
.icons:has(.menu-btn:hover)::before {
  height: 5rem;
  width: 5rem;
  border-radius: 999px;
}

.icons:has(.gh-btn:hover)::before {
  left: 0.5rem;
}

.icons:has(.lang-btn:hover)::before {
  left: 5rem;
}

.icons:has(.menu-btn:hover)::before {
  left: 9.5rem;
}

.menu-btn {
    transition: transform .5s ease;
}

.menu-btn.animate {
    transform: rotate(500deg) scale(.6);
}

.gh-btn,
.lang-btn,
.menu-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  padding: 0;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}

.icons svg,
.icons img {
  height: 3rem;
  width: auto;
  opacity: 0;
  cursor: pointer;
  animation: icons-anim 1s ease-in-out 6s forwards;
}

@keyframes icons-anim {
  0% {
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* -------------------------------------------------------------- */

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: #10100E;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    touch-action: auto;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9999;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    touch-action: auto;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    cursor: auto;
    opacity: 0;
}

.lightbox-content img.ready,
.lightbox-content video.ready {
    opacity: 1;
}

.lightbox-content video {
    background: #10100E;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.lightbox-credit {
    margin-top: 1rem;
    font-size: 1.6rem;
    font-weight: 400;
    visibility: hidden;
}

.lightbox-credit.ready {
    visibility: visible;
}

.lightbox-credit .line {
    display: inline-block;
    overflow: hidden;
}

.lightbox-credit .inner {
    display: inline-block;
}

img,
video {
    cursor: pointer;
}

.lightbox-reveal-wrapper {
    position: relative;
    overflow: hidden;
}

.lightbox-reveal-wrapper img,
.lightbox-reveal-wrapper video {
    display: block;
}

.lightbox-reveal-wrapper .reveal-box {
    position: absolute;
    inset: 0;
    background: #10100E;
    z-index: 2;
}

/* -------------------- HERO ICONS -------------------- */
.hero-icons {
    display: flex;
    gap: clamp(3.2rem, 2.5vw, 5rem);
    margin-top: 6rem;
}

.hero-icons svg {
    width: clamp(3.2rem, 2.5vw, 5rem);
    height: clamp(3.2rem, 2.5vw, 5rem);
    cursor: pointer;
    opacity: 0;
    animation: hero-icons-anim 1s ease-in-out 7s forwards;
}

@keyframes hero-icons-anim {
    0% {
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero a:hover {
    transform: scale(1.2);
    transition: transform 1s ease;
}

/* ------------------------------------------------------ */

/* -------------------- TECHSTACK -------------------- */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    gap: clamp(1.5rem, 1.3vw, 2.5rem);
    row-gap: 3rem;
    height: 50vh;
    margin-top: 2rem;
    margin-bottom: 20rem;
}

.tech-stack > div {
    position: relative;
    border: 1px solid #FFFFE3;
    border-radius: 25px;
    padding: clamp(1rem, 1vw, 2rem) clamp(1.5rem, 1.3vw, 2.5rem);
    opacity: 0;
    transform: scale(.5);
    transition: transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .5s ease-out;
}

.tech-stack.visible > div {
    opacity: 1;
    transform: scale(1);
}

.tech-stack.visible > div:nth-child(2) { transition-delay: 1.5s; }
.tech-stack.visible > div:nth-child(3) { transition-delay: 2.7s; }

.tech-stack h3 {
    position: absolute;
    background-color: #10100E;
    padding: 0 1rem;
    font-size: clamp(1.6rem, 1.2vw, 2.4rem);
    font-weight: 400;
    opacity: 0;
    transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1), opacity .1s ease;
}

.tech-stack.visible h3 {
    transform: translateY(-200%);
    opacity: 1;
}

.tech-stack.visible div:nth-child(1) h3 { transition-delay: .3s; }
.tech-stack.visible div:nth-child(2) h3 { transition-delay: 1.8s; }
.tech-stack.visible div:nth-child(3) h3 { transition-delay: 3s; }

.tech-stack-icons {
    display: flex;
    gap: clamp(1.5rem, 1.3vw, 2.5rem);
}

.tech-stack-icon {
    position: relative;
    pointer-events: none;
}

.tech-stack-icon.ready {
    pointer-events: auto;
}

.tech-stack-icon-label {
    position: absolute;
    bottom: calc(100% + 0.8rem);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #FFFFE3;
    color: #10100E;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 1.6rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tech-stack-icon-label::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #FFFFE3 transparent transparent transparent;
}

.tech-stack-icon.ready:hover .tech-stack-icon-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tech-stack img {
    width: clamp(4rem, 5vw, 8rem);
    height: clamp(4rem, 5vw, 8rem);
    transform: scale(0);
    opacity: 0;
    transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .2s ease-out;
    transform-origin: center;
}

.tech-stack.visible img {
    opacity: 1;
    transform: scale(1);
}

.tech-stack.visible > div:nth-child(1) .tech-stack-icons > div:nth-child(1) img { transition-delay: .6s; }
.tech-stack.visible > div:nth-child(1) .tech-stack-icons > div:nth-child(2) img { transition-delay: .9s; }
.tech-stack.visible > div:nth-child(1) .tech-stack-icons > div:nth-child(3) img { transition-delay: 1.2s; }

.tech-stack.visible > div:nth-child(2) .tech-stack-icons > div:nth-child(1) img { transition-delay: 2.1s; }
.tech-stack.visible > div:nth-child(2) .tech-stack-icons > div:nth-child(2) img { transition-delay: 2.4s; }

.tech-stack.visible > div:nth-child(3) .tech-stack-icons > div:nth-child(1) img { transition-delay: 3.3s; }
.tech-stack.visible > div:nth-child(3) .tech-stack-icons > div:nth-child(2) img { transition-delay: 3.6s; }
.tech-stack.visible > div:nth-child(3) .tech-stack-icons > div:nth-child(3) img { transition-delay: 3.9s; }

/* --------------------------------------------------- */

main {
    margin: auto 7.8vw;
}

.hero {
    height: 100vh;
    padding-top: 40vh;
    /* margin-bottom: clamp(10rem, 10.5vw, 20rem); */
}

h1 {
    margin: 0 0 4rem 0;
    font-size: clamp(4.8rem, 8.55vw, 16.4rem);
    font-weight: 700;
}

.word {
    white-space: nowrap;
}

p {
    font-size: clamp(1.6rem, 2.3vw, 4.4rem);
    width: clamp(26rem, 57vw, 110rem);
    margin: 0;
}

.reveal-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.reveal-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  transform-origin: top;
  will-change: transform;
  transform: translateZ(0);
}

video {
    width: 100%;
    height: 100%;
}

.text-section {
    margin: clamp(15rem, 13vw, 25rem) 0 clamp(10rem, 10.5vw, 20rem);
}

.mockup-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 4rem;
    overflow: hidden;
}

.mockup-grid img {
    width: 100%;
    object-fit: cover;
    height: 80rem;
}

.p-target {
    margin-bottom: clamp(2rem, 2.6vw, 5rem);
}

.right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cones {
    display: flex;
    justify-content: space-between;
}

.cone-wrapper {
    display: flex;
    background-color: #080807;
    width: 26.5vw;
    height: 26.5vw;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
}

.cone-wrapper svg {
    width: 15vw;
}

.cone2 {
    opacity: 0.2;
    animation: pulse 1.1s ease-in-out infinite alternate;
}

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

.cone3 {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%,
    50%,
    80%,
    100% {
        transform: translateY(0)
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.identity-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-areas: 
    "a c"
    "b c"
    "d d";
    gap: 5rem;
    overflow: hidden;
}

.identity-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-posters-big {
    max-height: 105rem;
    grid-area: a;
}

.mockup-bag {
    max-height: 105rem;
    grid-area: b;
}

.mockup-billboard {
    grid-area: c;
}

.mockup-posterwall {
    grid-area: d;
}

.char-animation .char { 
    display: inline-block; 
}

.char-animation .char .inner { 
    display: inline-block; 
    opacity: 0;
}

.line .inner {
    display: inline-block;
    opacity: 0;
}

/* FOOTER */
footer {
    position: relative;
    height: 100lvh;
    background-color: #080807;
    margin-top: 20rem;
    overflow: hidden;
    place-items: center;
}

footer p {
    position: absolute;
    bottom: -4vw;
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 17vw;
    font-weight: 700;
    letter-spacing: -4px;
}

@media (max-width: 1500px) {
    .mockup-grid {
        gap: 1rem;
    }

    .mockup-grid img {
        height: 100%;
        object-fit: cover;
    }

    .identity-grid {
        gap: 1rem
    }
}

@media (max-width: 1200px) {
    .name-container .name,
    footer p {
        font-size: 15vw;
    }
}

@media (max-width: 700px) {
    .name-container .name {
        letter-spacing: -1px;
    }

    p {
        width: 80%;
    }

    .cone-wrapper {
        border-radius: 15px;
    }

    footer p {
        letter-spacing: -1px;
    }
}

@media (max-width: 500px) {
    p {
        width: 100%;
    }
    
    .right {
        align-items: flex-start;
    }
}
