:root {
    --bg: #f4f2ed;
    --paper: #ffffff;
    --ink: #1a1a1a;
    --muted: #5c5c5c;
    --subtle: #999;
    --line: rgba(0, 0, 0, 0.09);
    --accent: #2d5a3d;
    --accent-hover: #1e3d2a;
    --surface: #ebe9e3;
    --mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

/* ---- NAV ---- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background 0.3s, padding 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(244, 242, 237, 0.9);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
    padding: 14px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--ink);
}

/* ---- HERO ---- */

#hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 160px 24px 120px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: end;
}

#hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hero-sub {
    padding-bottom: 6px;
}

.hero-sub p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 420px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 13px 26px;
    background: var(--ink);
    color: var(--bg);
    border: 1px solid var(--ink);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-text {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--ink);
}

/* ---- SECTIONS ---- */

section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 14px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

/* ---- SHOWCASE ---- */

.showcase {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
}

.showcase-video {
    border-radius: 8px;
    overflow: hidden;
    background: var(--ink);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.showcase-video video {
    display: block;
    width: 100%;
    height: auto;
}

.showcase-info h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.showcase-info p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.showcase-info .showcase-detail {
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.showcase-info .btn-primary {
    margin-top: 4px;
}

/* ---- ABOUT ---- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-text p:first-child {
    color: var(--ink);
    font-size: 1.15rem;
}

.about-sidebar {
    padding-top: 4px;
}

.sidebar-block {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.sidebar-block:first-child {
    padding-top: 0;
}

.sidebar-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.sidebar-value {
    font-size: 0.95rem;
    color: var(--ink);
}

/* ---- CONTACT ---- */

#contact {
    padding-bottom: 120px;
}

.contact-inner {
    max-width: 620px;
}

.contact-header {
    margin-bottom: 36px;
}

.contact-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

.contact-header p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 500px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.08);
}

.btn-submit {
    margin-top: 4px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.is-sent {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-submit.is-error {
    background: #8b3a2a;
    border-color: #8b3a2a;
}

.form-status {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--muted);
    min-height: 22px;
}

/* ---- FOOTER ---- */

footer {
    border-top: 1px solid var(--line);
    padding: 28px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--subtle);
}

/* ---- SCROLL REVEAL ---- */

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 860px) {
    #hero {
        padding: 130px 24px 80px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-inner h1 {
        max-width: 500px;
    }

    .hero-sub p {
        max-width: 100%;
    }

    .showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 32px;
    }
}

@media (max-width: 540px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 20px;
    }

    #hero {
        padding: 120px 16px 60px;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 60px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 4px;
    }
}
