:root {
    color-scheme: light;
    --ink: #1b2330;
    --muted: #596579;
    --line: #d8dfeb;
    --paper: #f7f3ed;
    --white: #ffffff;
    --accent: #197278;
    --accent-dark: #0d4f55;
    --gold: #f0b84a;
    --rose: #c4455c;
    --shadow: 0 20px 60px rgba(27, 35, 48, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(247, 243, 237, 0.9);
    border-bottom: 1px solid rgba(216, 223, 235, 0.8);
    backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.contact-lines {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: var(--gold);
}

.site-nav {
    gap: clamp(14px, 3vw, 34px);
    color: var(--muted);
    font-weight: 700;
}

.site-nav a:hover {
    color: var(--accent-dark);
}

.hero {
    min-height: 74vh;
    display: grid;
    align-items: center;
    padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px);
    background:
        linear-gradient(90deg, rgba(27, 35, 48, 0.92) 0%, rgba(27, 35, 48, 0.76) 42%, rgba(27, 35, 48, 0.08) 100%),
        url("../images/hero-web-studio.png") center / cover no-repeat;
}

.hero-copy {
    max-width: 680px;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 11ch;
    margin-bottom: 22px;
    font-size: clamp(3rem, 8vw, 6.3rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.hero p:not(.eyebrow) {
    max-width: 570px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    background: var(--accent);
    color: var(--white);
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.ghost {
    border-color: rgba(255, 255, 255, 0.56);
    color: var(--white);
}

.section {
    padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.intro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding-top: 0;
    background: var(--ink);
}

.intro div {
    padding: 28px;
    background: var(--white);
}

.intro strong,
.intro span {
    display: block;
}

.intro strong {
    margin-bottom: 6px;
    color: var(--accent-dark);
}

.intro span,
.muted,
.service-card p,
.project-list p {
    color: var(--muted);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.work-band {
    background: #e8eef1;
}

.project-list {
    display: grid;
    gap: 12px;
}

.project-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(89, 101, 121, 0.22);
}

.project-list span {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
}

.project-list p {
    margin-bottom: 0;
    text-align: right;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 6vw, 70px);
    align-items: start;
}

.contact-lines {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    color: var(--accent-dark);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(25, 114, 120, 0.16);
}

.notice {
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 700;
}

.notice p {
    margin-bottom: 4px;
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice.success {
    background: rgba(25, 114, 120, 0.12);
    color: var(--accent-dark);
}

.notice.error {
    background: rgba(196, 69, 92, 0.12);
    color: #8a2033;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px clamp(18px, 4vw, 56px);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
}

.site-footer p {
    margin-bottom: 0;
}

.site-footer a {
    color: var(--gold);
    font-weight: 800;
}

@media (max-width: 820px) {
    .site-header,
    .site-footer,
    .project-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .intro,
    .service-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 68vh;
        background:
            linear-gradient(180deg, rgba(27, 35, 48, 0.94) 0%, rgba(27, 35, 48, 0.7) 62%, rgba(27, 35, 48, 0.18) 100%),
            url("../images/hero-web-studio.png") center / cover no-repeat;
    }

    h1 {
        max-width: 9ch;
        font-size: clamp(2.8rem, 16vw, 4.7rem);
    }

    .project-list p {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .button {
        width: 100%;
    }
}
