/* ========================================
   DARK EDITORIAL THEME - THISPLACED
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #e8e8e8;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.25rem;
    font-weight: 300;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* ========================================
   LAYOUT CONTAINER
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
}

/* ========================================
   HEADER
   ======================================== */

header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -0.03em;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* ========================================
   STATEMENT SECTION
   ======================================== */

.statement {
    max-width: 900px;
    margin: 0 auto 6rem;
}

.statement-block {
    margin-bottom: 2.5rem;
}

.statement-block p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #c4c4c4;
    font-weight: 300;
}

/* ========================================
   SUBJECTS GRID
   ======================================== */

.subjects-nav {
    margin-bottom: 5rem;
}

.section-title {
    display: none;
}

.subjects-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.subject-link {
    display: block;
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.subject-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.subject-link:hover::before {
    opacity: 1;
}

.subject-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.subject-link span {
    display: block;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    margin-top: auto;
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-text {
    font-size: 0.875rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

/* ========================================
   PERSON PAGE STYLES
   ======================================== */

.person-page {
    max-width: 1400px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.person-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    text-align: center;
    margin-bottom: 4rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

/* Video Container */
.video-container {
    margin-bottom: 5rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.photo-item {
    width: 100%;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    filter: grayscale(0.1) contrast(1.05);
}

.photo-item img:hover {
    transform: scale(1.005);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 200;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: #fff;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 2.5rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 200;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    header {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .person-title {
        font-size: 2.5rem;
    }

    .statement-block p {
        font-size: 1rem;
    }

    .subjects-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subject-link {
        padding: 3rem 1.5rem;
    }

    .subject-link span {
        font-size: 2rem;
    }

    .photo-gallery {
        gap: 2rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 1rem 1.25rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-counter {
        bottom: 1rem;
        font-size: 0.75rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .person-title {
        font-size: 2rem;
    }

    .statement-block p {
        font-size: 0.95rem;
    }

    .subject-link {
        padding: 2.5rem 1rem;
    }

    .subject-link span {
        font-size: 1.75rem;
    }

    header {
        margin-bottom: 2rem;
    }

    .photo-gallery {
        gap: 1.5rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}