/* Reset & Variables */
:root {
    --bg-color: #fcfcfc; /* Off-white paper feel */
    --text-color: #111111; /* Almost black */
    --accent-color: #666666;
    --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 1.5rem;
}

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

body, html {
    height: 100%;
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-unit);
    text-align: center;
}

/* Hero */
.logo-wrapper {
    margin-bottom: calc(var(--spacing-unit) * 2);
    /* Subtle entrance animation */
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.logo {
    width: 60%; /* Responsive width */
    max-width: 220px; /* Cap it at intrinsic size */
    height: auto;
    display: block;
    margin: 0 auto; /* Ensure block centering */
}

.tagline {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    padding-left: 0.1em; /* Correct compensation is half the letter-spacing */
    text-transform: uppercase;
    color: var(--accent-color);
    margin-top: var(--spacing-unit);
    
    /* Animation delay */
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    transform: translateY(10px);
}

/* Contact */
.contact {
    margin-top: calc(var(--spacing-unit) * 3); /* Balanced with top margin (logo bottom + tagline top = 3 units approx) */
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    transform: translateY(10px);
}

.contact-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.contact-link:hover .arrow {
    transform: translateX(4px);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
