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

:root {
    --bg: #f5f5f3;
    --surface: #ffffff;
    --surface-2: #f9f9f8;
    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.13);
    --text-1: #111110;
    --text-2: #6f6e6b;
    --text-3: #a8a7a3;
    --accent: #111110;
    --tag-bg: #efefed;
    --green: #30a46c;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-hover:
        0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
    --gap: 10px;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text-1);
    font-family: "Outfit", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

/* ═══════════════════════════
   BENTO GRID
═══════════════════════════ */
.bento {
    display: grid;
    width: 100%;
    max-width: 860px;
    grid-template-columns: 240px 1fr 1fr;
    gap: var(--gap);
    grid-template-areas:
        "profile  web     blog"
        "profile  oss     cv"
        "social   social  social"
        "footer   footer  footer";
}

/* ── Base cell ── */
.cell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.cell-profile {
    animation-delay: 0.04s;
    grid-area: profile;
}
.cell-web {
    animation-delay: 0.1s;
    grid-area: web;
}
.cell-blog {
    animation-delay: 0.16s;
    grid-area: blog;
}
.cell-oss {
    animation-delay: 0.22s;
    grid-area: oss;
}
.cell-cv {
    animation-delay: 0.28s;
    grid-area: cv;
}
.cell-social {
    animation-delay: 0.32s;
    grid-area: social;
}
.cell-footer {
    animation-delay: 0.38s;
    grid-area: footer;
}

/* ════════════════════
   PROFILE CELL
════════════════════ */
.cell-profile {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--text-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 500;
    color: var(--surface);
    margin-bottom: 14px;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-1);
    line-height: 1.2;
    margin-bottom: 3px;
}

.profile-handle {
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.profile-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 14px;
}

.profile-bio {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.65;
    flex: 1;
}

.profile-meta {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meta-icon svg {
    width: 13px;
    height: 13px;
    stroke: var(--text-3);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.meta-text {
    font-size: 12px;
    color: var(--text-2);
}
.meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(48, 164, 108, 0.15);
}
.meta-available {
    font-size: 12px;
    color: var(--green);
    font-weight: 500;
}

.profile-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.tag {
    background: var(--tag-bg);
    border-radius: 5px;
    padding: 3px 8px;
    font-family: "Geist Mono", monospace;
    font-size: 10.5px;
    color: var(--text-2);
    letter-spacing: 0.1px;
}

/* ════════════════════
   LINK CELLS — all 4 cards identical
════════════════════ */
.link-cell {
    padding: 20px 20px 18px;
    text-decoration: none;
    color: var(--text-1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    min-height: 140px;
    position: relative;
}
.link-cell:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.link-cell:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.link-cell-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* arrow — absolute top-right on desktop */
.link-cell > .ext-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
}

.link-cell-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--tag-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: background 0.2s;
    flex-shrink: 0;
}
.link-cell-icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--text-2);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}
.link-cell:hover .link-cell-icon {
    background: var(--text-1);
    border-color: var(--text-1);
}
.link-cell:hover .link-cell-icon svg {
    stroke: white;
}

.ext-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
    flex-shrink: 0;
}
.ext-arrow svg {
    width: 12px;
    height: 12px;
    stroke: var(--text-3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}
.link-cell:hover .ext-arrow {
    background: var(--text-1);
    border-color: var(--text-1);
    transform: translate(2px, -2px);
}
.link-cell:hover .ext-arrow svg {
    stroke: white;
}

.link-cell-label {
    font-family: "Geist Mono", monospace;
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.link-cell-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 3px;
}
.link-cell-desc {
    font-size: 12px;
    color: var(--text-3);
}

/* ════════════════════
   SOCIAL CELL
════════════════════ */
.cell-social {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
}

.social-label {
    font-family: "Geist Mono", monospace;
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 1px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    flex-shrink: 0;
}

.social-divider {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    flex: 1;
    gap: 8px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-1);
    transition:
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.social-btn:hover {
    background: var(--surface);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
.social-btn:active {
    transform: none;
    box-shadow: none;
}

.social-btn-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 7px;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.social-btn-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--text-2);
    transition: fill 0.2s;
}
.social-btn:hover .social-btn-icon {
    background: var(--text-1);
    border-color: var(--text-1);
}
.social-btn:hover .social-btn-icon svg {
    fill: white;
}

.social-btn-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    line-height: 1.2;
}
.social-btn-handle {
    font-family: "Geist Mono", monospace;
    font-size: 10.5px;
    color: var(--text-3);
}

/* ════════════════════
   FOOTER CELL
════════════════════ */
.cell-footer {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    background: var(--surface-2);
}
.footer-sig {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    letter-spacing: -0.2px;
}
.footer-copy {
    font-family: "Geist Mono", monospace;
    font-size: 10.5px;
    color: var(--text-3);
}

/* ════════════════════
   KEYFRAMES
════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ════════════════════
   MOBILE
════════════════════ */
@media (max-width: 700px) {
    body {
        align-items: flex-start;
        justify-content: center;
        padding: 28px 14px 64px;
    }
    .bento {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-width: 480px;
        width: 100%;
    }

    .cell-profile {
        padding: 20px 18px;
    }
    .profile-name {
        font-size: 18px;
    }

    .link-cell {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: unset;
        padding: 13px 15px;
        justify-content: flex-start;
    }
    .link-cell-top {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .link-cell > .ext-arrow {
        position: static;
        margin-left: auto;
    }
    .link-cell-bottom {
        flex: 1;
    }
    .link-cell-title {
        font-size: 14px;
    }
    .link-cell-label {
        display: none;
    }
    .link-cell-icon {
        width: 34px;
        height: 34px;
    }
    .link-cell-icon svg {
        width: 15px;
        height: 15px;
    }

    .cell-social {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 10px;
    }
    .social-label {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .social-divider {
        display: none;
    }
    .social-links {
        flex-direction: column;
        gap: 7px;
    }
    .social-btn {
        flex: unset;
    }

    .cell-footer {
        padding: 12px 15px;
    }
}

::-webkit-scrollbar {
    width: 3px;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
}

