:root {
    --acid: #f6ff00;
    --hot: #ff2b00;
    --cyan: #00f0ff;
    --pink: #ff00a8;
    --ink: #090909;
    --paper: #fffbe8;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--acid);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(97deg, transparent 0 48%, rgba(255, 0, 168, 0.26) 48% 52%, transparent 52%),
        repeating-linear-gradient(
            0deg,
            var(--acid) 0 52px,
            var(--paper) 52px 58px,
            var(--acid) 58px 105px
        );
    font-family: Arial, Helvetica, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
a {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.flash-grid,
.noise,
.cursor-blot {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.flash-grid {
    z-index: 0;
    opacity: 0.22;
    background:
        linear-gradient(90deg, transparent 49%, rgba(0, 0, 0, 0.75) 49% 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 0, 0, 0.75) 49% 51%, transparent 51%);
    background-size: 84px 84px;
    transform: rotate(-4deg) scale(1.15);
    animation: gridKick 1.7s steps(2, end) infinite;
}

.noise {
    z-index: 1;
    opacity: 0.16;
    background-image: radial-gradient(#000 0.8px, transparent 0.8px);
    background-size: 5px 5px;
    mix-blend-mode: multiply;
}

.cursor-blot {
    z-index: 3;
    width: 170px;
    height: 170px;
    left: -85px;
    top: -85px;
    border: 22px solid var(--cyan);
    background: var(--pink);
    mix-blend-mode: multiply;
    transform: translate3d(-999px, -999px, 0) rotate(12deg);
    clip-path: polygon(8% 0, 100% 12%, 83% 96%, 14% 78%);
    transition: transform 0.08s linear;
}

.site-shell {
    position: relative;
    z-index: 2;
    width: min(1480px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px clamp(14px, 3vw, 46px) 54px;
}

.corner-tag {
    position: fixed;
    z-index: 8;
    padding: 9px 13px;
    border: 5px solid var(--ink);
    background: var(--paper);
    font-size: clamp(10px, 1.2vw, 15px);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 8px 8px 0 var(--ink);
}

.corner-tag--one {
    top: 18px;
    left: 18px;
    transform: rotate(-4deg);
}

.corner-tag--two {
    right: 18px;
    bottom: 18px;
    transform: rotate(3deg);
    background: var(--cyan);
}

.hero-zone {
    width: 100%;
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 16px 34px;
}

.title-stack {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 18px;
}

.tiny-label {
    display: inline-block;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--acid);
    border: 4px solid var(--paper);
    box-shadow: 7px 7px 0 var(--hot);
    transform: rotate(2deg);
    font-size: clamp(10px, 1vw, 14px);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 14px 0 0;
    font-size: clamp(72px, 13vw, 210px);
    line-height: 0.72;
    letter-spacing: -0.095em;
    text-transform: lowercase;
    font-weight: 900;
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
    color: var(--paper);
    -webkit-text-stroke: clamp(2px, 0.45vw, 7px) var(--ink);
    text-shadow:
        10px 9px 0 var(--hot),
        -7px -5px 0 var(--cyan),
        18px 18px 0 var(--ink);
    transform: rotate(-2.2deg) skewX(-4deg);
    animation: titlePunch 2.4s steps(2, end) infinite;
}

.hero-frame {
    position: relative;
    align-self: center;
    width: min(100%, 790px);
    margin: 16px auto 0;
    padding: 12px;
    border: 10px solid var(--ink);
    background: var(--hot);
    box-shadow:
        16px 16px 0 var(--ink),
        28px 26px 0 var(--cyan);
    transform: rotate(-3deg) skewY(1deg);
    transform-origin: center;
    transition: transform 0.16s ease-out;
}

.hero-frame::before,
.hero-frame::after {
    content: "";
    position: absolute;
    z-index: 4;
    width: 24%;
    height: 18px;
    background: var(--acid);
    border: 5px solid var(--ink);
}

.hero-frame::before {
    left: -8%;
    top: 12%;
    transform: rotate(10deg);
}

.hero-frame::after {
    right: -9%;
    bottom: 8%;
    transform: rotate(-7deg);
    background: var(--pink);
}

.hero-image {
    width: 100%;
    max-height: 61vh;
    object-fit: cover;
    object-position: center;
    border: 7px solid var(--ink);
    filter: saturate(1.32) contrast(1.12);
}

.frame-mark {
    position: absolute;
    z-index: 6;
    padding: 4px 8px;
    border: 4px solid var(--ink);
    background: var(--paper);
    font-family: "Courier New", Courier, monospace;
    font-weight: 900;
}

.frame-mark--a {
    left: -18px;
    bottom: 18px;
    transform: rotate(-9deg);
}

.frame-mark--b {
    top: -19px;
    right: 16px;
    background: var(--cyan);
    transform: rotate(7deg);
}

.chaos-links {
    position: relative;
    align-self: center;
    width: 100%;
    min-height: 420px;
    border: 8px solid var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0 49%, var(--pink) 49% 53%, var(--paper) 53% 100%);
    box-shadow: 18px 18px 0 var(--ink);
    transform: rotate(2deg);
    overflow: visible;
}

.chaos-links::before {
    content: "CLICK SOMETHING";
    position: absolute;
    top: 12px;
    left: 14px;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(14px, 1.5vw, 22px);
    font-weight: 900;
    letter-spacing: 0.1em;
    transform: rotate(-3deg);
}

.chaos-button {
    --tx: 0px;
    --ty: 0px;
    --rot: 0deg;
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: clamp(126px, 13vw, 176px);
    min-height: 78px;
    padding: 12px 16px;
    border: 7px solid var(--ink);
    border-radius: 0;
    color: var(--ink);
    background: var(--acid);
    box-shadow: 11px 11px 0 var(--ink);
    text-decoration: none;
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(23px, 2.2vw, 34px);
    line-height: 1;
    letter-spacing: 0.015em;
    transition: transform 0.48s cubic-bezier(0.2, 0.9, 0.2, 1.25), filter 0.16s linear;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
    will-change: transform;
}

.chaos-button img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.chaos-button:hover {
    z-index: 20;
    filter: invert(1) hue-rotate(140deg) saturate(2);
}

.chaos-a {
    left: 8%;
    top: 20%;
    background: var(--acid);
}

.chaos-b {
    right: 8%;
    top: 17%;
    background: var(--cyan);
}

.chaos-c {
    left: 15%;
    bottom: 15%;
    background: var(--hot);
    color: var(--paper);
}

.chaos-d {
    right: 12%;
    bottom: 13%;
    background: var(--paper);
}

.ca-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(980px, 100%);
    margin: 12px auto 0;
    padding: 10px 12px;
    border: 7px solid var(--ink);
    background: var(--paper);
    box-shadow: 10px 10px 0 var(--hot);
    transform: rotate(-1deg);
}

.ca-strip__label,
.copy-ca {
    border: 5px solid var(--ink);
    border-radius: 0;
    background: var(--acid);
    color: var(--ink);
    font-weight: 900;
}

.ca-strip__label {
    padding: 8px 10px;
}

.ca-strip code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: clamp(11px, 1.4vw, 16px);
}

.copy-ca {
    cursor: pointer;
    padding: 8px 12px;
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform 0.12s linear;
}

.copy-ca:hover {
    transform: translate(-2px, -2px) rotate(-2deg);
}

.chain-stamp {
    position: fixed;
    z-index: 9;
    right: 26px;
    top: 92px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 5px solid var(--ink);
    background: var(--paper);
    box-shadow: 7px 7px 0 var(--pink);
    transform: rotate(5deg);
    font-weight: 900;
}

.chain-stamp img {
    width: 26px;
    height: 26px;
}

.is-hidden {
    display: none !important;
}

@keyframes titlePunch {
    0%, 100% {
        transform: rotate(-2.2deg) skewX(-4deg) translate(0, 0);
    }
    48% {
        transform: rotate(1deg) skewX(2deg) translate(3px, -2px);
    }
    52% {
        transform: rotate(-4deg) skewX(-7deg) translate(-5px, 2px);
    }
}

@keyframes gridKick {
    0%, 100% {
        transform: rotate(-4deg) scale(1.15) translate(0, 0);
    }
    50% {
        transform: rotate(-3deg) scale(1.17) translate(8px, -5px);
    }
}

@media (max-width: 940px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .site-shell {
        padding-top: 76px;
    }

    .hero-zone {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .title-stack,
    .hero-frame,
    .chaos-links,
    .ca-strip {
        width: min(100%, 760px);
    }

    .chaos-links {
        min-height: 390px;
        margin-top: 20px;
    }

    .chain-stamp {
        position: absolute;
        right: 16px;
        top: 18px;
    }
}

@media (max-width: 600px) {
    .site-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .corner-tag {
        position: absolute;
        box-shadow: 5px 5px 0 var(--ink);
    }

    .corner-tag--one {
        left: 10px;
        top: 10px;
    }

    .corner-tag--two {
        display: none;
    }

    .chain-stamp {
        top: 62px;
        right: 8px;
        transform: scale(0.8) rotate(5deg);
        transform-origin: right top;
    }

    h1 {
        margin-top: 20px;
    }

    .hero-frame {
        padding: 7px;
        border-width: 7px;
        box-shadow: 10px 10px 0 var(--ink), 18px 17px 0 var(--cyan);
    }

    .hero-image {
        max-height: none;
        border-width: 5px;
    }

    .chaos-links {
        min-height: 420px;
        border-width: 6px;
        box-shadow: 10px 10px 0 var(--ink);
    }

    .chaos-button {
        width: 128px;
        min-height: 72px;
        border-width: 5px;
        box-shadow: 7px 7px 0 var(--ink);
        font-size: 23px;
    }

    .chaos-button img {
        width: 28px;
        height: 28px;
    }

    .chaos-a { left: 4%; top: 22%; }
    .chaos-b { right: 4%; top: 24%; }
    .chaos-c { left: 6%; bottom: 14%; }
    .chaos-d { right: 6%; bottom: 12%; }

    .ca-strip {
        grid-template-columns: auto minmax(0, 1fr);
        border-width: 5px;
        box-shadow: 7px 7px 0 var(--hot);
    }

    .copy-ca {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cursor-blot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .chaos-button {
        transition: none;
        transform: none !important;
    }
}
