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

/* === Base === */
html {
    font-family: system-ui, -apple-system, sans-serif;
    background: #0a0a0a;
    color: #e8e4e0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Background Grain Texture === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* === Fade-in Animation === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header,
.hero,
.contact {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.header {
    animation-delay: 0.1s;
}

.hero {
    animation-delay: 0.4s;
}

.contact {
    animation-delay: 0.7s;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* === Header === */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.site-name {
    font-family: Georgia, serif;
    font-size: 42px;
    color: #e8e4e0;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 4px;
}

.name-divider {
    width: 60px;
    height: 1px;
    background: #8b0000;
    margin: 12px auto;
    box-shadow: 0 0 8px 2px rgba(139, 0, 0, 0.6), 0 0 20px 4px rgba(139, 0, 0, 0.2);
}

.site-role {
    font-size: 12px;
    color: #666;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* === Hero === */
.hero {
    margin-bottom: 0;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 70%);
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 0 80px 40px #0a0a0a;
}

.hero-caption {
    font-size: 11px;
    color: #555;
    text-align: right;
    margin-top: 12px;
    font-style: italic;
}

/* === Divider === */
.divider {
    width: 60px;
    height: 1px;
    background: #8b0000;
    border: none;
    margin: 50px auto;
}

/* === Contact === */
.contact {
    text-align: center;
    padding-bottom: 80px;
}

.contact-heading {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #e8e4e0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 24px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    min-width: 200px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: system-ui, -apple-system, sans-serif;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #8b0000;
    border: 1px solid #8b0000;
    color: #e8e4e0;
    box-shadow: 0 0 12px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    background: #a00000;
    border-color: #a00000;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5), 0 0 40px rgba(139, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: #e8e4e0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    border-color: #555;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.btn svg,
.email-link svg {
    width: 18px;
    height: 18px;
}

.btn-secondary svg {
    fill: currentColor;
}

/* === Email link (revealed state) === */
.email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    min-width: 200px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    background: #8b0000;
    border: 1px solid #8b0000;
    color: #e8e4e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(139, 0, 0, 0.3);
}

.email-link:hover {
    background: #a00000;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5), 0 0 40px rgba(139, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 30px 40px;
    font-size: 11px;
    color: #333;
    border-top: 1px solid #151515;
    position: relative;
    z-index: 1;
}

/* === Responsive === */
@media (max-width: 600px) {
    .container {
        padding: 40px 20px 0;
    }

    .site-name {
        font-size: 28px;
        letter-spacing: 5px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn,
    .email-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .footer {
        padding: 20px;
    }
}
