@font-face {
    font-family: 'Alien League';
    src: url('fonts/alienleague.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0c0c0c;
    --text-primary: #f2f2f2;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --accent: #ffffff;
    --border-color: #27272a;
    --font-sans: 'Inter', sans-serif;
    --font-brand: 'Alien League', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    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.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.header {
    width: 100%;
    padding: 2.5rem 5vw;
    display: flex;
    justify-content: flex-start;
}

.brand {
    font-family: var(--font-brand);
    font-size: 1.6rem;
    font-weight: normal;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5vw;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.name {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.divider {
    color: var(--text-muted);
    margin: 0 0.5rem;
    font-weight: 300;
    opacity: 0.5;
}

.roles {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.7;
    margin-top: 1rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

@media (min-width: 768px) {
    .details {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    text-transform: uppercase;
}

.list-item {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.year {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.desc {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.curator {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    font-style: italic;
    opacity: 0.8;
}

/* Accordions */
.expandables {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.accordion {
    border-bottom: 1px solid var(--border-color);
}

.accordion summary {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    padding: 1rem 0;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none; /* remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion summary:hover {
    color: var(--accent);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion[open] summary::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.accordion p.desc {
    margin-top: 0.5rem;
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Portfolio Embed */
.portfolio-embed {
    grid-column: 1 / -1;
    margin-bottom: 4rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.portfolio-embed .section-title {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    padding: 0 5vw;
}

.iframe-container {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    background-color: #1a1a1a;
}

.iframe-container iframe {
    display: block;
    border: none;
    background-color: transparent;
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(15px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
        gap: 2.5rem;
    }
    
    .header {
        padding: 1.5rem 1.5rem;
        justify-content: center;
    }

    .name {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .roles {
        font-size: 1rem;
    }

    /* Make the PDF viewer more manageable on mobile */
    .iframe-container iframe {
        height: 65vh;
    }
    
    .contact-links {
        gap: 1rem;
    }
}
