:root {
    --bg: #f3efe6;
    --bg-alt: #e8e2d4;
    --ink: #1b1916;
    --muted: #6d675c;
    --line: #d4cdc0;
    --accent: #b43c28;
    --accent-dark: #8c2c1e;
    --paper: #fffcf7;
    --max: 1080px;
    --font: "Figtree", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 1.05rem;
}
img { max-width: 100%; }
a { color: inherit; }
.skip {
    position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: #fff; padding: .5rem 1rem; }

.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
.wrap--narrow { max-width: 640px; }

.kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.kicker--light { color: #f3c7bd; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 20ch; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.site-header {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 4.25rem; gap: 1rem;
    position: relative;
}
.logo {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1;
}
.logo:hover { color: var(--accent); }
.nav { display: flex; gap: 1.35rem; align-items: center; }
.nav a { text-decoration: none; font-size: 0.92rem; }
.nav a:hover,
.nav a.is-active { color: var(--accent); }
.nav a.is-active { font-weight: 600; }
.nav__cta {
    background: var(--ink); color: var(--bg) !important;
    padding: 0.45rem 0.9rem; border-radius: 999px;
}
.nav__cta.is-active {
    background: var(--accent);
    color: #fff !important;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 0.4rem 0.75rem; border-radius: 999px; font: inherit; }

.hero { padding: 5.5rem 0 2.25rem; }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 2.5rem;
    align-items: start;
}
.hero__lead { max-width: 38rem; color: var(--muted); font-size: 1.15rem; margin: 1.4rem 0 2rem; }
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero__photo {
    width: 136px;
    height: 136px;
    margin-top: 0.35rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(27, 25, 22, 0.1);
    justify-self: end;
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 22%;
    display: block;
}

.clients {
    padding: 0 0 4.5rem;
}
.clients__title { text-align: center; margin-bottom: 1.8rem; }
.clients__grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem 1.15rem;
}
.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 6.5rem;
    min-width: 11.5rem;
    padding: 1.1rem 1.35rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.clients__item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    box-shadow: 0 10px 24px rgba(27, 25, 22, 0.06);
}
.clients__item img {
    max-height: 4.4rem;
    max-width: 13.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
}
.clients__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.25rem; border-radius: 999px;
    background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 600; font-size: 0.95rem; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--bg); }

.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--accent { background: var(--ink); color: #f6f1e8; }
.section--accent h2 { color: #fff; }
.section__lead { max-width: 40rem; color: var(--muted); margin-bottom: 2rem; }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.offer {
    background: var(--paper); padding: 1.75rem;
    border: 1px solid var(--line); border-radius: 18px;
}
.offer .rich { color: var(--muted); margin: 0.75rem 0 1.1rem; }
.rich ul { margin: 0.6rem 0 0 1.1rem; }
.rich p + p { margin-top: 0.7rem; }
.text-link { font-weight: 600; text-decoration: none; color: var(--accent); }

.work-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.work {
    display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem;
    padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.work:last-child { border-bottom: 1px solid var(--line); }
.work h3 a { text-decoration: none; }
.work h3 a:hover { color: var(--accent); }
.work__period { font-size: 0.88rem; color: var(--muted); padding-top: 0.3rem; }
.work__context { font-size: 0.9rem; color: var(--accent); margin-bottom: 0.4rem; }
.work p { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tags span {
    font-size: 0.75rem; letter-spacing: 0.02em;
    border: 1px solid var(--line); border-radius: 999px;
    padding: 0.15rem 0.55rem; color: var(--muted);
}

.timeline { list-style: none; border-left: 1px solid var(--line); padding-left: 1.4rem; }
.timeline li { position: relative; padding-bottom: 1.8rem; }
.timeline li::before {
    content: ""; position: absolute; left: -1.55rem; top: 0.4rem;
    width: 0.55rem; height: 0.55rem; border-radius: 50%;
    background: var(--accent);
}
.timeline__period { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.timeline h3 span { font-family: var(--font); font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.timeline p { color: var(--muted); }

.split { max-width: 40rem; }
.cta-band { text-align: center; padding: 1rem 0 2rem; }
.cta-band p { color: var(--muted); max-width: 34rem; margin: 0.6rem auto 1.4rem; }

.contact-block { text-align: center; padding: 1rem 0 2rem; }
.contact-block__lead { color: var(--muted); max-width: 34rem; margin: 0.6rem auto 1.6rem; }
.contact-channels {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.2rem;
    margin: 0 0 1.6rem;
}
.page-head .contact-channels { justify-content: flex-start; margin-top: 1.6rem; }
.contact-channels li { display: flex; flex-direction: column; gap: 0.2rem; text-align: left; }
.contact-channels__label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
}
.contact-channels a { text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.contact-channels a:hover { color: var(--accent); }
.contact-channels__fallback { color: var(--muted); font-size: 0.9rem; }

.form { position: relative; }
.form__hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.page-head { padding: 4.5rem 0 1rem; }
.page-head .rich { color: var(--muted); max-width: 40rem; margin-top: 0.8rem; }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form__label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.form input, .form textarea, .form select {
    width: 100%; font: inherit; padding: 0.7rem 0.85rem;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.form textarea { min-height: 8rem; }
.form__error { color: var(--accent); font-size: 0.88rem; margin-top: 0.3rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.8rem; }
.site-footer__brand { font-family: var(--display); font-size: 1.2rem; }
.site-footer__location { color: var(--muted); font-size: 0.92rem; margin: 0.2rem 0 0; }
.site-footer__note { color: var(--muted); font-size: 0.92rem; margin: 0.25rem 0 0.9rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }
.site-footer__links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-footer__links a:hover { color: var(--accent); }

@media (max-width: 800px) {
    .hero__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero__photo { width: 96px; height: 96px; justify-self: start; margin-top: 0; order: -1; }
    .offers { grid-template-columns: 1fr; }
    .work { grid-template-columns: 1fr; gap: 0.25rem; }
    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 4.25rem; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
    .nav__cta { text-align: center; margin-top: 0.4rem; }
}
