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

:root {
    --ink: #1a1a1a;
    --paper: #f5f0e8;
    --muted: #888;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 36px 24px;
    background: radial-gradient(
        ellipse 90% 90% at 55% 45%,
        #f0f0ec 0%,
        #d4d4d0 55%,
        #b4b4b0 100%
    );
    font-family: "DM Mono", monospace;
    cursor: crosshair;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* drips */
.drips {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    z-index: 1;
    pointer-events: none;
}

.drip {
    width: var(--w, 7px);
    border-radius: 0 0 50% 50%;
    background: var(--ink);
    animation: dripFall var(--dur, 4s) ease-in var(--delay, 0s) infinite;
}

@keyframes dripFall {
    0% {
        height: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.75;
    }
    65% {
        height: var(--h, 60px);
        opacity: 0.75;
    }
    80%,
    100% {
        height: var(--h, 60px);
        opacity: 0;
    }
}

/* brand */
.brand {
    position: fixed;
    top: 24px;
    left: 28px;
    font-family: "Permanent Marker", cursive;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: 0.04em;
    z-index: 2;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* hero */
.hero {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-title {
    font-family: "Permanent Marker", cursive;
    font-size: clamp(52px, 12vw, 110px);
    color: var(--ink);
    line-height: 0.95;
    letter-spacing: -0.01em;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1));
    animation: sway 6s ease-in-out infinite;
}

@keyframes sway {
    0%,
    100% {
        transform: rotate(-1deg);
    }
    50% {
        transform: rotate(1deg);
    }
}

.hero-sub {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 18px;
}

/* bottom */
.bottom-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 720px;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* app store button */
.appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--ink);
    color: #f0f0ec;
    font-family: "Permanent Marker", cursive;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 5px 5px 0 #666;
    transition:
        transform 0.12s,
        box-shadow 0.12s;
}

.appstore-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #555;
}
.appstore-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 #666;
}

.appstore-btn .badge {
    font-size: 10px;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 7px;
    border-radius: 3px;
    font-family: "DM Mono", monospace;
    font-weight: 300;
}

/* image list */
.image-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    list-style: none;
}

.image-list li {
    height: 280px;
    border: 6px solid var(--paper);
    border-bottom: 22px solid var(--paper);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    background: #ccc;
    border-radius: 2px;
}

.image-list li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) contrast(1.05);
}

.image-list li:hover {
    transform: translate(-3px, -3px) rotate(-1.5deg);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.2);
}

.image-list li:nth-child(1) {
    transform: rotate(-2deg);
}
.image-list li:nth-child(2) {
    transform: rotate(1deg);
}
.image-list li:nth-child(3) {
    transform: rotate(-1.5deg);
}
.image-list li:nth-child(4) {
    transform: rotate(2deg);
}
.image-list li:nth-child(5) {
    transform: rotate(-1deg);
}
.image-list li:nth-child(6) {
    transform: rotate(1.5deg);
}

/* stamp */
.stamp {
    position: fixed;
    bottom: 22px;
    right: 24px;
    font-size: 10px;
    color: #aaa;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: rotate(2deg);
    z-index: 2;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(48px, 16vw, 80px);
    }
    .image-list li {
        height: 140px;
    }
    .appstore-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}
.globe-spin {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 840px;
    height: 840px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    animation: floatGlobe 7s ease-in-out infinite;
    transition: margin 0.3s ease-out;
}

@keyframes floatGlobe {
    0% {
        transform: translate(-50%, -50%) translate(0px, 0px);
    }
    25% {
        transform: translate(-50%, -50%) translate(6px, -10px);
    }
    50% {
        transform: translate(-50%, -50%) translate(0px, -18px);
    }
    75% {
        transform: translate(-50%, -50%) translate(-6px, -10px);
    }
    100% {
        transform: translate(-50%, -50%) translate(0px, 0px);
    }
}
