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

html {
    height: 100%;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    background: #fff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a1a;
}

.story-progress {
    display: flex;
    gap: 4px;
    height: 2px;
    min-height: 2px;
}

.story-progress .dot {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1px;
    transition: background 0.4s;
}

.story-progress .dot.active {
    background: rgba(0, 0, 0, 0.6);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.5; }
.nav-links a.active { font-weight: 400; }

/* --- FULLSCREEN --- */
.fullscreen-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 1rem;
    padding: 0;
    opacity: 0.3;
    transition: opacity 0.2s;
    line-height: 1;
}

.fullscreen-btn:hover { opacity: 0.8; }

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #1a1a1a;
    margin: 6px 0;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- MAIN --- */
main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

/* --- GALLERY --- */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-items: start;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.gallery-item:hover img { opacity: 0.85; }

/* B&W thumbnails — full color in lightbox */
.gallery-bw .gallery-item img {
    filter: grayscale(100%);
    transition: filter 0.4s, opacity 0.3s;
}

.gallery-bw .gallery-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.lightbox.active { display: flex; }

.lightbox img {
    width: 94vw;
    height: 94vh;
    object-fit: contain;
}

.lightbox-top {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 201;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.lightbox-fullscreen {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
    font-family: inherit;
}

.lightbox-fullscreen:hover { color: #fff; }

.lightbox-close {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 201;
    background: none;
    border: none;
    font-family: inherit;
    padding: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-counter {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    z-index: 201;
}

/* --- PORTFOLIO GRID --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    text-decoration: none;
    color: #fff;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover img { transform: scale(1.03); }

.portfolio-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s;
}

.portfolio-card:hover .overlay { background: rgba(10, 0, 0, 0.4); }

.portfolio-card .overlay h2 {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.portfolio-card .overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- ABOUT / CONTACT LAYOUT --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.contact {
    max-width: 680px;
}

.contact h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.contact > p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item h2 {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.4rem;
}

.contact-item a,
.contact-item p {
    font-size: 1.3rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 300;
}

.contact-item a:hover { opacity: 0.5; }

.contact-note {
    font-size: 0.95rem;
    color: #aaa;
}

/* --- FOOTER --- */
footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    border-top: 1px solid #eee;
}

footer a {
    color: #888;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover { color: #1a1a1a; }

/* --- RESPONSIVE: TABLET --- */
@media (max-width: 1024px) {
    .gallery { gap: 0.6rem; }
    .portfolio-grid { gap: 1rem; }
    nav { padding: 1rem 1.5rem; }
    main { padding: 6.5rem 1.5rem 3rem; }
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 99;
        padding: 0;
        margin: 0;
    }
    .nav-links.open a {
        font-size: 1.6rem;
        color: #1a1a1a;
        font-weight: 300;
    }
    .nav-links.open a.active {
        font-weight: 400;
    }
    .hamburger { display: block; z-index: 100; order: 1; }

    .gallery { grid-template-columns: 1fr; gap: 2px; margin: 0 -1rem; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 1rem; }
    .about-layout { grid-template-columns: 1fr; gap: 2rem; }

    main { padding: 5rem 1rem 2rem; }
    nav { padding: 1rem; }

    .logo { font-size: 1.2rem; }

    .portfolio-card .overlay h2 { font-size: 1.2rem; }
    .portfolio-card .overlay { padding: 1rem; }

    .contact h1 { font-size: 1.8rem; }
    .contact-item a,
    .contact-item p { font-size: 1.1rem; }

    .lightbox img {
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
    }
    .lightbox-nav { font-size: 2rem; padding: 0.8rem; opacity: 0; pointer-events: none; }
    .lightbox-prev { left: 0.3rem; }
    .lightbox-next { right: 0.3rem; }
    .lightbox-top { top: 0.8rem; right: 0.8rem; }
    .lightbox-fullscreen { display: none; }
}

/* --- RESPONSIVE: SMALL PHONE --- */
@media (max-width: 400px) {
    .logo { font-size: 1rem; letter-spacing: 0.05em; }
    main { padding: 4.5rem 0.8rem 2rem; }
    .gallery { margin: 0 -0.8rem; }
    .portfolio-card .overlay h2 { font-size: 1rem; }
}
