:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --border-color: #eaeaea;
    --logo-color: #808080;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 6rem;
    --spacing-xl: 10rem;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle Film Grain */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    mix-blend-mode: multiply;
}

/* Custom slow spring scroll logic handled in JavaScript */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Header */
.header {
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--logo-color);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.logo img, .footer-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo img {
    /* Compensates for the empty space inside the SVG to optically align the 's' with the text below */
    margin-left: -39px; 
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-color);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 80px; /* Offset for header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    max-width: 900px;
    background: linear-gradient(135deg, #1a1a1a 0%, #808080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.1em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 700px;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background-color: rgba(128, 128, 128, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--text-color);
    border-radius: 2px;
    animation: scrollSpring 5s cubic-bezier(0.3, 0, 0.3, 1.3) infinite;
}

@keyframes scrollSpring {
    0% { transform: translateY(-150%); }
    45%, 100% { transform: translateY(350%); }
}

/* Section */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.service-card {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-top-color: var(--text-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Contact */
.contact-content {
    max-width: 800px;
}

.contact-text {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    line-height: 1.4;
}

.contact-email {
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    display: inline-block;
}

.contact-email:hover {
    border-bottom-color: var(--text-color);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-org {
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0.5;
}

.footer-right {
    text-align: right;
}

.footer-address {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
    opacity: 0.5;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-right {
        text-align: left;
    }
}
