:root {
    --bg: #0a0a0a;
    --card: #111111;
    --text: #f5f5f5;
    --text-muted: #888888;
    --accent: #c9a84c;
    --accent-glow: rgba(201, 168, 76, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

.page {
    max-width: 520px;
    margin: 0 auto;
}

/* Hero image */
.hero-img {
    position: relative;
    width: 100vw;
    max-height: 80vh;
    overflow: hidden;
    margin-left: calc((100vw - 100%) / -2);
}

.hero-img img {
    width: 100%;
    display: block;
    margin-top: -15%;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.1s;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}

/* Content below image */
.content {
    padding: 0 1.75rem 3rem;
    margin-top: -3rem;
    position: relative;
    z-index: 1;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.2s;
}

.dot {
    color: var(--accent);
}

.tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.3s;
}

.bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.4s;
}

.bio:last-of-type {
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.5s;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.5s;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.link-btn:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-1px);
}

.link-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.link-btn span {
    flex: 1;
    text-align: left;
}

.socials {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.6s;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeToHalf 0.6s ease forwards 0.7s;
}

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

@keyframes fadeToHalf {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 0.5; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 520px) {
    .page {
        max-width: 100%;
    }

    .hero-img {
        max-height: 65vh;
        width: 100%;
        margin-left: 0;
    }

    .content {
        padding: 0 1.25rem 2.5rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .bio {
        font-size: 0.85rem;
    }

    .link-btn {
        padding: 0.95rem 1.25rem;
        -webkit-tap-highlight-color: transparent;
    }

    .link-btn:active {
        transform: scale(0.98);
        border-color: var(--accent);
        background: var(--accent-glow);
    }

    .social-link:active {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-glow);
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 380px) {
    .name {
        font-size: 2.1rem;
    }

    .hero-img {
        max-height: 55vh;
    }
}
