:root {
    --sr-primary: #000000;
    --sr-on-primary: #ffffff;
    --sr-surface: #f9f9f9;
    --sr-muted-gray: #999999;
    --sr-border-gray: #e0e0e0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--sr-surface);
    color: var(--sr-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'EB Garamond', serif;
}

/* Navbar */
.navbar-brand-custom {
    background-color: rgba(249, 249, 249, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sr-primary);
}

.navbar-brand-custom .navbar-brand {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--sr-primary);
}

.navbar-brand-custom .nav-link {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sr-muted-gray);
    padding-bottom: 0.25rem;
    transition: color 0.2s ease-in-out;
}

.navbar-brand-custom .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--sr-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-in-out;
}

.navbar-brand-custom .nav-link:hover {
    color: var(--sr-primary);
}

.navbar-brand-custom .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-brand-custom .nav-link.active {
    color: var(--sr-primary);
}

.navbar-brand-custom .nav-link.active::after {
    transform: scaleX(1);
}

.btn-navbar-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--sr-primary);
    color: var(--sr-on-primary);
    border: 1px solid var(--sr-primary);
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn-navbar-cta:hover {
    background-color: var(--sr-surface);
    color: var(--sr-primary);
}

/* Hero */
.hero-section {
    min-height: 90vh;
    background-color: var(--sr-primary);
    color: var(--sr-on-primary);
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--hero-image, none);
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.hero-title {
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 64px;
        line-height: 72px;
        letter-spacing: -0.02em;
    }
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
}

.hero-scroll-link {
    width: 3rem;
    height: 3rem;
    color: var(--sr-on-primary);
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.hero-scroll-link:hover {
    opacity: 1;
}

.hero-scroll-link .material-symbols-outlined {
    animation: hero-bounce 2s ease-in-out infinite;
}

@keyframes hero-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-link .material-symbols-outlined {
        animation: none;
    }
}

/* Sections */
.section-gap {
    padding-top: 96px;
    padding-bottom: 96px;
    max-width: 1200px;
}

@media (min-width: 768px) {
    .section-gap {
        padding-top: 128px;
        padding-bottom: 128px;
    }
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
}

.label-caps {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.text-muted-gray {
    color: var(--sr-muted-gray);
}

/* Service cards */
.service-card {
    background-color: #ffffff;
}

.service-card-img-wrap {
    height: 22rem;
    overflow: hidden;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transition: transform 0.7s ease-in-out;
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

.service-card-title {
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
}

.service-card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #5d5f5f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sr-primary);
    border-bottom: 1px solid var(--sr-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.service-card-link:hover {
    color: var(--sr-muted-gray);
    border-color: var(--sr-muted-gray);
}

/* Gallery: tile grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 20%;
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About */
.about-section {
    background-color: #eeeeee;
    padding-top: 96px;
    padding-bottom: 96px;
}

@media (min-width: 768px) {
    .about-section {
        padding-top: 128px;
        padding-bottom: 128px;
    }
}

.about-lead {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
    color: var(--sr-primary);
}

.about-list {
    border-top: 1px solid var(--sr-border-gray);
    padding-top: 1.5rem;
}

.about-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.about-list li + li {
    margin-top: 1rem;
}

.about-img-wrap {
    background-color: #ffffff;
    padding: 0.5rem;
}

.about-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    color: var(--sr-primary);
    border-bottom: 1px solid var(--sr-border-gray);
    padding-bottom: 1rem;
    transition: opacity 0.2s ease-in-out;
}

.contact-item:hover {
    opacity: 0.7;
    color: var(--sr-primary);
}

.contact-item .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--sr-muted-gray);
}

.contact-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
    color: var(--sr-primary);
}

.contact-map-wrap {
    position: relative;
    overflow: hidden;
    background-color: #eeeeee;
    height: 100%;
    min-height: 400px;
}

@media (min-width: 768px) {
    .contact-map-wrap {
        height: 500px;
    }
}

.contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Footer */
.site-footer {
    background-color: var(--sr-primary);
    color: var(--sr-on-primary);
}

.footer-brand {
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-link:hover {
    color: var(--sr-on-primary);
    font-style: italic;
}

.footer-credit-bar {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-credit-link:hover {
    color: var(--sr-on-primary);
}

.footer-credit-icon {
    width: 16px;
    height: auto;
}

.footer-credit-name {
    font-weight: 700;
}
