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

body {
    font-family: Helvetica, 'Segoe UI', system-ui, sans-serif;
    background: #f9f9f9;
    color: #111;
    line-height: 1.6;
}

header {
    padding: 2.5rem 3rem 1.5rem;
}

header h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
    line-height: 1.1;
    margin-left: -5px;
}

header p {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.4rem;
    letter-spacing: 0.3px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px;
    gap: 6px;
}

.masonry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    transition: opacity 0.6s ease, filter 0.25s ease, transform 0.25s ease;
    opacity: 1;
    cursor: pointer;
}

.masonry img.fade-out {
    opacity: 0;
}

.masonry img:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
    position: relative;
    z-index: 1;
}

.grid-section {
    padding: 1rem 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    transition: filter 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.grid img:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
    z-index: 1;
    position: relative;
}

.grid-divider {
    height: 1px;
    background: #ddd;
    margin: 1rem 3rem;
}

.contact-section {
    background: #efefef;
    padding: 3rem;
    margin-top: 1rem;
}

.contact-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: #111;
    outline: none;
    transition: border-color 0.2s ease;
}

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

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-form button {
    align-self: flex-start;
    padding: 0.6rem 1.75rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: #333;
}

footer {
    padding: 1.25rem 3rem;
    font-size: 0.8rem;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #999;
    text-decoration: none;
}

footer a:hover {
    color: #111;
}

iframe {
    min-height: 300px;
}

@media(max-width: 900px) {
    header {
        padding: 2rem 1.5rem 1rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .grid-section {
        padding: 1rem 1.5rem;
    }

    .masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 220px);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-divider {
        margin: 1rem 1.5rem;
    }

    .contact-section {
        padding: 2rem 1.5rem;
    }

    footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

@media(max-width: 560px) {
    header h1 {
        font-size: 1.75rem;
    }

    .masonry {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 220px);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid img {
        height: 130px;
    }
}