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

:root {
    --bg: #FFFFFF;
    --text: #111111;
    --text-light: #666666;
    --border: #e5e5e5;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;
    --spacing-2xl: 180px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font);
    font-weight: 300;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.menu-toggle:hover {
    opacity: 0.6;
}

.menu-line {
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    gap: 6px;
    background: var(--bg);
    z-index: 10;
}

.nav-close .menu-line {
    width: 24px;
    position: relative;
}

.nav-close .menu-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-close .menu-line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-works-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-sublist {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-sublist[hidden] {
    display: none;
}

.nav-list a,
.nav-works-toggle {
    font-size: 32px;
    font-weight: 300;
    background: none;
    transition: opacity 0.2s ease;
}

.nav-sublist a {
    font-size: 20px;
}

.nav-list a:hover,
.nav-works-toggle:hover {
    opacity: 0.5;
}

.nav-meta {
    position: absolute;
    bottom: var(--spacing-lg);
    font-size: 12px;
    color: var(--text-light);
}

main {
    padding-top: var(--spacing-xl);
}

.works {
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 100vh;
    border-bottom: 1px solid var(--border);
}

.works-header {
    margin-bottom: var(--spacing-2xl);
}

.works-header h1 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-2xl);
}

.artwork {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.artwork-image {
    background: #f5f5f5;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.artwork-image-diptych {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
}

.artwork-image-diptych img {
    height: 100%;
    object-fit: cover;
}

.artwork:hover .artwork-image img {
    transform: scale(1.02);
}

.artwork-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.artwork-info h2 {
    font-size: 13px;
    font-weight: 400;
}

.artwork-info p {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-light);
}

.about {
    padding: var(--spacing-2xl) var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.about-content {
    max-width: 480px;
}

.about h2 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.about p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.contact {
    padding: var(--spacing-2xl) var(--spacing-lg);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.contact-content {
    max-width: 480px;
}

.contact h2 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.contact address {
    font-style: normal;
}

.contact address p {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
}

.contact address a {
    transition: opacity 0.2s ease;
}

.contact address a:hover {
    opacity: 0.5;
}

.footer {
    padding: var(--spacing-lg);
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--spacing-xl);
        row-gap: var(--spacing-2xl);
    }
}

@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--spacing-xl);
    }
}

@media (min-width: 1600px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--spacing-2xl);
        row-gap: var(--spacing-2xl);
        max-width: 1600px;
        margin: 0 auto;
    }
}

.artwork-link {
    display: block;
    width: 100%;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 300;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    padding: var(--spacing-lg);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.lightbox.active .lightbox-image,
.lightbox.active .lightbox-panel {
    transform: scale(1);
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    transform: scale(0.95);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.lightbox-panel {
    max-width: 45vw;
    max-height: 70vh;
    object-fit: contain;
    transform: scale(0.95);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.lightbox-info {
    margin-top: var(--spacing-md);
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

@media (max-width: 767px) {
    .lightbox-content {
        max-height: 62vh;
    }

    .lightbox-panel {
        max-width: calc(50vw - var(--spacing-lg));
        max-height: 62vh;
    }
}

.lightbox.active .lightbox-info {
    transform: translateY(0);
    opacity: 1;
}

.lightbox-info h2 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
}

.lightbox-info p {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
}

.full-width-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}
.full-width-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.journey {
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 100vh;
}

.journey-content {
    max-width: 720px;
    margin: 0 auto;
}

.journey h2 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xl);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.timeline-item h3 {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.timeline-item ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.timeline-item li {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-item li .year {
    font-weight: 400;
    color: var(--text);
}
