:root {
    --bg-color: #050505;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow-x: hidden;
    /* Hide scrollbar for premium feel */
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none;
}

/* Fixed Canvas */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0; /* hidden until loaded */
    transition: opacity 1s ease-in-out;
}

#hero-canvas.loaded {
    opacity: 1;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    width: 200px;
}

.loading-text {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.progress-bar-container {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 0.1s linear;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.5s ease;
    opacity: 0;
}

#hero-canvas.loaded ~ .scroll-indicator {
    opacity: 1;
}

.scroll-indicator p {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 300;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.1% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Scrollytelling Container */
.story-container {
    position: relative;
    z-index: 10;
    /* 5 screens total scrollable area = 400vh + 100vh spacer */
    height: 500vh; 
}

.beat {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding to keep text accessible */
    padding: 0 5%;
}

.beat.right-align {
    align-items: flex-end;
    text-align: right;
}

@media (min-width: 768px) {
    .beat {
        padding: 0 10%;
    }
}

.content-block {
    max-width: 900px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.title {
    font-size: 2.5rem; /* mobile size */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-right: 0.1em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .title {
        font-size: 7rem; /* ~112px */
    }
}

@media (min-width: 1024px) {
    .title {
        font-size: 8rem; /* ~128px */
    }
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 1.5rem;
    }
}

.spacer {
    height: 100vh;
}

.site-footer {
    position: relative;
    z-index: 20;
    background-color: var(--bg-color); /* matches body background */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 5% 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 6rem 10% 3rem;
        gap: 4rem;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        align-items: center;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* Services Section */
.services-section {
    position: relative;
    z-index: 20;
    background-color: var(--bg-color);
    padding: 4rem 5%;
}

@media (min-width: 768px) {
    .services-section {
        padding: 8rem 10%;
    }
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 4rem;
    text-align: center;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .services-title {
        font-size: 3.5rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem);
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.card-line {
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.service-card:hover .card-line {
    width: 60px;
    background-color: rgba(255, 255, 255, 0.8);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Responsive Grids */
.grid-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-stack {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-stack.grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

