/* =========================================
   RESET
========================================= */

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

html,
body {
    width: 100%;
    min-height: 100%;
}

html {
    background: #222;
}

body {
    min-height: 100vh;
    min-height: 100dvh;


    color: #e7e4e0;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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


/* =========================================
   PAGE
========================================= */

.page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

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

}
.page-background {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;

    overflow: hidden;

    z-index: -1;
}

.page-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.1);
    opacity: 0.45;
    filter: blur(40px);
}

/* =========================================
   CARD
========================================= */

.card {
    position: relative;

    width: min(100%, 480px);
    height: min(900px, calc(100dvh - 60px));

    overflow: hidden;

    border-radius: 22px;


    isolation: isolate;
}


/* =========================================
   BLURRED BACKGROUND
========================================= */

.background {
    position: absolute;
    inset: -12%;

    z-index: -3;

    overflow: hidden;
}

.background img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    filter: blur(35px);

    transform: scale(1.15);

    opacity: 0.62;
}


/* =========================================
   MAIN PORTRAIT
========================================= */

.portrait {
    position: absolute;
    inset: 0;

    z-index: -2;

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

    overflow: hidden;
}

.portrait img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    animation: imageReveal 1.3s cubic-bezier(.22, .61, .36, 1) both;
}


/* =========================================
   GRADIENT
========================================= */

.gradient {
    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 20%,
            rgba(0, 0, 0, 0.05) 40%,
            rgba(0, 0, 0, 0.42) 66%,
            rgba(0, 0, 0, 0.90) 100%
        );
}


/* =========================================
   CONTENT
========================================= */

.content {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 40px 34px 46px;
}


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

.profile {
    margin-bottom: 14px;

    text-align: center;

    animation:
        profileReveal
        0.9s
        0.2s
        cubic-bezier(.22, .61, .36, 1)
        both;
}

.profile h1 {
    font-family: "El Messiri", sans-serif;

    font-size: clamp(48px, 11vw, 82px);

    line-height: 0.95;

    font-weight: 500;

    letter-spacing: -0.035em;

    color: #e7e4e0;

    text-shadow:
        0 4px 30px rgba(0, 0, 0, 0.45);
}


/* =========================================
   LINKS
========================================= */

.links {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* =========================================
   SOCIAL BUTTON
========================================= */

.social-link {
    position: relative;

    width: 90%;
    min-height: 60px;
    margin: 0 auto;

    display: flex;
    align-items: center;

    padding: 0 19px;

    border: 1px solid transparent;
    border-radius: 12px;

    background: rgba(20, 20, 20, 0.20);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(18px);

    font-family: "Chiron Sung HK", sans-serif;

    font-size: 18px;
    font-weight: 500;

    letter-spacing: 0.01em;

    color: #e7e4e0;

    opacity: 0;

    animation:
        buttonReveal
        0.7s
        var(--delay)
        cubic-bezier(.22, .61, .36, 1)
        forwards;

    transition:
        border-color 0.35s ease,
        background-color 0.35s ease;
}


/* =========================================
   ICON
========================================= */

.icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

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

    color: #e7e4e0;

    transition: transform 0.35s ease;
}

.icon svg {
    width: 20px;
    height: 20px;

    display: block;

    fill: currentColor;
}

.icon svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.icon svg circle.dot {
    fill: currentColor;
    stroke: none;
}


/* =========================================
   LABEL
========================================= */

.label {
    flex: 1;

    margin-left: 14px;
}


/* =========================================
   ARROW
========================================= */

.arrow {
    width: 22px;
    height: 22px;

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

    opacity: 0.65;

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

.arrow svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   HOVER
========================================= */

@media (hover: hover) {

    .social-link:hover {
        border-color: rgba(255, 255, 255, 0.7);
    }

    .social-link:hover .arrow {
        opacity: 1;
        transform: translateX(3px);
    }

    .social-link:hover .icon {
        transform: scale(1.04);
    }
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes imageReveal {

    from {
        opacity: 0;
        transform: scale(1.035);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes profileReveal {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes buttonReveal {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


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

@media (max-width: 600px) {

    .page {
        padding: 0;
    }

    .card {
        width: 100%;
        height: 100vh;
        height: 100dvh;

        border-radius: 0;
    }

    .content {
        padding:
            30px
            24px
            max(80px, env(safe-area-inset-bottom));
    }

    .profile {
        margin-bottom: 24px;
    }

    .profile h1 {
        font-size: clamp(48px, 14vw, 68px);
    }
}


/* =========================================
   SHORT SCREENS
========================================= */

@media (max-height: 700px) {

    .content {
        padding-bottom: 28px;
    }

    .profile {
        margin-bottom: 18px;
    }

    .links {
        gap: 8px;
    }

    .social-link {
        min-height: 54px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}