﻿:root {
    --bg: #0b0b0d;
    --bg-soft: #141417;
    --surface: #19191d;
    --surface-light: #222227;
    --text: #f5f5f5;
    --text-soft: #b8b8bf;
    --line: #303036;
    --red: #d71920;
    --blue: #0067b1;
    --max-width: 1180px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 11, 13, 0.96);
    border-bottom: 1px solid var(--line);
}

.header-content {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.brand-name {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 1.9rem;
    font-style: italic;
    letter-spacing: 0.03em;
    line-height: 1;
}

.brand-name::first-letter {
    color: var(--red);
}

.brand-studios {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(215, 25, 32, 0.10),
            transparent 38%
        ),
        linear-gradient(
            300deg,
            rgba(0, 103, 177, 0.12),
            transparent 40%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: 90px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.20em;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(3.4rem, 8vw, 7.5rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
    line-height: 0.94;
    text-transform: uppercase;
}

.hero h1::after {
    content: "";
    display: block;
    width: 120px;
    height: 6px;
    margin-top: 28px;
    background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50%);
}

.hero-text {
    max-width: 690px;
    margin: 30px 0 0;
    color: var(--text-soft);
    font-size: 1.15rem;
}

/* SECTIONS */

.projects-section,
.contact-section {
    padding-block: 100px;
}

.projects-section {
    background: var(--bg-soft);
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2,
.contact-content h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.project-image {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: #ffffff;
}

.project-image img {
    width: 100%;
    max-width: 470px;
    max-height: 310px;
    object-fit: contain;
}

.project-content {
    padding: 28px;
}

.project-content h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.project-content p {
    margin: 0;
    color: var(--text-soft);
}

/* CONTACT */

.contact-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-content {
    text-align: center;
}

.contact-email {
    display: inline-block;
    margin-top: 28px;
    color: var(--text);
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 700;
    text-underline-offset: 6px;
    overflow-wrap: anywhere;
}

/* PRIVACY */

.legal-page {
    padding-block: 80px 100px;
}

.legal-content {
    max-width: 850px;
}

.legal-content > h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    line-height: 1;
}

.legal-update {
    margin: 18px 0 55px;
    color: var(--text-soft);
}

.legal-content section {
    margin-top: 42px;
}

.legal-content section h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.legal-content section p {
    color: var(--text-soft);
}

.legal-content section a {
    color: var(--text);
}

.back-link {
    display: inline-block;
    margin-top: 55px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    text-decoration: underline;
}

/* FOOTER */

.site-footer {
    padding-block: 32px;
    background: #070708;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    text-underline-offset: 4px;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header-content {
        min-height: 70px;
    }

    .brand-name {
        font-size: 1.55rem;
    }

    .brand-studios {
        font-size: 0.72rem;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.82rem;
    }

    .hero-content {
        min-height: 450px;
        padding-block: 70px;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .projects-section,
    .contact-section {
        padding-block: 70px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 280px;
        padding: 25px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .main-nav a:not(:last-child) {
        display: none;
    }

    .hero-text {
        font-size: 1rem;
    }
}
