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

html {
    font-size: 10px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #171717;
    color: #f7f7f5;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5002;
}

.logo {
    cursor: pointer;
    display: block;
    width: 302px;
    height: 69px;
    transition: opacity 250ms ease-out, width 0.3s ease, height 0.3s ease;
}



.logo:hover {
    opacity: 0.7;
}

.logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-flow: row wrap;
}

nav a {
    color: #7c4edf;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    font-size: 2em;
}

.desktop-nav a:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    margin-right: 10px;
    color: #7c4edf;
}

nav a span {
    position: relative;
}

nav a span::before {
    position: absolute;
    content: '';
    display: block;
    height: 1px;
    width: 0;
    left: 0;
    bottom: -3px;
    background: transparent;
    transition: width 0.5s ease 0.1s, background-color 0.5s ease 0.1s;
}

nav a:hover {
    filter: brightness(1.5);
}

nav a:hover span::before {
    width: 100%;
    background: #7c4edf;
}

nav a.active span::before {
    width: 100%;
    background: #7c4edf;
    transition: none;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px 80px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page.animating-in {
    animation: pageEnter 500ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page.animating-out {
    animation: pageExit 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageExit {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px);
    }
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    padding-top: 35px;
    padding-bottom: 80px;
}

.project-card {
    text-decoration: none;
    color: #f7f7f5;
    display: block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-thumbnail {
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
    background: #000;
    position: relative;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.0375);
}

.project-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease, visibility 500ms ease;
    pointer-events: none;
}

.project-card:hover .project-thumbnail::after {
    opacity: 1;
    visibility: visible;
}

.project-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 2em;
    font-weight: 400;
    color: #f7f7f5;
    opacity: 0;
    transform: translate(0, 0.5em);
    transition: transform 500ms ease, opacity 500ms ease, visibility 500ms ease;
    visibility: hidden;
    z-index: 2;
}

.project-card:hover .project-title {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

.video-container {
    width: calc(100% - 120px);
    max-width: 1080px;
    margin: 0 auto 80px;
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7f7f5;
}

.video-container.cinematic {
    aspect-ratio: 2.35/1;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.project-details {
    width: calc(100% - 120px);
    max-width: 1080px;
    margin: 0 auto;
}

.project-info {
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.project-info-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-info-item {
    margin-bottom: 0;
}

.project-info-label {
    font-size: 1.6em;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #7c4edf;
    margin-bottom: 8px;
    font-weight: 400;
}

.project-info-value {
    font-size: 2em;
    line-height: 1.5;
    color: #f7f7f5;
}

.project-description {
    font-size: 2em;
    line-height: 1.5;
}

.project-description p {
    margin-bottom: 20px;
}

.project-description a {
    color: #7c4edf;
    text-decoration: underline;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.project-nav-link {
    color: #7c4edf;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
}

.project-nav-link:hover {
    opacity: 0.7;
}

.project-nav-link.hidden {
    visibility: hidden;
}

.scroll-link {
    color: #7c4edf;
    text-decoration: underline;
    cursor: pointer;
}

.scroll-link:hover {
    opacity: 0.7;
}

/* Media Gallery */
.project-media-gallery {
    width: calc(100% - 120px);
    max-width: 1080px;
    margin: 60px auto 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.media-row.single {
    justify-content: center;
}

.media-row.single .media-item img,
.media-row.single .media-item video {
    max-width: 100%;
    width: auto;
}

.media-row.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.media-row.double .media-item img,
.media-row.double .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-row.triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.media-row.triple .media-item img,
.media-row.triple .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.media-item {
    position: relative;
    overflow: hidden;
    cursor: none;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    max-width: 100%;
}

.media-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* General fade-in on scroll animation */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion styles - Timeline design */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-item {
    position: relative;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 1em;
    color: #f7f7f5;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: #7c4edf;
}

.accordion-dot {
    width: 4px;
    height: 4px;
    min-width: 4px;
    min-height: 4px;
    background: #7c4edf;
    border-radius: 50%;
}

.accordion-timecode {
    font-weight: 400;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
}

.accordion-content-inner {
    padding: 0 0 0 0;
    margin-left: 1.5px;
    border-left: 1px solid #7c4edf;
    padding-left: 14px;
    font-size: 0.9em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.accordion-content-inner span {
    display: block;
}

.accordion-item:last-child .accordion-content::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #7c4edf;
    border-radius: 50%;
    margin-left: 0;
    margin-top: 21px;
}

.accordion-role {
    color: #7c4edf;
}

.media-item img,
.media-item video {
    display: block;
    transition: transform 0.3s ease;
}

.media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.media-item:hover::before {
    opacity: 1;
}

/* Custom cursor for media items */
.media-cursor {
    position: fixed;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(-50%, -50%) scale(1);
}

.media-cursor.visible {
    opacity: 1;
}

.media-cursor.bounce {
    transform: translate(-50%, -50%) scale(1.15);
}

.media-cursor svg {
    width: 100%;
    height: 100%;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 23, 23, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: none;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    cursor: none;
}

/* Hide video controls */
.lightbox-content video::-webkit-media-controls {
    display: none !important;
}

.lightbox-content video::-webkit-media-controls-enclosure {
    display: none !important;
}

.lightbox-content video::-webkit-media-controls-panel {
    display: none !important;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

.about-photo {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-title {
    font-size: 3.6em;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 10px;
}

.about-email {
    font-size: 2.2em;
    color: #999999;
    margin-bottom: 30px;
}

.about-email a {
    color: #999999;
    text-decoration: none;
}

.about-content {
    font-size: 2.5em;
    line-height: 1.5;
}

.about-content p {
    margin-bottom: 25px;
}

.about-content a {
    color: #7c4edf;
    text-decoration: underline;
}

footer {
    padding: 40px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4em;
    color: #f7f7f5;
}

.footer-content {
    width: 100%;
    max-width: 1080px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #f7f7f5;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 1;
}

.social-icons svg {
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 68px;
    height: 68px;
    padding: 20px;
    cursor: pointer;
    z-index: 5001;
    user-select: none;
}

.hamburger:hover svg {
    transform: scaleY(0.85);
}

.hamburger.active:hover svg {
    transform: scaleY(1);
}

.hamburger .icon {
    width: 100%;
    height: 100%;
    stroke: #7c4edf;
    fill: none;
    display: block;
    transition: transform 0.2s ease;
}

.hamburger .line {
    stroke: #7c4edf;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.hamburger.active .line.one {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .line.two {
    opacity: 0;
}

.hamburger.active .line.three {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 23, 23, 0.95);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}

.mobile-nav a {
    color: #7c4edf;
    text-decoration: none;
    font-size: 3em;
    cursor: pointer;
}

.mobile-nav a:hover {
    filter: brightness(1.5);
}

@media (max-width: 1024px) {
    .logo {
        width: 250px;
        height: 57px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        width: 200px;
        height: 200px;
    }

    .project-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 200px;
        height: 46px;
    }

    header {
        padding: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-nav-overlay {
        display: block;
    }

    main {
        padding: 30px 0 60px;
    }

    .about-container {
        padding: 40px 30px 80px;
    }

    footer {
        padding: 30px;
        flex-direction: column;
        gap: 20px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .video-container {
        width: calc(100% - 60px);
        margin: 0 auto 40px;
    }

    .project-details {
        width: calc(100% - 60px);
        margin: 0 auto;
    }

    .project-media-gallery {
        width: calc(100% - 60px);
        margin: 60px auto 80px;
    }

    .media-row.double,
    .media-row.triple {
        grid-template-columns: 1fr;
    }

    .about-content {
        font-size: 20px;
    }

    .project-description {
        font-size: 18px;
    }

    .project-info-value {
        font-size: 18px;
    }
}
