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

html, body {
    height: auto;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    background: #f4f4f4;
    font-family: 'Fira Sans', sans-serif;
    font-size: 11.5px;
    line-height: 200%;
    color: #555;
    animation: fadein 1.2s ease-out;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: #7a7a7a;
    transition: 0.35s ease;
}

a:hover {
    color: #b08f7a;
}

#header {
    text-align: center;
    margin: 40px auto 30px;
}

#header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: #333;
    margin-top: 15px;
}

#header img {
    width: 240px;
    height: 240px;
    margin: 20px auto;
    border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
    border: 1px solid #ddd;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    filter: grayscale(1) contrast(1.05) brightness(0.95);
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.links {
    width: 380px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.links a {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 11px;
    font-style: italic;
    background: #fafafa;
}

.member-page {
    width: 100%;
    display: flow-root;
    padding-bottom: 80px;
}

#owned {
    width: min(1200px, 96%);
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 34px;
}

#owned .member {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    border-radius: 24px;

    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,245,245,0.85));
    backdrop-filter: blur(10px);

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
   height: 100%;
    overflow: hidden;

    transition: all 0.5s cubic-bezier(.2,.8,.2,1);
}

#owned .member::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.9),
        rgba(180,180,180,0.2),
        rgba(255,255,255,0.6)
    );
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.5s ease;
    z-index: 0;
}

#owned .member:hover::before {
    opacity: 1;
}

#owned .member:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

#owned .member > * {
    position: relative;
    z-index: 1;
}

#owned .left img {
    width: 140px;
    height: 140px;
    border-radius: 50%;

    padding: 6px;
    background: rgba(255,255,255,0.9);

    border: 1px solid rgba(0,0,0,0.08);

    filter: grayscale(100%) contrast(1.05) brightness(0.95);

    transition: transform 0.6s cubic-bezier(.2,.8,.2,1),
                filter 0.6s ease;
}

#owned .member:hover .left img {
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
    transform: scale(1.12) rotate(-2deg);
}

#owned .member h1 {
    font-size: 19px;
    letter-spacing: 3px;
    color: #2a2a2a;
    margin: 18px 0 12px;
    text-transform: uppercase;
    text-align: center;
}

#owned .desc {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 16px 18px;

    color: #666;
    line-height: 1.75;

    max-height: 140px;
    overflow-y: auto;

    transition: all 0.4s ease;
}

#owned .member:hover .desc {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.12);
}

#owned .url {
    margin-top: auto;
    padding-top: 18px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#owned .url a {
    padding: 7px 16px;

    font-size: 10.5px;
    letter-spacing: 1.3px;
    text-transform: uppercase;

    color: #444;
    background: rgba(250,250,250,0.9);

    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;

    transition: all 0.4s cubic-bezier(.2,.8,.2,1);
}

#owned .url a:hover {
    transform: translateY(-4px);
    background: white;
    border-color: rgba(0,0,0,0.18);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    color: #222;
}

@media (max-width: 700px) {
    #owned {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #owned .member {
        padding: 26px 20px;
    }
}

#footer {
    clear: both;
}

@media (max-width: 700px) {
    #owned {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

#box {
    width: min(900px, 92%);
    margin: 60px auto;
    padding: 30px 28px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
    animation: fadein 1.2s ease-out;
}