:root {
    --bg: #f6f3ee;
    --panel: #fffdf9;
    --panel-alt: #f1eadf;
    --text: #1e1b18;
    --muted: #5e544d;
    --primary: #3b2f2a;
    --accent: #f28a1d;
    --accent-soft: #f7e8db;
    --orange-deep: #f59b1f;
    --orange-dark: #ef7f00;
    --border: rgba(30, 27, 24, 0.08);
    --shadow: 0 18px 40px rgba(30, 27, 24, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", sans-serif;
    color: var(--text);
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(242, 138, 29, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(82, 61, 46, 0.08), transparent 30%),
        linear-gradient(180deg, #f9f7f3 0%, #f4efe8 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.28;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

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

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.brand-hero {
    position: relative;
    margin-top: 0;
    margin-left: -32px;
    margin-right: 10;
    padding: 52px 20px 40px;
    background: url("graphics/header-background.png") center center / cover no-repeat;
    overflow: hidden;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 0 22px 38px rgba(239, 127, 0, 0.18);
}

body {
    overflow-x: hidden;
}

.brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.brand-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin-left: 0;
}

.brand-mark {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    backdrop-filter: blur(2px);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.brand-title {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(2.4rem, 4.35vw, 5.4rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 800;
    font-family: Inter, "Segoe UI", sans-serif;
    text-shadow: 0 6px 18px rgba(44, 22, 0, 0.14);
    flex: 1 1 auto;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    margin-left: auto;
}

.lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-option:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.lang-option.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(35, 25, 18, 0.12);
}

.content {
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 26px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.eyebrow-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.subtitle {
    max-width: 620px;
    font-size: 1.07rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 24px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.social-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 27, 24, 0.18);
}

.hero-card {
    background: linear-gradient(135deg, #fefaf6 0%, #f5eae0 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.hero-card small {
    display: inline-block;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.hero-card h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 10px;
}

.mini-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
}

.mini-list li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
}

.section-header {
    margin: 56px 0 24px;
}

.section-header h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.06em;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

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

.project-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(30, 27, 24, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(30, 27, 24, 0.08);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #efe4d7, #ebf3ff);
}

.project-body {
    padding: 20px 20px 22px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--panel-alt);
    border-radius: 999px;
    padding: 7px 10px;
}

.project-body h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
}

.project-body p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    border-bottom: 2px solid rgba(30, 27, 24, 0.12);
    padding-bottom: 2px;
}

.project-link:hover {
    border-color: rgba(30, 27, 24, 0.4);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-hero {
        border-bottom-left-radius: 32px;
        border-bottom-right-radius: 32px;
    }

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