:root {
    --bg: #070707;
    --panel: #121212;
    --panel-soft: #191919;
    --text: #f6f3ef;
    --muted: #b8b1a9;
    --line: rgba(246, 243, 239, 0.14);
    --red: #d71920;
    --red-dark: #9f1117;
    --white: #ffffff;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header,
.site-footer,
main {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--red);
    color: var(--white);
    font-size: 0.86rem;
    letter-spacing: 0;
}

.site-nav {
    gap: 8px;
}

.site-nav a {
    min-width: 84px;
    padding: 10px 14px;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    border-color: var(--line);
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: end;
    min-height: calc(100vh - 98px);
    padding: 64px 0 96px;
}

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

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

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(3.25rem, 9vw, 6.75rem);
    line-height: 0.95;
    letter-spacing: 0;
}

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

h3 {
    margin-bottom: 10px;
    font-size: 1.14rem;
    line-height: 1.25;
}

.hero-lede,
.intro-section > p,
.contact-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.18rem;
}

.hero-actions,
.cta-section {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid var(--line);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

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

.button.primary:hover {
    border-color: var(--red-dark);
    background: var(--red-dark);
}

.button.secondary:hover {
    border-color: var(--text);
}

.hero-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 28px;
}

.hero-panel p {
    color: var(--muted);
    font-weight: 800;
}

.hero-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-panel li {
    border-left: 3px solid var(--red);
    background: var(--panel-soft);
    padding: 10px 12px;
    font-weight: 700;
}

.section {
    padding: 96px 0;
    border-top: 1px solid var(--line);
}

.intro-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
}

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

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

.service-grid article {
    min-height: 230px;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 28px;
}

.service-grid p,
.work-item p,
.process-list span,
.site-footer,
.not-found p {
    color: var(--muted);
}

.work-list {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.work-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 28px;
    background: var(--bg);
    padding: 28px 0;
}

.work-item span {
    color: var(--red);
    font-weight: 800;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    gap: 12px;
    border-top: 4px solid var(--red);
    background: var(--panel);
    padding: 24px;
}

.process-list strong {
    font-size: 1.1rem;
}

.cta-section {
    justify-content: space-between;
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.cta-section h2 {
    max-width: 720px;
    margin-bottom: 0;
}

.site-footer {
    padding: 32px 0 44px;
    border-top: 1px solid var(--line);
    font-size: 0.94rem;
}

.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    gap: 64px;
    min-height: calc(100vh - 98px);
    padding: 72px 0 96px;
}

.contact-copy h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.contact-facts {
    display: grid;
    gap: 10px;
    margin-top: 34px;
    color: var(--muted);
    font-weight: 700;
}

.contact-facts span {
    border-left: 3px solid var(--red);
    padding-left: 14px;
}

.contact-form {
    align-self: start;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 28px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #050505;
    color: var(--text);
    font: inherit;
    padding: 13px 14px;
}

input:focus,
textarea:focus {
    border-color: var(--red);
    outline: 2px solid rgba(215, 25, 32, 0.25);
}

textarea {
    resize: vertical;
}

.trap {
    position: absolute;
    left: -9999px;
}

.form-status {
    min-height: 24px;
    margin: 16px 0 0;
    color: var(--muted);
}

.not-found {
    display: grid;
    place-content: center;
    min-height: 100vh;
    max-width: 680px;
    text-align: left;
}

.not-found h1 {
    font-size: clamp(3rem, 8vw, 5.8rem);
}

@media (max-width: 860px) {
    .hero,
    .intro-section,
    .contact-page {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 48px;
    }

    .hero-panel {
        max-width: 520px;
    }

    .service-grid,
    .process-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .site-header,
    .site-footer,
    main {
        width: min(calc(100% - 28px), var(--max));
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1;
    }

    h1 {
        font-size: clamp(2.8rem, 16vw, 4.4rem);
    }

    .contact-copy h1 {
        font-size: clamp(2.7rem, 13vw, 3.6rem);
    }

    .section {
        padding: 72px 0;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cta-section {
        align-items: flex-start;
        flex-direction: column;
    }
}
