:root {
    --bg: #f4f4f2;
    --surface: #ffffff;
    --ink: #141414;
    --text: #2a2a2a;
    --muted: #666666;
    --line: #d9d9d5;
    --line-strong: #bcbcb8;
    --accent: #1f2937;
    --radius: 4px;
    --space: 1220px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --h-utility: 38px;
    --h-main: 76px;
    --h-total: calc(var(--h-utility) + var(--h-main));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding-top: var(--h-total);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(100%, var(--space));
    margin-inline: auto;
    padding-inline: 28px;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -100px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--ink);
    z-index: 10001;
}

.skip-link:focus {
    top: 8px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 9000;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 244, 242, 0.95);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: rgba(244, 244, 242, 0.98);
}

.utility-bar {
    height: var(--h-utility);
    border-bottom: 1px solid var(--line);
}

.utility-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch a {
    opacity: 0.6;
}

.lang-switch a.active {
    opacity: 1;
    color: var(--ink);
}

.nav-row {
    height: var(--h-main);
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-wrap {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo {
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--ink);
}

.logo-sub {
    margin-top: 3px;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    gap: 22px;
    align-items: center;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    padding: 8px 0;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4d4d4d;
    font-weight: 700;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    padding: 12px 18px;
    background: transparent;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
    background: var(--ink);
    color: #fff;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    background: #2d2d2d;
    border-color: #2d2d2d;
}

.desktop-cta {
    margin-left: 12px;
}

.hamburger {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: var(--radius);
    cursor: pointer;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
    transition: all 0.2s var(--ease);
    content: "";
}

.hamburger span::before {
    top: -5px;
    left: 0;
    position: absolute;
}

.hamburger span::after {
    top: 5px;
    left: 0;
    position: absolute;
}

.hamburger.open span {
    background: transparent;
}

.hamburger.open span::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger.open span::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: var(--h-total) 0 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    display: grid;
    gap: 10px;
}

.mobile-nav a {
    display: block;
    border: 1px solid var(--line);
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.mobile-nav a.active {
    border-color: var(--ink);
}

.mobile-cta {
    margin-top: 12px;
    width: 100%;
}

.page-main {
    min-height: calc(100vh - 220px);
}

.hero {
    border-bottom: 1px solid var(--line);
    padding: 72px 0 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.hero p {
    margin: 16px 0 0;
    max-width: 54ch;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section {
    padding: 80px 0;
}

.section-muted {
    background: #ecece8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

.section-head p {
    margin-top: 12px;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 20px;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 22px;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    margin-bottom: 14px;
}

.timeline {
    border: 1px solid var(--line);
    background: #fff;
}

.timeline li {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
    border-bottom: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.project-card {
    position: relative;
    border: 1px solid var(--line);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.project-card:hover img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 14px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.project-overlay small {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cta-band {
    padding: 64px 0;
    background: #111;
    color: #fff;
}

.cta-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.cta-wrap h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3.6vw, 2.8rem);
    max-width: 18ch;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.contact-panel {
    border: 1px solid var(--line);
    background: #fff;
    padding: 22px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-form label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    padding: 11px 12px;
    font: inherit;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--muted);
}

.form-status {
    min-height: 24px;
    font-size: 0.86rem;
    color: #0f5132;
}

.site-footer {
    padding: 56px 0 26px;
    border-top: 1px solid var(--line);
    background: #efefeb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 18px;
}

.site-footer h3,
.site-footer h4 {
    margin-bottom: 10px;
}

.site-footer p {
    color: var(--muted);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.newsletter-form input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
}

.footer-links {
    display: grid;
    gap: 6px;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--muted);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.to-top-btn {
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: var(--radius);
    padding: 6px 10px;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    :root {
        --h-main: 68px;
    }

    .main-nav,
    .desktop-cta {
        display: none;
    }

    .hamburger {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .hero-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --h-utility: 34px;
    }

    .container {
        padding-inline: 16px;
    }

    .utility-inner {
        font-size: 0.62rem;
        letter-spacing: 0.05em;
    }

    .utility-left span {
        display: none;
    }

    .cards-grid,
    .stats-grid,
    .project-grid,
    .field-row {
        grid-template-columns: 1fr;
    }

    .cta-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form,
    .footer-bottom,
    .legal-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
