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

:root {
    --off-white: #e8e8e8;
    --rose: #d4b5a8;
    --charcoal: #2a2a2a;
    --soft-black: #1a1a1a;
    --accent-red: #800020;
}

html {
    overflow-x: clip;
}

body {
    font-family: 'Bodoni Moda', serif;
    background-color: var(--off-white);
    color: var(--soft-black);
    line-height: 1.7;
    overflow-x: clip;
    letter-spacing: 0.01em;
}

/* Navigation */
nav {
    padding: 0.3rem 0;
    display: flex;
    gap: 0;
    align-items: center;
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

nav a {
    color: var(--soft-black);
    text-decoration: none;
    padding: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -0.35rem;
    color: var(--charcoal);
}

nav a.active {
    color: var(--accent-red);
}

nav a:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 8vw;
    position: relative;
    background: linear-gradient(135deg, var(--off-white) 0%, #e8e8e8 100%);
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-name {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.2s backwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    animation: slideInLeft 1s ease-out 0.4s backwards;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.5;
    animation: slideInLeft 1s ease-out 0.6s backwards;
}

.hero-bio {
    font-size: clamp(1.1rem, 2.0vw, 1.4rem);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.8s backwards;
    letter-spacing: 0.01em;
    font-weight: 300;
}

.currently-working {
    font-size: clamp(1.1rem, 2.0vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 0.8rem;
    animation: slideInLeft 1s ease-out 1s backwards;
    letter-spacing: 0.01em;
}

.currently-working a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
}

.currently-working a:hover {
    text-decoration: underline;
}

.current-studies {
    list-style: none;
    max-width: 750px;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 1.2s backwards;
}

.current-studies li {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.current-studies li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--charcoal);
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    right: 2vw;
    top: 60%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.slideshow-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--off-white);
    display: none;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slideshow .slide.active {
    display: block;
    opacity: 1;
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 0 8vw 8rem 8vw;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:nth-child(even) {
    background-color: var(--off-white);
}

section:nth-child(odd) {
    background-color: var(--off-white);
}

.section-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1rem, 4.5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

/* About Section */
#about {
    width: 100%;
}

.about-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

#about .about {
    max-width: 700px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.9;
    flex: 1.5;
}

#about p {
    margin-bottom: 1.5rem;
}

.about-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.about-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    color: var(--accent-red);
    background: var(--off-white);
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.about-social a:hover {
    color: var(--soft-black);
    border-color: var(--soft-black);
    transform: translateY(-1px);
}

.about-social svg {
    width: 40px;
    height: 40px;
}

/* Work Section */
.work-intro {
    max-width: 600px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 0.1rem;
    letter-spacing: 0.01em;
    font-weight: 300;
    flex: 1;
    position: relative;
    padding-bottom: 0.5rem;
}

.work-note {
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Carousel */
.carousel-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    position: relative;
    padding-top: 0.5rem;
    overflow: hidden;
}

.logo-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12rem;
    padding: 0.5rem 0;
}

.carousel-text {
    flex: 1;
    max-width: 600px;
    padding-top: 0;
    margin-top: 0;
}

.carousel-text h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.carousel-text p {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
}

.carousel-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.carousel-logo-animoca-frens {
    width: 380px;
    height: 350px;
    object-fit: contain;
}

.carousel-btn {
    flex-shrink: 0;
    background: var(--off-white);
    border: 1px solid var(--charcoal);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, background 0.3s ease;
    color: var(--soft-black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    transform: none;
}

.carousel-btn:hover {
    opacity: 1;
    background: var(--charcoal);
    color: var(--off-white);
}

.carousel-btn.next {
    right: 10px;
    z-index: 999;
}

.carousel-btn.prev {
    right: 60px;
    z-index: 999;
}

.work-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
}

.work-left {
    flex: 1.2;
}

.work-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    align-items: center;
    justify-items: center;
}

.logo-item img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.logo-item {
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.about-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-top: 0;
    display: block;
    border-radius: 8px;
    flex: 1;
    margin-left: 80px;
}

.work-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Other Notable Stations Panel */
.other-stations-panel {
    flex: 1;
    max-width: 400px;
    margin-top: -5rem;
}

.other-stations-panel h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: center;
}

.station-grid img {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 130px;
    object-fit: contain;
    justify-self: center;
}

.station-grid .logo-catharsis {
    filter: grayscale(1) brightness(0);
}

.station-grid img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Research overview */
#project .content {
    max-width: 900px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.9;
}

.project-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 500;
    margin-bottom: 0.1rem;
    letter-spacing: 0.03em;
}

.project-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 0;
    line-height: 1.5;
}

.project-text {
    flex: 1.2;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 700px;
    letter-spacing: 0.01em;
    font-weight: 300;
}

.project-text p {
    margin-bottom: 1.5rem;
}

.project-image {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mural-image {
    width: 100%;
    max-width: 550px;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.project-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.supervisors-heading {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.supervisor {
    margin-bottom: 0.3rem;
}

.supervisor-affiliation {
    font-style: italic;
    opacity: 0.8;
}

.supervision-block {
    width: 100%;
    max-width: 550px;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

/* Publications Section */
.publications-list {
    max-width: 900px;
    list-style: none;
}

.publications-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.7;
}

.publications-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--charcoal);
    font-size: 1.5rem;
    line-height: 1;
}

.pub-link {
    color: var(--soft-black);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem 0;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding: 2rem 5vw;
    }

    .hero-name {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-bio,
    .currently-working {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-slideshow {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 280px;
        height: 280px;
        margin: 2rem auto 0;
    }

    section {
        min-height: auto;
        padding: 2rem 5vw 3rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    /* About */
    .about-layout {
        flex-direction: column;
    }

    .about-image {
        margin-left: 0;
        max-width: 100%;
    }

    /* Work Section */
    #work {
        display: flex;
        flex-direction: column;
    }

    #work nav { order: 1; }
    #work .section-title { order: 2; }
    #work .work-top-row { order: 3; display: contents; }
    #work .work-intro { order: 4; }
    #work .work-note { order: 5; }
    #work .carousel-container { order: 6; }
    #work .other-stations-panel {
        order: 7;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .work-top-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .work-intro {
        max-width: 100%;
        padding-bottom: 0;
    }

    .other-stations-panel {
        margin-top: 0;
        max-width: 100%;
    }

    .station-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .station-grid img {
        max-width: 70px;
        max-height: 70px;
    }

    /* Carousel - Logo on top, text below */
    .carousel-container {
        position: relative;
        padding: 0 2.5rem 0 2.5rem;
    }

    .logo-carousel {
        width: 100%;
        overflow: hidden;
    }

    .carousel-slide {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0;
        max-width: 100%;
    }

    .carousel-logo,
    .carousel-logo-animoca-frens {
        width: 140px;
        height: 140px;
        margin: 0 auto;
        display: block;
    }

    .carousel-text {
        max-width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .carousel-text h3 {
        font-size: 1.05rem;
        line-height: 1.2;
        text-align: center;
    }

    .carousel-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
    }

    .carousel-btn {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: var(--off-white);
        border: 1px solid var(--charcoal);
    }

    .carousel-btn.prev {
        left: 0.75rem;
    }

    .carousel-btn.next {
        right: 0.75rem;
    }

    /* Project */
    .project-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .project-text {
        max-width: 100%;
    }

    .project-visual {
        width: 100%;
    }

    .mural-image {
        max-width: 100%;
    }

    .supervision-block {
        text-align: left;
    }
}

@media (max-width: 480px) {
    nav {
        font-size: 0.85rem;
    }

    .hero {
        padding: 1.5rem 4vw;
    }

    .hero-slideshow {
        max-width: 220px;
        height: 220px;
    }

    section {
        padding: 1.5rem 4vw 2.5rem;
    }

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

    .carousel-logo,
    .carousel-logo-animoca-frens {
        width: 120px;
        height: 120px;
    }

    .carousel-text h3 {
        font-size: 1.1rem;
    }

    .carousel-text p {
        font-size: 0.85rem;
    }
}
