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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: #fff;
}

.nav-logo {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-size: 13px;
    letter-spacing: 0.02em;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: #1a1a1a;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: #1a1a1a;
    left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 120px 40px 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-weight: 300;
    font-size: clamp(32px, 6vw, 64px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
    margin-left: -0.04em;
}

.hero p {
    font-size: 15px;
    opacity: 0.5;
    letter-spacing: 0.1em;
    margin-left: 0.25em;
}

.hero-portfolio {
    display: block;
}

.hero-portfolio img {
    width: 100%;
    max-width: 500px;
    box-shadow: none;
    border: none;
    outline: none;
}

.hero-portfolio:hover img {
    opacity: 0.8;
}

/* Work Grid */
.work {
    padding: 0 40px 120px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-item {
    display: block;
    position: relative;
    overflow: hidden;
}

.work-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-item img.pos-top {
    object-position: center top;
}

.work-item img.pos-bottom {
    object-position: center bottom;
}

.work-item:hover img {
    transform: scale(1.02);
}

.work-info {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    font-size: 13px;
    gap: 2px;
}

.work-title {
    font-weight: 300;
    opacity: 0.5;
}

.work-category {
    opacity: 0.5;
}


/* About */
.about {
    padding: 120px 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    margin-bottom: 24px;
    max-width: 480px;
}

.about-text p:last-child {
    margin-bottom: 0;
    opacity: 0.6;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: 65% center;
}

/* Services */
.services {
    padding: 80px 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    list-style: none;
    font-size: 13px;
    opacity: 0.5;
}

/* Contact */
.contact {
    padding: 120px 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact h2 {
    font-weight: 300;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-content p {
    margin-left: 0.3em;
}

.contact-content a {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.contact-content a:hover {
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    font-family: inherit;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1a1a1a;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0,0,0,0.35);
}

.contact-form textarea {
    resize: none;
    min-height: 100px;
}

.contact-form button {
    align-self: flex-start;
    padding: 12px 32px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #fff;
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
}

.contact-form button:hover {
    opacity: 0.8;
}

.form-success {
    max-width: 400px;
}

.form-success p {
    margin-bottom: 8px;
    opacity: 0.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.98);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 40px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    z-index: 1001;
}

.modal-close:hover {
    opacity: 1;
}

/* Book Viewer */
.book-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    height: calc(100% - 60px);
    padding: 40px;
    overflow: hidden;
}

.book-spread {
    display: flex;
    gap: 4px;
    max-height: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

.book-spread img {
    max-height: 75vh;
    max-width: 45vw;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.book-spread.single-page img {
    max-width: 50vw;
}

.book-nav {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
    padding: 20px;
    flex-shrink: 0;
}

.book-nav:hover {
    opacity: 1;
}

.book-nav:disabled {
    opacity: 0.1;
    cursor: default;
}

.book-counter {
    font-size: 12px;
    opacity: 0.4;
    letter-spacing: 0.1em;
}

/* Footer */
.footer {
    padding: 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer p {
    font-size: 12px;
    opacity: 0.4;
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        padding: 20px 24px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

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

    .nav-menu a {
        font-size: 24px;
        opacity: 1;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 100px 24px 60px;
        min-height: auto;
        gap: 48px;
        text-align: center;
    }

    .hero-portfolio img {
        max-width: 300px;
        margin: 0 auto;
    }

    .work {
        padding: 0 24px 80px;
    }

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

    .about {
        padding: 80px 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .services {
        padding: 60px 24px;
    }

    .services-list {
        flex-direction: column;
        gap: 8px;
    }

    .contact {
        padding: 80px 24px;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form {
        max-width: 100%;
    }

    .footer {
        padding: 32px 24px;
    }
}
