/* --- Design System & Global Styles --- */
:root {
    --primary-bg: #000000;
    --secondary-bg: #000000;
    --primary-text: #e6eef6;
    --secondary-text: #b0b7c0;
    --accent-color: #3ab5ff;
    --card-bg: #070c17;
    /* Use a system font stack to avoid external font requests */
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: var(--font-main);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Skip link */
.skip-link{
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: transparent;
    color: inherit;
    padding: 4px 8px;
    z-index: 9999;
}
.skip-link:focus,
.skip-link:active{
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    background: #111;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Focus visibility for keyboard users */
:focus-visible {
    outline: 3px solid rgba(58,181,255,0.22);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { 
    font-size: 2rem; 
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-bg);
}
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--accent-color); }

p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

a {
     color: var(--accent-color);
     text-decoration: none;
     transition: color 0.3s ease;
 }
 a:hover { color: white; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
     * {
         transition: none !important;
         animation: none !important;
     }
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-bg);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand { font-size: 1.25rem; font-weight: 700; }
.nav-links { display: none; /* Hidden on mobile */ }
.nav-button {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

/* --- Person Section --- */
.person {
    padding: 4rem 0;
    text-align: center;
}
.person-text .subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}
.person-image {
    margin-top: 2rem;
}
.person-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 400px;
    margin: 0 auto;
}

/* --- Roles Section --- */
.roles-section {
    background-color: var(--secondary-bg);
}
.roles-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.role-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--accent-color);
}
.role-card svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent-color);
    margin-bottom: 1rem;
}

/* --- Works Section --- */
.works-section {
    background-color: var(--secondary-bg);
}
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.work-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: var(--accent-color);
}
.work-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}
.card-content h3 { color: var(--primary-text); }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 700; }

.photo-credit {
    text-align: right;
    padding: 0.5rem 1.5rem 0 1.5rem;
    font-size: 0.8rem;
    color: var(--secondary-text);
    font-style: italic;
}

.person-image .photo-credit {
    max-width: 400px;
    margin: 0 auto;
    padding-right: 0;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--secondary-text);
}
.footer-links {
    margin-bottom: 1rem;
}
.footer-links a {
    margin: 0 0.75rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* --- Desktop & Tablet Styles (min-width: 768px) --- */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    .nav-links {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .person {
        text-align: left;
    }
    .person-content {
        display: flex;
        align-items: center;
        gap: 4rem;
    }
    .person-text { flex: 1; }
    .person-image { flex: 1; max-width: 450px; margin-top: 0; }

    .roles-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    .role-card {
        flex-basis: 31%;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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