:root {
    --headerHeight: 100px;
    --headerLeft: 16px;
    --headerTop: 32px;
    --org-padding: 16px;
    --blobBGColor: rgb(149, 0, 255);
    --sec2TextSize: 3rem;
    --sec2TextLineHeight: calc(var(--sec2TextSize) * 1);
    --welcomeTextSize: 5.5rem;
    --welcomeTextLineHeight: calc(var(--welcomeTextSize) * 0.8);
    --titleFontSize: 1.5rem;
    --titleLineHeight: calc(var(--titleFontSize) * 0.65)
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.preload * {
    animation-duration: 0s !important;
    -webkit-animation-duration: 0s !important;
    transition: background-color 0s, opacity 0s, color 0s, width 0s, height 0s, padding 0s, margin 0s !important;
}

body {
    scroll-behavior: smooth;
    /* backdrop-filter: blur(20px); */
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    color: pink;
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    /* background-color: rgb(225, 126, 191); */

    /* filter: hue-rotate(-175deg); */
    /* background-color: orange; */
    /* overflow-y: scroll; */
}


a {
    text-decoration: none;
    color: white;
}

h1, h2 {
    font-weight: 900;
}

.fullscreen-bg {
  position: fixed;
  inset: 0;
  height: 100%; /* full physical screen height */
  width: 100%;
  /* background: linear-gradient(160deg, #0a0f1e, #1c2950); */
  /* z-index: -1; */

  /* Respect safe areas on notched iPhones */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.color-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--blobBGColor);
    filter: brightness(65%) ;
    /* filter: saturate(80%); */
    /* filter: contrast(50); */
    opacity: .85;
}

.contrast {
    position: fixed;
    top: 0;
    left: 0;
    transform: scale(1.2);
    filter: contrast(75) saturate(0);
    background-color: rgb(0, 0, 0);
    transition: transform 2s linear forwards;
    z-index: -100;
}

canvas {
    display: block;
    z-index: -20;
    filter: blur(15px);
    /* -webkit-filter: url(#noise);
    filter: url(#noise) blur(15px); */
}

.title-wrapper {
    display: flex;
    justify-content: end;
    width: 100%;
    position: absolute;
    padding: var(--org-padding);
    top: 0;
    left: 0;
    mix-blend-mode: hard-light;

    /* background-color: orange; */
}

.title-span-container {
    display: flex;
    flex-direction: column;
    width: auto;
    transform: scale(1);
    transition: transform 1s ease;
    transform-origin: top right;
    z-index: 100;
    font-weight: 900;
    /* background-color: blue; */
}

.title-span-container.title-span-container--small {
    transform: scale(.5);
}

.title-span {
    font-size: var(--titleFontSize);
    height: var(--titleLineHeight);
    text-align: center;
    color: pink;
    /* background-color: orange; */
}


.title-span:nth-of-type(1) {
    /* color: orange; */
    align-self: end;
    /* text-indent: 2rem; */
}

.title-span:nth-of-type(2) {
    /* color: orange; */
    text-indent: 0rem;
}


.title-span:nth-of-type(3) {
    /* color: orange; */
    text-indent: 0rem;
    align-self: end;
}

.title-wrapper__circle {
    position: absolute;
    width: 250px;
    height: 300px;
    transform: rotate(0deg) translate(40%, -40%);
    border-radius: 50%;
    /* border: 1px solid white; */
    background-color: aqua;
    animation: rotate-circle 20s infinite;
    transform-origin: top right;
}

@keyframes rotate-circle {
    to {
        transform: rotate(360deg) translate(40%, -40%);
    }
}




/* WELCOME TEXT */

.welcome-text-wrapper {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;

    pointer-events: none;
    /* filter: saturate(75%); */
    /* background-color: rgba(85, 163, 162, 1); */
    /* text-align: right; */
    z-index: 100;
    perspective: 500px;
    /* mix-blend-mode: hard-light; */
    mix-blend-mode: hard-light;
    z-index: 200;
    /* transform: translate3d(10px 20px 45deg); */
}

.welcome-text__text-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    /* color: orange; */
    /* background-color: orange; */
    perspective: 500px;
    /* pointer-events: all; */
    /* z-index: -50; */
    /* background-color: antiquewhite; */
}

.welcome-text__text-container {
    display: flex;
    flex-direction: column;
    
    z-index: 20;
    transition: all .2s ease-out;
    gap: 24px;
    perspective: 500px;
    transform-style: preserve-3d;
    /* z-index: 100; */
    /* height: 440px; */
    /* background-color: orange; */
    /* overflow: hidden; */
}

.welcome-text__text-container span {
    font-size: var(--welcomeTextSize);
    line-height: var(--welcomeTextLineHeight);
    text-align: left;
    text-shadow: 5px 5px 5px rgba(0,0,0,0.2);
}

.welcome-text__text-container span.glitch-word {
    -webkit-filter: url(#noiceLove);
    filter: url(#noiseLove);
}

.welcome-text__text-container span.glitch-word2 {
    -webkit-filter: url(#noiceLove2);
    filter: url(#noiseLove2);
}


.word {
    display: flex;
    padding-left: 0.8px;
    /* font-kerning: -2px; */
    /* gap: 10px; */
}

.letter {
    display: inline;
    width: fit-content;
    margin-right: -.5px;
    /* transform-origin: top right; */
    
}

.letter.rotate {
    animation: slow-move 15s linear infinite;
    /* background-color: orange; */
}

@keyframes slow-move {
    to {
        rotate: 360deg;
        /* scale: 2; */
    }
}


.welcome-text__text-container div {
    display: flex;
    width: 100%;
    height: 100%;
    /* flex-direction: column; */
    /* gap: 0.5rem; */
    position: relative;
    /* background-color: orange; */
    /* letters will be absolute */
}

.main-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    /* z-index: 100; */
    /* mix-blend-mode: hard-light; */
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.sec2__text-wrapper {
    height: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--sec2TextSize);
    transform: scale(0.1);
    transition: transform .35s cubic-bezier(.65,.27,.67,1.7);
    text-align: center;
    color: white;
    z-index: 100;
    /* background-color: antiquewhite; */
}

.sec2__text-wrapper.sec2__text-wrapper--open {
    transform: scale(1);
    text-shadow: 2px 2px 0px var(--blobBGColor);
}

.sec2__text-span {
    /* width: fit-content; */
    display: block;
    position: relative;
    font-size: var(--sec2TextSize);
    line-height: var(--sec2TextLineHeight);
    transform-origin: top left;
    /* background-color: aqua; */
}

.sec2__text-para {
    display: block;
    position: relative;
    font-size: calc(var(--sec2TextSize) * 0.5);
    margin-top: calc(var(--sec2TextSize) * .5) ;
}

.sec2__text-span:nth-of-type(2) {
    -webkit-filter: url(#noice);
    filter: url(#noise);
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    /* background-color: aqua; */
    z-index: -100;
}

@media (min-width: 600px) {
    :root {
        --titleFontSize: 2.5rem;
        --sec2TextSize: 5rem;
        --welcomeTextSize: 10rem;
    }
}

@media (min-width: 1000px) {
    :root {
        --titleFontSize: 3rem;
        --sec2TextSize: 7rem;
        --welcomeTextSize: 12rem;
    }
}