html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 80px; /* Offset for fixed navbar */
}

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

/* Premium Cinematic Background System */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.15;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layer 1: Ambient Glows | Layer 2: Dot Grid */
    background: 
        radial-gradient(circle at 10% 10%, var(--accent-gold-glow) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, var(--accent-gold-glow) 0%, transparent 40%),
        radial-gradient(rgba(196, 164, 108, 0.08) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 100% 100%, 40px 40px;
    pointer-events: none;
    z-index: -2;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
}

/* Sections */
section {
    padding: 160px 0;
    position: relative;
    display: flex;
    align-items: center;
    background: transparent !important; /* Reveal the cinematic background */
}

@media (max-width: 768px) {
    section { 
        padding: 100px 0;
    }
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-eyebrow::before {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--accent-gold);
}

.section-header {
    text-align: left;
    margin-bottom: 64px;
    max-width: 900px;
}

.about-page .section-title {
    line-height: 1.05 !important;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
    margin: 0 0 40px 0; /* Strict margin for left align */
    letter-spacing: -0.03em;
    text-align: left;
}

.section-title .italic {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-gold);
}

.section-description {
    font-size: 22px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 0 80px 0; 
    line-height: 1.6;
    text-align: left;
}

/* Hide scrollbar but keep scrolling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s ease;
}

body.loaded #page-loader {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-style: italic;
    color: var(--text-primary);
    animation: loaderPulse 1.5s infinite;
}

.loader-logo span {
    color: var(--accent-primary);
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* =====================
   Accessibility
   ===================== */

/* Focus visible — keyboard-only focus ring */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--accent-gold);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    body::before { display: none; }
}
