/* Variables */
:root {
    --bg: #050A0D;
    --white: #ffffff;
    --text: #f0f0f0;
    --text-dim: #a1a1aa;
    --text-muted: #71717a;
    --text-subtle: #52525b;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base */
body {
    font-family: var(--font-sans);
    font-weight: 500;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

a, button { cursor: none; }

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.6), 0 0 20px rgba(255,255,255,0.4), 0 0 30px rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (hover: none), (pointer: coarse) {
    body, a, button { cursor: auto; }
    .cursor, .cursor-glow { display: none; }
}

/* Background */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg);
}

.bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 92px 92px;
    background-position: center;
    mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, black 5%, rgba(0,0,0,0.5) 35%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, black 5%, rgba(0,0,0,0.5) 35%, transparent 65%);
}

.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(176deg, rgba(255,255,255,0.012) 0%, transparent 50%),
        linear-gradient(172deg, rgba(255,255,255,0.01) 0%, transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.008) 0%, transparent 55%),
        linear-gradient(168deg, rgba(255,255,255,0.007) 0%, transparent 40%),
        linear-gradient(184deg, rgba(255,255,255,0.011) 0%, transparent 48%),
        linear-gradient(170deg, rgba(255,255,255,0.008) 0%, transparent 42%),
        linear-gradient(178deg, rgba(255,255,255,0.01) 0%, transparent 52%),
        linear-gradient(166deg, rgba(255,255,255,0.006) 0%, transparent 38%),
        linear-gradient(186deg, rgba(255,255,255,0.009) 0%, transparent 46%),
        linear-gradient(174deg, rgba(255,255,255,0.007) 0%, transparent 44%),
        radial-gradient(ellipse 100% 40% at 50% 0%, rgba(255,255,255,0.02) 0%, transparent 50%);
    mix-blend-mode: screen;
}

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

/* Layout */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Profile Photo */
.profile-photo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(145deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 12px 24px rgba(0,0,0,0.25), 0 24px 48px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 13px;
    display: block;
}

.profile-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.08) 55%, rgba(255,255,255,0) 75%, transparent 100%);
    z-index: 10;
    border-radius: 13px;
}

.profile-photo-wrapper:hover::after {
    left: 150%;
    transition: left 1.5s ease-in-out;
}

.profile-photo-wrapper.no-image { display: none; }

/* Typography */
.headline {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.5rem, 5.5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--white);
    text-shadow: 0 0 40px rgba(255,255,255,0.15);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.subtitle .amp { margin: 0 0.4em; }

.tagline {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Links */
.cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    animation: fadeInUpSoft 0.8s ease-out 0.5s both;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
    position: relative;
    transition: color 0.3s var(--ease);
    animation: fadeInUpSoft 0.8s ease-out 0.5s both;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s var(--ease);
}

.cta:hover { color: var(--white); }
.cta:hover::after { width: calc(100% - 1.2rem); }

.cta .arrow {
    font-size: 0.85rem;
    transition: transform 0.3s var(--ease);
}

.cta:hover .arrow { transform: translate(3px, -3px); }

.contact {
    font-size: 0.85rem;
    color: var(--text-subtle);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.contact a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s var(--ease);
}

.contact a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s var(--ease);
}

.contact a:hover { color: var(--white); }
.contact a:hover::after { width: 100%; }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 1.5rem; }
    .profile-photo-wrapper { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
    .headline { font-size: 2.25rem; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 2px;
}
