@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500&display=swap');

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #d4ccc0;
    color: #2a2724;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(212, 204, 192, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #c4bbb0;
    z-index: 100;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    color: #2a2724;
    opacity: .85;
    cursor: pointer;
    transition: opacity .2s ease;
    line-height: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
}

.home-mark:hover {
    opacity: 1;
}

.home-mark:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo em {
    font-style: italic;
    font-weight: 400;
    opacity: .85;
    margin-left: 4px;
}

        nav {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px 0;
        }

        nav a,
        .portfolio-toggle {
            color: #2a2724;
            text-decoration: none;
            font-size: 13px;
            margin-left: 34px;
            opacity: .55;
            letter-spacing: .8px;
            text-transform: uppercase;
            cursor: pointer;
            transition: opacity .3s;
            font-family: inherit;
        }

        nav a:hover,
        .portfolio-toggle:hover {
            opacity: 1
        }

        .portfolio-dropdown {
            min-width: 0;
        }

        nav > .portfolio-dropdown + a {
            margin-left: 24px;
            padding-left: 24px;
            border-left: 1px solid #b5ada2;
        }

        nav > .portfolio-dropdown + a + a {
            margin-left: 24px;
        }

        .portfolio-toggle {
            padding: 0;
            border: 0;
            background: transparent;
        }

        .portfolio-toggle:focus-visible,
        nav a:focus-visible {
            outline: 2px solid currentColor;
            outline-offset: 4px;
        }

        .portfolio-menu {
            list-style: none;
            padding: 6px 0 0;
        }

        .portfolio-menu a {
            display: inline-block;
            margin: 0;
            padding: 8px 0;
            transition: opacity .2s ease, transform .2s ease;
        }

        .portfolio-menu a:hover {
            transform: translateX(3px);
        }

        main {
            max-width: 920px;
            margin: 0 auto;
            padding: 110px 24px 80px
        }

        .section {
            display: none
        }

        .section.active {
            display: block
        }

        .home {
            text-align: center;
            padding: 20px 0 30px
        }

        .home .big {
            font-family: 'Cormorant Garamond', serif;
            font-size: 42px;
            font-weight: 400;
            letter-spacing: -1px;
            margin-bottom: 60px;
            line-height: 1.1
        }

        .home .phrase {
            font-family: 'Cormorant Garamond', serif;
            font-size: 19px;
            max-width: 460px;
            margin: 0 auto 50px;
            line-height: 1.55;
            opacity: .9
        }

        .home .bottom {
            margin-top: 70px
        }

        .home .name {
            font-size: 13px;
            letter-spacing: 3px;
            text-transform: uppercase;
            opacity: .55;
            margin-bottom: 6px
        }

        .home .sub {
            font-size: 12px;
            color: #5e5953;
            letter-spacing: 1.5px;
            text-transform: uppercase
        }

        .home .portfolio-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 38px auto 0;
            padding: 11px 24px;
            border: 1px solid #2a2724;
            border-radius: 5px;
            color: #fff;
            background: #2a2724;
            text-decoration: none;
            font-size: 12px;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            transition: color .25s ease, background-color .25s ease, border-color .25s ease;
        }

        .home .portfolio-link:hover,
        .home .portfolio-link:focus-visible {
            color: #2a2724;
            background: transparent;
            border-color: #2a2724;
        }

        .section-title {
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: #6b655e;
            margin-bottom: 36px;
            text-align: center
        }

        .back-link,
        .back-to-projects {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 44px;
            margin-bottom: 14px;
            padding: 10px 14px;
            color: #6b655e;
            font-size: 12px;
            letter-spacing: .5px;
            text-decoration: none;
            transition: color .2s ease;
        }

        .back-link span,
        .back-to-projects span {
            font-size: 17px;
            line-height: 1;
            transition: transform .2s ease;
        }

        .back-link:hover,
        .back-link:focus-visible,
        .back-to-projects:hover,
        .back-to-projects:focus-visible {
            color: #2a2724;
        }

        .back-link:hover span,
        .back-link:focus-visible span,
        .back-to-projects:hover span,
        .back-to-projects:focus-visible span {
            transform: translateX(-3px);
        }

        .project-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
            gap: 16px;
        }

        .project-item {
            display: flex;
            min-height: 150px;
            align-items: flex-end;
            justify-content: space-between;
            gap: 16px;
            padding: 22px;
            border: 1px solid #bfb6aa;
            background: rgba(255, 255, 255, .12);
            font-family: 'Cormorant Garamond', serif;
            font-size: 25px;
            color: #2a2724;
            cursor: pointer;
            text-decoration: none;
            transition: background .25s ease, border-color .25s ease, transform .25s ease;
        }

        .project-item:hover {
            background: rgba(255, 255, 255, .3);
            border-color: #8f877d;
            transform: translateY(-3px);
        }

        .project-name {
            line-height: 1.15;
        }

        .project-arrow {
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 16px;
            transition: transform .25s ease;
        }

        .project-item:hover .project-arrow,
        .project-item:focus-visible .project-arrow {
            transform: translate(3px, -3px);
        }

        .project-item:focus-visible {
            outline: 2px solid currentColor;
            outline-offset: 3px;
        }

        .project-gallery {
            display: none
        }

        .project-gallery.active {
            display: block
        }

        .back {
            display: inline-block;
            margin-bottom: 28px;
            font-size: 13px;
            color: #6b655e;
            cursor: pointer;
            letter-spacing: .5px
        }

        .back:hover {
            color: #2a2724
        }

        .slider-wrap {
            position: relative
        }

        .slider {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            gap: 28px;
            padding: 10px 0 30px;
            scrollbar-width: none
        }

        .slider::-webkit-scrollbar {
            display: none
        }

        .slide {
            flex: 0 0 auto;
            width: min(82vw, 680px);
                    scroll-snap-align: center;
                    /* center slide content so images don't stretch full height */
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                /* Moments gallery: show one image at a time and keep it vertically bounded */
                #the-moments-slider {
                    gap: 0;
                    padding-bottom: 16px;
                    overflow: hidden;
                }

                #the-moments-slider .slide {
                    flex: 0 0 100%;
                    width: 100%;
                    min-width: 100%;
                    max-width: 100%;
                    scroll-snap-align: start;
                    display: flex;
                                    flex-direction: column; /* stack image and caption vertically */
                                    align-items: center;
                                    justify-content: center;
                                    gap: 18px;
                                    padding: 18px 0;
                                }

                /* constrain images so they never exceed the viewport height and avoid vertical scrolling */
                .slide img {
                    max-height: 70vh;
                    width: auto;
                    max-width: 100%;
                    display: block;
                    cursor: pointer;
                    border-radius: 0;
                    object-fit: contain;
                }

                /* For other galleries keep a sane maximum height as well */
                .slider .slide img {
                    max-height: 60vh;
                }

        .slide .caption {
            font-size: 13px;
            color: #5e5953;
                    margin-top: 0;
            letter-spacing: .3px;
            line-height: 1.5;
                    text-align: center;
                    padding: 0 8px;
                    max-width: 760px;
                }

        .arrow {
            position: absolute;
                    top: 50%;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
                    border: 1px solid rgba(42, 39, 36, .2);
                    background: rgba(212, 204, 192, .88);
            color: #2a2724;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .25s;
                    z-index: 10;
            padding: 0;
            border-radius: 50%;
                    backdrop-filter: blur(3px);
                    box-shadow: 0 2px 8px rgba(42, 39, 36, .08);
                }

                .arrow:hover {
                    background: rgba(42, 39, 36, .94);
                    color: #d4ccc0;
                    border-color: rgba(42, 39, 36, .94)
                }

                .arrow.left {
                    left: -64px;
                }

                .arrow.right {
                    right: -64px;
                }

        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(25, 22, 18, .95);
            z-index: 1000;
            justify-content: center;
            align-items: center;
           cursor: zoom-out;
           padding: 30px;
                }

                .lightbox.active {
           display: flex;
                }

                .lightbox-inner {
           position: relative;
           max-width: 96vw;
           max-height: 96vh;
           display: flex;
           flex-direction: column;
           align-items: center;
           justify-content: center;
           gap: 12px;
                }

                .lightbox img {
           max-width: 100%;
           max-height: 86vh;
           object-fit: contain;
           box-shadow: 0 12px 40px rgba(0,0,0,0.6);
           border-radius: 2px;
                }

                .lightbox-close {
           position: absolute;
           top: -10px;
           right: -10px;
           background: rgba(255,255,255,0.95);
           border: none;
           width: 34px;
           height: 34px;
           border-radius: 50%;
           font-size: 18px;
           cursor: pointer;
           box-shadow: 0 6px 20px rgba(0,0,0,0.35);
                }

                .lightbox-caption {
           color: #dcd6cf;
           font-size: 14px;
           max-width: 920px;
           text-align: center;
           opacity: 0.95;
                }

        .content {
            max-width: 440px;
            margin: 0 auto;
            text-align: center
        }

        .projects-content {
            max-width: none;
            text-align: left;
        }

        .content p {
            font-size: 15px;
            color: #3d3934;
            margin-bottom: 18px;
            line-height: 1.7
        }

        .content .detail {
            font-size: 13.5px;
            color: #5e5953;
            margin-top: 32px;
            line-height: 1.9
        }

        .content a {
            color: #2a2724;
            text-decoration: none;
            border-bottom: 1px solid #b5ada2;
            font-size: 14.5px;
            margin: 0 10px;
            transition: border-color .3s
        }

        .content a:hover {
            border-color: #2a2724
        }

        footer {
            text-align: center;
            padding: 50px 28px 40px;
            font-size: 12px;
            color: #7a746c;
            border-top: 1px solid #c4bbb0;
            margin-top: 70px;
            letter-spacing: .8px
        }

        @media (min-width:701px) and (max-width:800px) {
            .arrow.left {
                left: 8px;
            }

            .arrow.right {
                right: 8px;
            }
        }

        @media(max-width:700px) {
            header {
                position: sticky;
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                padding: 10px 16px;
            }

            .logo-wrap {
                width: 100%;
                min-width: 0;
                gap: 8px;
            }

            .home-mark {
                flex-shrink: 0;
                padding: 0 8px;
                font-size: 12px;
                opacity: .95;
            }

            .logo {
                min-width: 0;
                font-size: 17px;
                white-space: nowrap;
            }

            nav {
                width: 100%;
                flex-wrap: wrap;
                align-items: flex-start;
                justify-content: flex-start;
                gap: 0 14px;
            }

            nav a,
            .portfolio-toggle {
                display: inline-flex;
                align-items: center;
                margin: 0;
                font-size: 13px;
                min-height: 44px;
                opacity: .75;
            }

            .portfolio-dropdown {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                flex: 0 0 auto;
            }

            nav > .portfolio-dropdown + a {
                margin-left: 0;
                padding-left: 14px;
            }

            nav > .portfolio-dropdown + a + a {
                margin-left: 0;
            }

            .portfolio-menu {
                padding: 0 0 4px 8px;
            }

            .portfolio-menu a {
                min-height: 44px;
                padding: 10px 0;
            }

            main {
                padding: 32px 16px 52px;
            }

            .section-title {
                margin-bottom: 28px;
                font-size: 12px;
                color: #5e5953;
            }

            .home .big {
                font-size: 34px;
                margin-bottom: 32px;
            }

            .home {
                padding: 8px 0 24px;
            }

            .home .phrase {
                font-size: 18px;
                margin-bottom: 36px;
                opacity: 1;
            }

            .home .bottom {
                margin-top: 44px;
            }

            .home .name {
                font-size: 14px;
                opacity: .75;
            }

            .home .sub {
                font-size: 13px;
                color: #4f4a45;
            }

            .home .portfolio-link {
                margin-top: 24px;
                padding: 12px 22px;
                font-size: 12px;
                letter-spacing: 1px;
            }

            .back-link,
            .back-to-projects {
                min-height: 44px;
                margin: 0 0 14px -8px;
                padding: 4px 8px;
                gap: 8px;
                font-size: 13px;
                color: #3d3934;
            }

            .back-link span,
            .back-to-projects span {
                position: relative;
                top: -1px;
                font-size: 19px;
                font-weight: 500;
            }

            .project-item {
                min-height: 120px;
                padding: 18px;
                font-size: 22px;
            }

            .slider {
                gap: 16px;
            }

            #the-moments-slider .slide {
                min-width: 100%;
                padding: 12px 0;
                gap: 14px;
            }

            #the-moments-slider .slide img,
            .slider .slide img {
                max-height: 52vh;
            }

            .slide .caption {
                font-size: 13px;
                color: #4f4a45;
                padding: 0 26px;
            }

            .arrow {
                width: 28px;
                height: 28px;
                font-size: 18px;
                top: 42%;
            }

            .arrow.left {
                left: 4px;
            }

            .arrow.right {
                right: 4px;
            }

            .slide {
                width: calc(100vw - 48px);
            }

            footer {
                margin-top: 44px;
                padding: 32px 18px 28px;
                font-size: 13px;
                color: #625c55;
            }
        }