/* ============================================================
   WINDERVALE — HUMAN MAP
   Y2K TECH / RAW GRAPHITE / DIGITAL ARCHIVE
   ============================================================ */

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;

    background: #111110;

    color: #e5e2da;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* ============================================================
   MAP FIELD
   ============================================================ */

.map-field {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255,255,255,0.035),
            transparent 34%
        ),
        #111110;
}


/* ============================================================
   DIGITAL GRID
   ============================================================ */

.map-field::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 45;

    pointer-events: none;

    opacity: 0.13;

    background:
        linear-gradient(
            rgba(220,218,211,0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(220,218,211,0.04) 1px,
            transparent 1px
        );

    background-size:
        70px 70px,
        70px 70px;

    mask-image:
        radial-gradient(
            circle,
            black 0%,
            transparent 72%
        );
}


/* ============================================================
   GRAIN
   ============================================================ */

.map-field::before {
    content: "";

    position: absolute;
    inset: -20%;

    z-index: 50;

    pointer-events: none;

    opacity: 0.23;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");

    mix-blend-mode: screen;
}


/* ============================================================
   LOGO
   ============================================================ */

.human-map-logo {
    position: fixed;

    top: 30px;
    left: 38px;

    z-index: 100;

    color: #e5e2da;

    text-decoration: none;

    font-family:
        Arial Black,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;

    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: lowercase;

    transition:
        opacity 0.2s ease;
}

.human-map-logo:hover {
    opacity: 0.55;
}


/* ============================================================
   ENTRY SCREEN
   ============================================================ */

.map-entry {
    position: fixed;
    inset: 0;

    z-index: 500;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        #111110;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.map-entry.hidden {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* ============================================================
   ENTRY MARK
   ============================================================ */

.entry-mark {
    margin-bottom: 22px;

    font-family:
        Arial Black,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.24em;

    color:
        rgba(229,226,218,0.42);
}


/* ============================================================
   ENTRY MESSAGE
   ============================================================ */

.entry-message {
    font-family:
        Arial Black,
        Arial,
        Helvetica,
        sans-serif;

    font-size: clamp(22px, 3vw, 38px);

    font-weight: 900;

    letter-spacing:
        -0.04em;

    text-transform:
        uppercase;

    color:
        #e5e2da;

    animation:
        entryPulse 1.5s ease-in-out infinite;
}

@keyframes entryPulse {

    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}


/* ============================================================
   NETWORK
   ============================================================ */

.mapping-network {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 5;

    pointer-events: none;

    opacity: 0.72;
}


/* ============================================================
   PEOPLE
   ============================================================ */

.person-world {
    position: absolute;

    z-index: 20;

    transform:
        translate(-50%, -50%);

    display: flex;
    flex-direction: column;

    align-items: center;

    animation:
        personFloat 7s ease-in-out infinite;
}

.person-world:nth-child(2n) {
    animation-delay: -2s;
}

.person-world:nth-child(3n) {
    animation-delay: -4s;
}

@keyframes personFloat {

    0%,
    100% {
        transform:
            translate(-50%, -50%);
    }

    50% {
        transform:
            translate(
                -50%,
                calc(-50% - 5px)
            );
    }
}


/* ============================================================
   PERSON
   ============================================================ */

.map-person {
    position: relative;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    color: #e5e2da;

    cursor: pointer;

    text-align: center;

    font-family:
        Arial Black,
        Arial,
        Helvetica,
        sans-serif;

    transition:
        transform 0.25s ease;
}

.map-person:hover {
    transform:
        scale(1.06);
}


/* ============================================================
   PERSON DOT
   ============================================================ */

.map-person-dot {
    position: relative;

    display: block;

    width: 20px;
    height: 20px;

    margin:
        0 auto 12px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #e5e2da 0 17%,
            transparent 19%
        );
}

.map-person-dot::before,
.map-person-dot::after {
    content: "";

    position: absolute;
    inset: 0;

    border:
        1px solid
        rgba(229,226,218,0.7);

    border-radius:
        48% 52% 47% 53%;
}

.map-person-dot::before {
    transform:
        rotate(-14deg);
}

.map-person-dot::after {
    inset:
        -4px
        2px
        2px
        -3px;

    border-color:
        rgba(229,226,218,0.25);

    transform:
        rotate(21deg);
}


/* ============================================================
   NAME
   ============================================================ */

.map-person-name {
    display: block;

    white-space: nowrap;

    font-size: 15px;

    line-height: 1;

    font-weight: 900;

    letter-spacing:
        -0.02em;

    color:
        rgba(229,226,218,0.9);
}


/* ============================================================
   LOCATION
   ============================================================ */

.map-person-meta {
    display: block;

    margin-top: 7px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color:
        rgba(205,202,194,0.36);
}


/* ============================================================
   MATCH STRENGTH
   ============================================================ */

.map-match-strength {
    display: block;

    margin-top: 10px;

    padding:
        4px
        8px;

    border:
        1px solid
        rgba(229,226,218,0.2);

    font-family:
        Arial Black,
        Arial,
        sans-serif;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color:
        rgba(229,226,218,0.4);

    opacity: 0;

    transform:
        translateY(4px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.person-world:hover .map-match-strength {
    opacity: 1;

    transform:
        translateY(0);
}


/* ============================================================
   ACCESS MESSAGE
   ============================================================ */

.map-access-message {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width:
        min(620px, 88vw);

    padding:
        52px 58px 42px;

    border:
        1px solid
        rgba(229,226,218,0.42);

    background:
        rgba(17,17,16,0.94);

    box-shadow:
        12px 12px 0
        rgba(229,226,218,0.08);

    text-align: left;

    z-index: 80;
}


/* ============================================================
   ACCESS CORNER MARKS
   ============================================================ */

.map-access-message::before,
.map-access-message::after {
    content: "";

    position: absolute;

    width: 14px;
    height: 14px;

    border-color:
        rgba(229,226,218,0.65);

    border-style: solid;
}

.map-access-message::before {
    top: -1px;
    left: -1px;

    border-width:
        2px
        0
        0
        2px;
}

.map-access-message::after {
    right: -1px;
    bottom: -1px;

    border-width:
        0
        2px
        2px
        0;
}


/* ============================================================
   ACCESS SYSTEM LABEL
   ============================================================ */

.map-access-system {
    margin-bottom: 28px;

    font-family:
        Arial Black,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 8px;

    font-weight: 900;

    letter-spacing:
        0.2em;

    color:
        rgba(229,226,218,0.4);
}


/* ============================================================
   ACCESS TITLE
   ============================================================ */

.map-access-title {
    max-width: 520px;

    margin-bottom: 18px;

    font-family:
        Arial Black,
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(
            30px,
            5vw,
            54px
        );

    font-weight: 900;

    line-height:
        0.9;

    letter-spacing:
        -0.055em;

    text-transform:
        uppercase;

    color:
        #e5e2da;
}


/* ============================================================
   ACCESS DESCRIPTION
   ============================================================ */

.map-access-description {
    max-width: 500px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.6;

    color:
        rgba(229,226,218,0.58);
}


/* ============================================================
   BUTTON ROW
   ============================================================ */

.map-access-buttons {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 34px;
}


/* ============================================================
   ACCESS BUTTON
   ============================================================ */

.map-access-button {
    padding:
        14px
        20px;

    border:
        1px solid
        rgba(229,226,218,0.7);

    background:
        #e5e2da;

    color:
        #111110;

    font-family:
        Arial Black,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 8px;

    font-weight: 900;

    letter-spacing:
        0.13em;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.map-access-button:hover {
    transform:
        translate(
            3px,
            -3px
        );

    background:
        transparent;

    color:
        #e5e2da;
}


/* ============================================================
   SECONDARY BUTTON
   ============================================================ */

.map-access-button.secondary {
    background:
        transparent;

    color:
        #e5e2da;

    border-color:
        rgba(229,226,218,0.3);
}

.map-access-button.secondary:hover {
    background:
        #e5e2da;

    color:
        #111110;
}


/* ============================================================
   ACCESS FOOTER
   ============================================================ */

.map-access-footer {
    margin-top: 38px;

    padding-top: 12px;

    border-top:
        1px solid
        rgba(229,226,218,0.12);

    font-family:
        "Courier New",
        monospace;

    font-size: 7px;

    font-weight: 700;

    letter-spacing:
        0.17em;

    color:
        rgba(229,226,218,0.25);
}


/* ============================================================
   PROFILE PANEL
   ============================================================ */

.person-profile {
    position: fixed;

    top: 0;
    right: 0;

    width:
        min(560px, 94vw);

    height: 100vh;

    z-index: 300;

    overflow-y: auto;

    padding:
        88px 64px 70px;

    background:
        #151514;

    color:
        #d8d5ce;

    border-left:
        1px solid
        rgba(215,212,204,0.16);

    box-shadow:
        -25px 0 60px
        rgba(0,0,0,0.55);

    transition:
        transform 0.5s cubic-bezier(
            .22,
            .61,
            .36,
            1
        ),
        opacity 0.4s ease;
}

.person-profile.hidden {
    transform:
        translateX(100%);

    opacity: 0;

    pointer-events: none;
}


/* ============================================================
   PROFILE GRAIN
   ============================================================ */

.person-profile::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0.12;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ============================================================
   CLOSE
   ============================================================ */

.profile-close {
    position: absolute;

    top: 28px;
    right: 32px;

    padding: 5px;

    border: 0;

    background: transparent;

    color:
        rgba(215,212,204,0.45);

    font-family:
        Arial Black,
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.12em;

    cursor: pointer;
}

.profile-close:hover {
    color:
        #d8d5ce;
}


/* ============================================================
   PROFILE TYPE
   ============================================================ */

.profile-number {
    margin-bottom: 48px;

    font-family:
        Arial Black,
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 0.22em;

    color:
        rgba(215,212,204,0.32);
}


/* ============================================================
   PROFILE HEADING
   ============================================================ */

.profile-heading h2 {
    margin: 0;

    font-family:
        Arial Black,
        Arial,
        sans-serif;

    font-size: 52px;

    line-height: 0.92;

    font-weight: 900;

    letter-spacing: -0.055em;

    color:
        #dedbd4;
}

.profile-meta {
    margin-top: 15px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color:
        rgba(215,212,204,0.34);
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.profile-description {
    margin-top: 40px;

    padding-bottom: 35px;

    border-bottom:
        1px solid
        rgba(215,212,204,0.13);

    font-size: 18px;

    font-weight: 600;

    line-height: 1.65;

    color:
        rgba(218,215,207,0.68);
}


/* ============================================================
   PROFILE SECTIONS
   ============================================================ */

.profile-interests {
    margin-top: 30px;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(215,212,204,0.13);
}

.profile-label {
    margin-bottom: 12px;

    font-family:
        Arial Black,
        Arial,
        sans-serif;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.21em;

    text-transform: uppercase;

    color:
        rgba(215,212,204,0.34);
}

.profile-interests p {
    margin: 0;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.6;

    color:
        rgba(218,215,207,0.68);
}


/* ============================================================
   REQUEST
   ============================================================ */

.request-introduction {
    margin-top: 50px;

    padding:
        14px 20px;

    border:
        1px solid
        rgba(215,212,204,0.42);

    background:
        transparent;

    color:
        #d8d5ce;

    font-family:
        Arial Black,
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.request-introduction:hover {
    background:
        #d8d5ce;

    color:
        #111110;

    transform:
        translate(
            3px,
            -3px
        );
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .human-map-logo {
        top: 22px;
        left: 22px;
    }

    .map-person-name {
        font-size: 13px;
    }

    .person-profile {
        width: 100%;

        padding:
            76px
            27px
            50px;
    }

    .profile-heading h2 {
        font-size: 40px;
    }

    .map-access-message {
        width:
            calc(100% - 30px);

        padding:
            38px 27px 30px;
    }

    .map-access-title {
        font-size: 34px;
    }

    .map-access-description {
        font-size: 14px;
    }

    .map-access-buttons {
        flex-direction: column;
    }

    .map-access-button {
        width: 100%;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .map-access-message {
        padding:
            32px 22px 27px;
    }

    .map-access-title {
        font-size: 29px;
    }

    .map-access-description {
        font-size: 13px;
    }

    .map-access-footer {
        font-size: 6px;
        line-height: 1.5;
    }

    .profile-heading h2 {
        font-size: 34px;
    }
}

/* ============================================================
   HUMAN MAP — LAYER SYSTEM
   ============================================================ */

#map-people {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

#map-people .person-world {
    pointer-events: auto;
}

.mapping-network {
    z-index: 5;
}

.map-access-message {
    position: absolute;
    z-index: 80;
}