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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #fafafa;
    --gray-200: #f0f0f0;
    --gray-300: #d9d9d9;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    --red: #e50000;
    --blue: #0055cc;
    
    --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, system-ui, sans-serif;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    font-weight: 300;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p { margin-bottom: 1.25rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s var(--ease);
}

a:hover {
    opacity: 0.6;
}

/* Layout */
.grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 968px) {
    .col-4, .col-5, .col-7, .col-8 {
        grid-column: span 12;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--black);
    backdrop-filter: blur(10px);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 5vw, 6rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }
    .nav-menu a {
        font-size: 0.8125rem;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--gray-600);
}

.hero-title {
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-meta {
    font-size: 1.125rem;
    color: var(--gray-600);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.divider {
    color: var(--gray-400);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.dark-section {
    background: var(--gray-900);
    color: var(--white);
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
    display: flex;
    align-items: baseline;
    gap: 2rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1.5rem;
}

.section-number {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 400;
}

.dark-section .section-number {
    color: var(--gray-400);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* About */
.about-section {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: clamp(1.5rem, 5vw, 6rem);
    padding-right: clamp(1.5rem, 5vw, 6rem);
}

.intro-text {
    font-size: 1.375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

.info-box {
    padding: 2rem;
    background: var(--gray-100);
    margin-bottom: 2rem;
}

.info-box h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-light {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-list li {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    font-size: 0.875rem;
}

/* Projects */
.project-featured {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 968px) {
    .project-featured {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.project-image-large {
    position: sticky;
    top: 120px;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dark-section .image-placeholder {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
}

.image-placeholder.tall {
    aspect-ratio: 3/4;
}

.image-placeholder.wide {
    aspect-ratio: 16/10;
}

.placeholder-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.project-tag {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: var(--black);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.dark-section .project-tag {
    background: var(--white);
    color: var(--black);
}

.project-info-large h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.project-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--gray-300);
}

.project-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.detail-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.detail-label {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
    color: var(--gray-500);
    min-width: 80px;
}

/* Projects Grid */
.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-image {
    margin-bottom: 1.5rem;
}

.project-info h4 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-info p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-meta span {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

/* Teaching */
.teaching-highlight {
    margin: 3rem 0;
}

.experience-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.experience-block:last-child {
    border-bottom: none;
}

.exp-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.exp-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.sidebar-box {
    padding: 2rem;
    background: var(--gray-100);
    margin-bottom: 2rem;
}

.sidebar-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.course-list {
    list-style: none;
}

.course-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-300);
    font-size: 0.9375rem;
}

.course-list li:last-child {
    border-bottom: none;
}

.tag-list-small {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-list-small li {
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.button-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--black);
    transition: all 0.3s var(--ease);
}

.button-primary:hover {
    opacity: 1;
    background: var(--white);
    color: var(--black);
}

/* Work Grid */
.work-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.work-item {
    display: flex;
    flex-direction: column;
}

.work-image {
    margin-bottom: 1.5rem;
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: contain;
    display: block;
    background: var(--gray-100);
}

.dark-section .portfolio-img {
    background: rgba(255, 255, 255, 0.03);
}

.work-image .portfolio-img {
    aspect-ratio: 16/10;
}

.work-caption h4 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--white);
}

.work-caption p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

/* Publications */
.pubs-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
}

.pub-section {
    margin-bottom: 3rem;
}

.pub-section h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.pub-item {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--gray-300);
    line-height: 1.7;
}

.pub-item em {
    font-style: italic;
    color: var(--gray-600);
}

/* Contact */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
    text-align: center;
}

.contact-title {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact-intro {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--gray-400);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.contact-item a {
    font-size: 1.125rem;
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s var(--ease);
}

.social-links a:hover {
    opacity: 1;
    background: var(--white);
    color: var(--black);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-note {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .project-card,
    .work-item,
    .experience-block {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s var(--ease) forwards;
    }

    .project-card:nth-child(1) { animation-delay: 0.1s; }
    .project-card:nth-child(2) { animation-delay: 0.2s; }
    .project-card:nth-child(3) { animation-delay: 0.3s; }
    .project-card:nth-child(4) { animation-delay: 0.4s; }

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