:root {
    --black: #080808;
    --green: #9eff00;
    --pink: #ff0054;
    --white: #eeeeee;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--green);
    font-family: myfont, Arial, sans-serif;
    overflow-x: hidden;
}

::selection {
    background: var(--pink);
    color: var(--black);
}

/* =====================================
   LANGUAGE SWITCH
===================================== */

.language-switch {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    gap: 5px;
    padding: 5px;
    background: var(--black);
    border: 2px solid var(--pink);
}

.language-switch button {
    border: none;
    background: transparent;
    color: var(--green);
    padding: 8px 13px;
    font-family: myfont, Arial, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
}

.language-switch button:hover,
.language-switch button.active {
    background: var(--green);
    color: var(--black);
}

/* =====================================
   MENU
===================================== */

.dropdown {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
}

.dropbtn {
    background: var(--green);
    color: var(--pink);
    padding: 14px 22px;
    font-family: myfont, Arial, sans-serif;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.dropbtn:hover {
    background: var(--pink);
    color: var(--green);
    transform: rotate(-3deg) scale(1.05);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--black);
    border: 4px solid var(--pink);
    margin-top: 8px;
}

.dropdown-content a {
    display: block;
    padding: 13px 16px;
    color: var(--green);
    text-decoration: none;
    font-size: 18px;
    transition: .2s;
}

.dropdown-content a:hover {
    background: var(--green);
    color: var(--black);
    padding-left: 25px;
}

.show {
    display: block;
}

/* =====================================
   MAIN HOMEPAGE
===================================== */

.homepage {
    width: 100%;
    overflow: hidden;
}

/* =====================================
   01 — LOGO
===================================== */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 130px 4vw 100px;
    overflow: hidden;
    background: var(--black);
}

.hero::before {
    content: "✳︎";
    position: absolute;
    top: 12%;
    left: 8%;
    font-size: clamp(60px, 10vw, 150px);
    color: var(--pink);
    opacity: .8;
    animation: hero-star-one 9s ease-in-out infinite;
}

.hero::after {
    content: "✳︎";
    position: absolute;
    bottom: 12%;
    right: 9%;
    font-size: clamp(50px, 8vw, 120px);
    color: var(--green);
    opacity: .8;
    animation: hero-star-two 7s ease-in-out infinite;
}

@keyframes hero-star-one {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.3);
    }
}

@keyframes hero-star-two {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-180deg) scale(.7);
    }
}

.hero-label {
    color: var(--green);
    font-size: clamp(13px, 1.5vw, 19px);
    letter-spacing: .15em;
    margin-bottom: 35px;
    text-align: center;
    animation: label-flicker 5s infinite;
}

@keyframes label-flicker {
    0%, 90%, 94%, 100% {
        opacity: 1;
    }

    92% {
        opacity: .15;
    }
}

.hero-logo {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero-logo h1 {
    color: var(--pink);
    font-size: clamp(65px, 14vw, 210px);
    line-height: .76;
    letter-spacing: -.09em;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    cursor: default;
    transition:
        color .3s ease,
        transform .3s ease,
        letter-spacing .3s ease;
}

.hero-logo h1:hover {
    color: var(--green);
    transform: skew(-5deg, 2deg) scale(.98);
    letter-spacing: -.12em;
}

.hero-subtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin-top: 65px;
    gap: 20px;
    color: var(--green);
    font-size: clamp(15px, 2vw, 24px);
    line-height: 1.1;
}

.hero-subtitle span:last-child {
    color: var(--pink);
    text-align: right;
}

/* =====================================
   02 — INVITATION
===================================== */

.invitation {
    position: relative;
    background: var(--green);
    color: var(--black);
    padding: 110px 7vw 130px;
    overflow: hidden;
}

.invitation::before {
    content: "GRIM";
    position: absolute;
    top: 10%;
    right: -5%;
    font-size: clamp(120px, 28vw, 400px);
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 2px rgba(8, 8, 8, .13);
    pointer-events: none;
    transform: rotate(-8deg);
}

.invitation-inner {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    margin: 0 auto;
}

.invitation-label {
    font-size: clamp(15px, 1.7vw, 22px);
    letter-spacing: .12em;
    margin-bottom: 45px;
}

.invitation-title {
    font-size: clamp(55px, 11vw, 145px);
    line-height: .78;
    letter-spacing: -.07em;
    color: var(--pink);
    margin: 0 0 75px;
    transition: transform .3s ease;
    cursor: default;
}

.invitation-title:hover {
    transform: rotate(-2deg) translateX(12px);
}

.invitation-copy {
    max-width: 750px;
    margin-left: auto;
    font-size: clamp(20px, 2.5vw, 33px);
    line-height: 1.25;
}

.invitation-copy p {
    margin: 0 0 25px;
    transition: transform .25s ease, color .25s ease;
}

.invitation-copy p:hover {
    color: var(--pink);
    transform: translateX(10px);
}

.invitation-highlight {
    margin-top: 65px !important;
    color: var(--pink);
    font-size: clamp(30px, 5vw, 65px);
    line-height: .95;
    transform: rotate(-2deg);
}

/* =====================================
   03 — MANIFEST ATTACK
===================================== */

.manifest-section {
    position: relative;
    min-height: 850px;
    padding: 110px 5vw 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--black);
    overflow: hidden;
    isolation: isolate;
}

.manifest-section::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: var(--pink);
    filter: blur(180px);
    opacity: .13;
    top: 10%;
    left: -20%;
    animation: background-pulse 5s ease-in-out infinite alternate;
    z-index: -1;
}

.manifest-section::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--green);
    filter: blur(180px);
    opacity: .13;
    bottom: -15%;
    right: -15%;
    animation: background-pulse 4s ease-in-out infinite alternate-reverse;
    z-index: -1;
}

@keyframes background-pulse {
    from {
        transform: scale(.7);
        opacity: .08;
    }

    to {
        transform: scale(1.3);
        opacity: .2;
    }
}

.manifest-topline {
    color: var(--green);
    font-size: clamp(14px, 2vw, 23px);
    letter-spacing: .15em;
    text-align: center;
    margin-bottom: 90px;
    animation: topline-flash 2.5s steps(2, end) infinite;
}

@keyframes topline-flash {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.manifest-stage {
    position: relative;
    width: min(850px, 90vw);
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* ROTATING TEXT RINGS */

.manifest-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.manifest-ring svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: ring-spin 22s linear infinite;
}

.manifest-ring text {
    fill: var(--green);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 5px;
}

.manifest-ring-two {
    transform: scale(.82);
}

.manifest-ring-two svg {
    animation: ring-spin-reverse 17s linear infinite;
}

.manifest-ring-two text {
    fill: var(--pink);
    font-size: 16px;
    letter-spacing: 4px;
}

@keyframes ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ring-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* FLOATING DECORATIONS */

.manifest-decoration {
    position: absolute;
    z-index: 3;
    font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", Arial, sans-serif;
    font-variant-emoji: text;
    -webkit-font-variant-emoji: text;
    font-weight: 900;
    pointer-events: none;
    user-select: none;
}

.decoration-one {
    top: 5%;
    left: 5%;
    color: var(--pink);
    font-size: clamp(40px, 7vw, 85px);
    animation: decoration-spin 5s linear infinite;
}

.decoration-two {
    bottom: 8%;
    right: 5%;
    color: var(--green);
    font-size: clamp(45px, 8vw, 100px);
    animation: decoration-bounce 1.8s ease-in-out infinite;
}

.decoration-three {
    top: 15%;
    right: 8%;
    color: var(--pink);
    font-size: clamp(20px, 4vw, 45px);
    animation: decoration-bounce 2.2s ease-in-out infinite reverse;
}

.decoration-four {
    bottom: 15%;
    left: 7%;
    color: var(--green);
    font-size: clamp(20px, 4vw, 45px);
    animation: decoration-spin 8s linear infinite reverse;
}

@keyframes decoration-spin {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.4);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes decoration-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(20deg);
    }
}

/* MAIN BUTTON */

.manifest-button {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(490px, 72vw);
    min-height: 230px;
    padding: 35px 25px;
    background: var(--pink);
    color: var(--green);
    border: 7px solid var(--green);
    outline: 5px solid var(--pink);
    text-align: center;
    text-decoration: none;
    box-shadow:
        0 0 0 12px var(--black),
        0 0 35px var(--pink),
        0 0 75px rgba(255, 0, 84, .5);
    cursor: pointer;
    transform-origin: center;
    animation:
        button-pulse 1.1s ease-in-out infinite,
        button-shake 4.5s steps(2, end) infinite;
    transition:
        background .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.manifest-button::before {
    content: "";
    position: absolute;
    inset: -20px;
    border: 3px dashed var(--pink);
    animation: border-spin 12s linear infinite;
    pointer-events: none;
}

.manifest-button::after {
    content: "CLICK ME!!!";
    position: absolute;
    top: -30px;
    right: -35px;
    padding: 9px 14px;
    background: var(--green);
    color: var(--black);
    font-family: Arial, sans-serif;
    font-size: clamp(12px, 1.5vw, 17px);
    font-weight: 900;
    transform: rotate(12deg);
    animation: click-me 1.2s ease-in-out infinite alternate;
}

@keyframes button-pulse {
    0%, 100% {
        transform: scale(1) rotate(-1deg);
    }

    50% {
        transform: scale(1.07) rotate(1deg);
    }
}

@keyframes button-shake {
    0%, 90%, 100% {
        translate: 0 0;
    }

    91% {
        translate: -5px 3px;
    }

    92% {
        translate: 5px -3px;
    }

    93% {
        translate: -4px -2px;
    }

    94% {
        translate: 4px 2px;
    }

    95% {
        translate: 0 0;
    }
}

@keyframes border-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes click-me {
    from {
        transform: rotate(8deg) scale(.9);
    }

    to {
        transform: rotate(-8deg) scale(1.15);
    }
}

.manifest-button:hover {
    background: var(--green);
    color: var(--pink);
    box-shadow:
        0 0 0 15px var(--black),
        0 0 45px var(--green),
        0 0 100px var(--pink);
    animation: button-hover .3s steps(2, end) infinite;
}

.manifest-button:hover::before {
    border-color: var(--green);
    animation-duration: 2s;
}

.manifest-button:hover::after {
    content: "YES!!!";
    background: var(--pink);
    color: var(--green);
}

@keyframes button-hover {
    0% {
        transform: scale(1.04) rotate(-2deg);
    }

    50% {
        transform: scale(1.12) rotate(2deg);
    }

    100% {
        transform: scale(1.04) rotate(-2deg);
    }
}

.manifest-button-small {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(13px, 2vw, 18px);
    letter-spacing: .2em;
    margin-bottom: 16px;
}

.manifest-button-main {
    position: relative;
    font-size: clamp(30px, 5vw, 59px);
    line-height: .85;
    letter-spacing: -.04em;
    font-weight: 900;
    text-shadow: 3px 3px 0 var(--black);
}

.manifest-button-main::before,
.manifest-button-main::after {
    content: "READ THE MANIFEST";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.manifest-button-main::before {
    color: var(--green);
    animation: glitch-one 3s infinite;
}

.manifest-button-main::after {
    color: var(--black);
    animation: glitch-two 2.5s infinite;
}

@keyframes glitch-one {
    0%, 85%, 100% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }

    86% {
        opacity: 1;
        transform: translate(-5px, 2px);
        clip-path: inset(10% 0 70% 0);
    }

    88% {
        opacity: 1;
        transform: translate(5px, -2px);
        clip-path: inset(55% 0 20% 0);
    }

    90% {
        opacity: 0;
    }
}

@keyframes glitch-two {
    0%, 80%, 100% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }

    82% {
        opacity: .8;
        transform: translate(4px, -3px);
        clip-path: inset(40% 0 40% 0);
    }

    84% {
        opacity: 0;
    }
}

.manifest-button-bottom {
    font-family: Arial, "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif;
    font-variant-emoji: text;
    -webkit-font-variant-emoji: text;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 900;
    letter-spacing: .12em;
    margin-top: 18px;
}

/* SURROUNDING TEXT */

.manifest-side-text {
    position: absolute;
    color: var(--green);
    font-size: clamp(13px, 1.7vw, 20px);
    letter-spacing: .12em;
    white-space: nowrap;
    pointer-events: none;
}

.manifest-side-left {
    left: -7%;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
}

.manifest-side-right {
    right: -7%;
    top: 50%;
    transform: rotate(90deg) translateX(50%);
}

.manifest-bottomline {
    margin-top: 100px;
    color: var(--pink);
    font-size: clamp(19px, 3vw, 35px);
    text-align: center;
    transform: rotate(-2deg);
    animation: bottomline-pulse 2s ease-in-out infinite;
}

@keyframes bottomline-pulse {
    0%, 100% {
        transform: rotate(-2deg) scale(1);
    }

    50% {
        transform: rotate(2deg) scale(1.06);
    }
}

/* =====================================
   MARQUEE
===================================== */

.manifest-marquee {
    width: 110%;
    margin-left: -5%;
    overflow: hidden;
    white-space: nowrap;
    background: var(--pink);
    color: var(--green);
    padding: 17px 0;
    transform: rotate(-2deg);
}

.manifest-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
}

.manifest-marquee-track span {
    font-size: clamp(25px, 5vw, 65px);
    padding-right: 35px;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

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

/* =====================================
   FOOTER
   MENU OPENS UPWARDS
===================================== */

.grim-footer {
    background: var(--black);
    color: var(--green);
    font-family: myfont, sans-serif;
    border-top: 1px solid var(--green);
    position: relative;
    z-index: 20;
    overflow: hidden;

    display: flex;
    flex-direction: column-reverse;
}

.grim-footer-main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 3%;
    cursor: pointer;
    gap: 25px;
    flex-shrink: 0;
}

.grim-footer-title {
    font-size: clamp(13px, 2vw, 21px);
    transition: color .25s ease, letter-spacing .25s ease;
    order: 2;
}

.grim-footer-main:hover .grim-footer-title {
    color: var(--pink);
    letter-spacing: 1px;
}

.grim-footer-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pink);
    font-size: 13px;
    letter-spacing: 2px;
    transition: letter-spacing .25s ease;
    order: 1;
}

.grim-footer-main:hover .grim-footer-toggle {
    letter-spacing: 4px;
}

.grim-footer-plus {
    display: inline-block;
    font-size: 23px;
    transition: transform .35s cubic-bezier(.2,1,.3,1);
}

.grim-footer-dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    max-height: 0;
    overflow: hidden;
    padding: 0 3%;
    opacity: 0;
    transform: translateY(10px);
    transition:
        max-height .5s ease,
        padding .5s ease,
        opacity .3s ease,
        transform .4s ease;
}

.grim-footer.footer-open .grim-footer-dropdown {
    max-height: 200px;
    padding: 12px 3% 22px;
    opacity: 1;
    transform: translateY(0);
}

.grim-footer.footer-open .grim-footer-plus {
    transform: rotate(45deg);
}

.grim-footer-dropdown a {
    color: var(--green);
    text-decoration: none;
    font-size: clamp(14px, 2vw, 19px);
    transition: color .2s ease, transform .2s ease;
}

.grim-footer-dropdown a:hover {
    color: var(--pink);
    transform: translateY(-3px);
    text-shadow: 2px 0 var(--green);
}

/* =====================================
   RESPONSIVE LAYOUT
===================================== */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 700px) {
    body,
    .homepage {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .dropdown {
        top: 12px;
        left: 12px;
    }

    .language-switch {
        top: 12px;
        left: auto;
        right: 12px;
        transform: none;
    }

    .language-switch button {
        min-width: 44px;
        min-height: 44px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .dropbtn {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 16px;
    }

    .dropdown-content {
        min-width: min(260px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .dropdown-content a {
        display: flex;
        min-height: 44px;
        align-items: center;
        overflow-wrap: anywhere;
    }

    .hero {
        min-height: 85svh;
        min-height: 85vh;
        padding: max(130px, calc(env(safe-area-inset-top) + 100px)) 5vw 70px;
    }

    .hero-logo h1 {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-wrap: balance;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        letter-spacing: -.12em;
        font-size: clamp(42px, 15vw, 88px) !important;
        text-align: center;
        line-height: .8;
        transform: none;
    }

    .hero-subtitle {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 45px;
        gap: 15px;
    }

    .hero-subtitle span:last-child {
        text-align: center;
    }

    .invitation {
        padding: 80px 7vw 100px;
    }

    .invitation-title {
        margin-bottom: 55px;
    }

    .invitation-copy {
        margin: 0;
        overflow-wrap: anywhere;
    }

    .invitation-copy p {
        overflow-wrap: anywhere;
    }

    .manifest-section {
        min-height: 750px;
        padding: 90px 7vw max(100px, calc(env(safe-area-inset-bottom) + 80px));
    }

    .manifest-topline {
        margin-bottom: 65px;
    }

    .manifest-stage {
        width: 100%;
        max-width: 100%;
        min-height: 380px;
    }

    .manifest-ring {
        width: 100%;
        height: 100%;
    }

    .manifest-side-left,
    .manifest-side-right {
        display: none;
    }

    .manifest-button {
        width: min(320px, 76vw);
        max-width: 100%;
        min-height: 190px;
        padding: 25px 15px;
        border-width: 5px;
    }

    .manifest-button::before {
        inset: -14px;
    }

    .manifest-button::after {
        top: -27px;
        right: -8px;
    }

    .manifest-bottomline {
        margin-top: 75px;
    }

    .grim-footer {
        flex-direction: column-reverse;
    }

    .grim-footer-main {
        flex-wrap: wrap;
        min-height: 52px;
        padding: 13px 4%;
        gap: 15px;
    }

    .grim-footer-title {
        overflow-wrap: anywhere;
    }

    .grim-footer-dropdown {
        max-width: 100%;
        padding-left: 4%;
        padding-right: 4%;
        gap: 14px 20px;
    }

    .grim-footer.footer-open .grim-footer-dropdown {
        max-height: 500px;
        padding: 12px 4% 22px;
    }
}

@media (max-width: 380px) {
    .hero {
        padding-top: max(115px, calc(env(safe-area-inset-top) + 90px));
    }

    .hero-logo h1 {
        font-size: clamp(40px, 15vw, 58px);
    }

    .language-switch button {
        min-width: 40px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .manifest-button {
        width: 72vw;
        min-height: 165px;
    }

    .manifest-button-main {
        font-size: clamp(26px, 8vw, 38px);
    }
}

@media (hover: none) {
    .dropbtn:hover,
    .manifest-button:hover {
        transform: none;
        animation: none;
    }

    .dropbtn:hover {
        background: var(--green);
        color: var(--pink);
    }

    .manifest-button:hover {
        background: var(--pink);
        color: var(--green);
        box-shadow:
            0 0 0 12px var(--black),
            0 0 35px var(--pink),
            0 0 75px rgba(255, 0, 84, .5);
    }

    .manifest-button:hover::before {
        border-color: var(--pink);
        animation-duration: 12s;
    }

    .manifest-button:hover::after {
        content: "CLICK ME!!!";
        background: var(--green);
        color: var(--black);
    }

    .dropdown-content a:hover {
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

}
