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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #789ebf;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.back-link {
    position: absolute;
    top: 40px;
    left: 40px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    z-index: 100;
}

.back-link:hover {
    text-decoration: underline;
}

.artist-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 40px 80px 40px;
}

.artist-name {
    font-size: 2.5rem;
    font-weight: normal;
    text-transform: lowercase;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.artist-bio {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.artist-links {
    margin-top: 0;
}

.artist-links a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-right: 20px;
    text-transform: lowercase;
}

.artist-links a:hover {
    opacity: 0.8;
}

.artist-image {
    width: 100%;
    max-width: 500px;
    margin: 40px 0;
}

.artist-image img,
.artist-image .placeholder-img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-img {
    background-color: #5a7a94;
    aspect-ratio: 4/5;
}

.work-gallery {
    margin-top: 40px;
}

.work-item {
    margin-bottom: 40px;
    max-width: 500px;
}

.work-item img,
.work-item video,
.work-item .placeholder-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.work-item .placeholder-img {
    aspect-ratio: 1/1;
}

.work-description {
    margin-top: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}

.work-title {
    font-style: italic;
}

.artist-statement {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* Desktop hero section - hidden on mobile */
.desktop-hero {
    display: none;
}

/* Desktop content - hidden on mobile */
.desktop-content {
    display: none;
}

/* Desktop bio section - hidden on mobile */
.desktop-bio-section {
    display: none;
}

/* Desktop staggered gallery - hidden on mobile */
.desktop-staggered-gallery {
    display: none;
}

/* Desktop layout */
@media (min-width: 481px) {
    /* Hide mobile content on desktop */
    .mobile-content {
        display: none;
    }

    /* Show desktop hero */
    .desktop-hero {
        display: block;
        position: relative;
        width: 100%;
        height: 120vh;
        overflow: hidden;
    }

    .desktop-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 200px;
        background: linear-gradient(to bottom, transparent, #789ebf);
        pointer-events: none;
        z-index: 6;
    }

    .hero-name {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 8vw;
        font-weight: normal;
        text-transform: lowercase;
        letter-spacing: -0.02em;
        color: white;
        white-space: nowrap;
        z-index: 10;
        transition: opacity 0.3s ease;
        text-align: center;
    }

    .hero-links {
        margin-top: 15px;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        gap: 25px;
        letter-spacing: 0.05em;
    }

    .hero-links a {
        color: white;
        text-decoration: underline;
        text-transform: lowercase;
    }

    .hero-links a:hover {
        opacity: 0.8;
    }

    .hero-name.fade-out {
        opacity: 0;
    }

    /* Floating images layer */
    .floating-img {
        position: absolute;
        z-index: 5;
        will-change: transform;
        filter: blur(15px);
        animation: float 6s ease-in-out infinite;
        transition: filter 0.4s ease;
        cursor: pointer;
    }

    .floating-img:hover {
        filter: blur(0);
    }

    .floating-img:nth-child(1) { animation-delay: 0s; }
    .floating-img:nth-child(2) { animation-delay: 1s; }
    .floating-img:nth-child(3) { animation-delay: 2s; }
    .floating-img:nth-child(4) { animation-delay: 3s; }
    .floating-img:nth-child(5) { animation-delay: 4s; }

    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-25px); }
    }

    .floating-img img,
    .floating-img video,
    .floating-img .placeholder-img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .floating-img .placeholder-img {
        width: 100%;
        height: 100%;
    }

    .float-1 {
        top: 0;
        left: 30%;
        width: 380px;
        height: 380px;
    }

    .float-2 {
        top: 0;
        right: -40px;
        width: 360px;
        height: 360px;
    }

    .float-3 {
        top: calc(50% - 150px);
        left: -60px;
        width: 300px;
        height: 375px;
    }

    .float-4 {
        bottom: 0;
        left: calc(50% - 170px);
        width: 340px;
        height: 340px;
    }

    .float-5 {
        bottom: 15%;
        right: 15%;
        width: 360px;
        height: 360px;
    }

    /* Desktop scrollable content */
    .desktop-content {
        max-width: 1000px;
        margin: 0 auto;
        padding: 80px 60px;
    }

    .desktop-content .artist-header {
        display: flex;
        gap: 60px;
        align-items: flex-start;
        margin-bottom: 60px;
    }

    .desktop-content .artist-image {
        flex-shrink: 0;
        width: 350px;
        max-width: 350px;
        margin: 0;
        order: -1;
    }

    .desktop-content .artist-header-text {
        flex: 1;
        max-width: 500px;
    }

    .desktop-content .artist-name {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .desktop-content .artist-links {
        margin-bottom: 30px;
    }

    .desktop-content .artist-bio {
        margin-bottom: 0;
        line-height: 1.3;
        text-align: justify;
    }

    .desktop-content .work-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        margin-top: 0;
    }

    .desktop-content .work-item {
        max-width: none;
        margin-bottom: 0;
    }

    .desktop-content .work-item img,
    .desktop-content .work-item video,
    .desktop-content .work-item .placeholder-img {
        max-width: none;
        width: 100%;
    }

    .desktop-content .work-description {
        white-space: normal;
        font-size: 0.85rem;
    }

    .desktop-content .artist-statements {
        margin-top: 60px;
        columns: 2;
        column-gap: 60px;
    }

    .desktop-content .artist-statement {
        break-inside: avoid;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    /* Bio section - full screen */
    .desktop-bio-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 80px 10%;
        text-align: center;
        position: relative;
    }

    .bio-label {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        margin-bottom: 40px;
        color: rgba(255, 255, 255, 0.7);
    }

    .bio-large-text {
        font-size: 2vw;
        font-weight: normal;
        line-height: 1.6;
        color: white;
        max-width: 800px;
        font-style: italic;
    }

    .bio-large-text span {
        display: inline;
    }

    /* Gallery Section - 4 columns */
    .desktop-staggered-gallery {
        display: block;
        padding: 80px 5%;
        position: relative;
    }

    .gallery-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
        gap: 30px;
        margin-bottom: 300px;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
    }

    .gallery-item img,
    .gallery-item video,
    .gallery-item .placeholder-img {
        width: 100%;
        height: auto;
        display: block;
    }

    .gallery-item .placeholder-img {
        aspect-ratio: 1/1;
    }

    .gallery-caption {
        margin-top: 15px;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
        text-transform: lowercase;
        line-height: 1.4;
    }

    .gallery-caption .work-title {
        font-style: italic;
    }

    /* Artist statement section */
    .artist-statement-row {
        display: flex;
        gap: 80px;
        align-items: flex-start;
        margin: 0 auto;
        padding-bottom: 20px;
        max-width: 1200px;
        position: relative;
        justify-content: center;
    }

    .artist-statement-image {
        width: 400px;
        flex-shrink: 0;
    }

    .artist-statement-image img,
    .artist-statement-image .placeholder-img {
        width: 100%;
        height: auto;
    }

    .artist-statement-image .placeholder-img {
        aspect-ratio: 4/5;
    }

    .artist-statement-image .staggered-caption {
        margin-top: 20px;
        font-size: 1.2rem;
    }

    .statement-links {
        margin-top: 10px;
        display: flex;
        gap: 15px;
    }

    .statement-links a {
        color: white;
        text-decoration: underline;
        text-transform: lowercase;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }

    .statement-links a:hover {
        opacity: 0.8;
    }

    .artist-statement-text {
        flex: 1;
        text-align: justify;
        max-width: 650px;
        position: relative;
    }

    .artist-statement-text p {
        font-size: 1.15rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 25px;
    }

    .statement-phrase {
        position: absolute;
        left: calc(100% + 40px);
        top: -15px;
        bottom: 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        font-size: 5.8rem;
        font-weight: normal;
        color: white;
        text-transform: lowercase;
        letter-spacing: -0.02em;
        line-height: 1;
    }

    .statement-phrase span {
        display: block;
    }

    .statement-phrase .word-get {
        margin-left: 0;
    }

    .statement-phrase .word-in {
        margin-left: 50px;
    }

    .statement-phrase .word-touch {
        margin-left: 100px;
    }

    .statement-phrase .word-with {
        margin-left: 60px;
    }

    .statement-phrase .word-me {
        margin-left: 0;
    }
}

/* Footer styling */
.site-footer {
    position: fixed;
    bottom: 25px;
    left: 25px;
    right: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    display: flex;
    justify-content: space-between;
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* Mobile layout */
@media (max-width: 480px) {
    .back-link {
        top: 20px;
        left: 20px;
    }

    .artist-content {
        padding: 100px 20px 60px 20px;
    }

    .artist-name {
        font-size: 1.8rem;
    }

    .artist-bio {
        font-size: 0.95rem;
    }

    .work-description {
        white-space: normal;
        word-wrap: break-word;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer {
        position: static;
        padding: 40px 0;
        justify-content: center;
        gap: 5px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}
