:root {
    --ink: #1d1d1f;
    --secondary: #6e6e73;
    --page: #f5f5f7;
    --blue: #0071e3;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

.site-header {
    height: 96px;
    padding: 0 max(28px, 5.5vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e7e7ea;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
    font-size: 17px;
}

.logo > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--ink);
    color: white;
    font-size: 25px;
    font-weight: 500;
}

.site-header nav {
    display: flex;
    gap: 28px;
}

.site-header nav a {
    position: relative;
    padding: 7px 0;
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
}

.site-header nav a:hover {
    color: var(--ink);
}

.site-header nav .active {
    color: var(--ink);
    font-weight: 600;
}

.site-header nav .active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

.hero {
    max-width: 1280px;
    min-height: 500px;
    margin: 0 auto;
    padding: 72px max(28px, 5.5vw) 82px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 72px;
    align-items: center;
}

.hero-copy {
    max-width: 490px;
}

.eyebrow {
    margin: 0 0 17px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.065em;
}

.hero-copy > p:not(.eyebrow) {
    margin: 25px 0 30px;
    color: var(--secondary);
    font-size: 19px;
    line-height: 1.43;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 23px;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.button:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.button b {
    font-size: 17px;
}

.hero-image {
    height: 390px;
    border-radius: 28px;
    background:
        url("../img/hero.jpg")
        center / cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.services {
    scroll-margin-top: 96px;
    padding: 64px max(28px, 5.5vw) 88px;
    background: white;
    text-align: center;
    border-top: 1px solid #e8e8eb;
}

.services h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -1.2px;
}

.title-line {
    display: block;
    width: 46px;
    height: 4px;
    margin: 14px auto 37px;
    border-radius: 3px;
    background: var(--blue);
}

.service-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.service-grid article {
    padding: 14px 14px 21px;
    border: 1px solid #e2e2e5;
    border-radius: 22px;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}

.card-image {
    height: 190px;
    margin-bottom: 19px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

.studio {
    background-image:
        url("../img/studio.webp");
}

.workshop {
    background-image:
        url("../img/workshop.jpg");
}

.creative {
    background-image:
        url("../img/creative.jpg");
}

.service-grid h3 {
    margin: 0 7px 7px;
    font-size: 17px;
}

.service-grid p {
    min-height: 39px;
    margin: 0 7px 16px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.4;
}

.service-grid a {
    margin: 0 7px;
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
}

.service-grid a:hover {
    text-decoration: underline;
}

.about {
    scroll-margin-top: 96px;
    max-width: 1180px;
    margin: 55px auto;
    padding: 70px max(40px, 5.5vw);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    background: white;
    border: 1px solid #e2e2e5;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.about > p {
    max-width: 520px;
    margin: 0;
    color: var(--secondary);
    font-size: 18px;
    line-height: 1.6;
}

footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-top: 1px solid #e2e2e5;
    color: var(--secondary);
    font-size: 12px;
}

@media (max-width: 750px) {
    .site-header {
        height: 76px;
        padding: 0 18px;
    }

    .logo {
        gap: 10px;
        font-size: 13px;
    }

    .logo > span {
        width: 35px;
        height: 35px;
        border-radius: 11px;
        font-size: 21px;
    }

    .site-header nav {
        gap: 12px;
    }

    .site-header nav a {
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 39px;
        padding-top: 52px;
    }

    .hero h1 {
        font-size: 47px;
    }

    .hero-copy > p:not(.eyebrow) {
        font-size: 17px;
    }

    .hero-image {
        height: 290px;
        border-radius: 22px;
    }

    .services {
        scroll-margin-top: 76px;
        padding-top: 51px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-image {
        height: 205px;
    }

    .about {
        scroll-margin-top: 76px;
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .about > p {
        font-size: 16px;
    }
}

.service-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
}

.service-overlay-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 35px 40px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e2e5;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    text-align: left;
}

.service-overlay-card .eyebrow {
    margin: 0 0 12px;
}

.service-overlay-card h3 {
    margin: 0 0 18px;
    font-size: 22px;
}

.service-overlay-card p:not(.eyebrow) {
    min-height: auto;
    margin: 0;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.5;
}

.service-overlay-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--secondary);
    font-size: 25px;
    line-height: 32px;
    cursor: pointer;
}

.service-overlay-close:hover {
    color: var(--ink);
}

/* Dropdown menu */

.menu {
    position: relative;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #e2e2e5;
    border-radius: 999px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.menu-button:hover {
    background: #f5f5f7;
}

.menu-icon {
    font-size: 18px;
    line-height: 1;
}

.site-header .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    background: white;
    border: 1px solid #e2e2e5;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.site-header .dropdown-menu.open {
    display: flex;
}

.dropdown-menu a {
    position: static;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
}

.dropdown-menu a:hover {
    background: #f5f5f7;
    color: var(--ink);
}

.dropdown-menu a.active {
    color: var(--ink);
    font-weight: 600;
}

.dropdown-menu a.active::after {
    display: none;
}
