
    :root {
        --bg: #f4efe8;
        --surface: rgba(255, 255, 255, 0.78);
        --surface-strong: #fffaf5;
        --text: #1a1714;
        --muted: #62584f;
        --line: rgba(26, 23, 20, 0.1);
        --accent: #d65a31;
        --accent-dark: #ad3c17;
        --accent-soft: #ffe1d6;
        --shadow: 0 24px 70px rgba(33, 22, 11, 0.12);
    }

    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        font-family: "IBM Plex Sans", sans-serif;
        color: var(--text);
        background:
            radial-gradient(circle at top left, rgba(214, 90, 49, 0.16), transparent 30%),
            radial-gradient(circle at bottom right, rgba(111, 143, 114, 0.18), transparent 28%),
            linear-gradient(180deg, #f8f3ec 0%, #f1ebe4 100%);
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .site-shell {
        width: min(1180px, calc(100% - 32px));
        margin: 0 auto;
        padding: 28px 0 56px;
    }

    .hero {
        position: relative;
        overflow: hidden;
        padding: 34px;
        border: 1px solid var(--line);
        border-radius: 32px;
        background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,245,238,0.84));
        box-shadow: var(--shadow);
    }

    .hero::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -80px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(214, 90, 49, 0.24), transparent 70%);
        pointer-events: none;
    }

    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 44px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .brand img {
        width: 58px;
        height: 58px;
        object-fit: contain;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(26, 23, 20, 0.08);
    }

    .brand-copy strong,
    .section-heading h2,
    .project-title,
    .cta-title,
    .eyebrow {
        font-family: "Space Grotesk", sans-serif;
    }

    .brand-copy span {
        display: block;
        color: var(--muted);
        font-size: 14px;
    }

    .mail-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 999px;
        border: 1px solid rgba(26, 23, 20, 0.08);
        background: rgba(255,255,255,0.72);
        transition: transform .2s ease, border-color .2s ease;
    }

    .mail-link:hover {
        transform: translateY(-2px);
        border-color: rgba(214, 90, 49, 0.35);
    }

    .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
        gap: 28px;
        align-items: end;
    }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border-radius: 999px;
        color: var(--accent-dark);
        background: var(--accent-soft);
    }

    h1 {
        margin: 18px 0 18px;
        font-family: "Space Grotesk", sans-serif;
        font-size: clamp(36px, 7vw, 74px);
        line-height: 0.98;
        letter-spacing: -0.04em;
    }

    .hero p {
        font-size: 18px;
        line-height: 1.7;
        color: var(--muted);
        margin: 0 0 26px;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }

    .button-primary,
    .button-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 20px;
        border-radius: 999px;
        font-weight: 600;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }

    .button-primary {
        color: #fff;
        background: linear-gradient(135deg, var(--accent), #e17b40);
        box-shadow: 0 16px 32px rgba(214, 90, 49, 0.22);
    }

    .button-secondary {
        border: 1px solid rgba(26, 23, 20, 0.1);
        background: rgba(255,255,255,0.78);
    }

    .button-primary:hover,
    .button-secondary:hover {
        transform: translateY(-2px);
    }

    .hero-panel {
        padding: 24px;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(249,240,232,0.92));
        border: 1px solid rgba(26, 23, 20, 0.08);
    }

    .stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .stat {
        padding: 18px;
        border-radius: 20px;
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(26, 23, 20, 0.08);
    }

    .stat strong {
        display: block;
        font-size: 30px;
        line-height: 1;
        margin-bottom: 8px;
        font-family: "Space Grotesk", sans-serif;
    }

    .stat span {
        color: var(--muted);
        font-size: 14px;
    }

    .section-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 16px;
        margin: 40px 0 20px;
    }

    .section-heading h2 {
        margin: 0;
        font-size: clamp(28px, 4vw, 42px);
        letter-spacing: -0.04em;
    }

    .section-heading p {
        max-width: 560px;
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 18px;
    }

    .project-card {
        grid-column: span 6;
        display: flex;
        flex-direction: column;
        min-height: 420px;
        border-radius: 28px;
        overflow: hidden;
        border: 1px solid rgba(26, 23, 20, 0.08);
        background: var(--surface);
        box-shadow: var(--shadow);
        backdrop-filter: blur(16px);
        transition: transform .25s ease, box-shadow .25s ease;
    }

    .project-card.featured {
        grid-column: span 12;
        min-height: 480px;
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 60px rgba(33, 22, 11, 0.16);
    }

    .project-visual {
        position: relative;
        min-height: 220px;
        background-color: #eadfd5;
        background-size: cover;
        background-position: center;
    }

    .project-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.36));
    }

    .project-badges {
        position: absolute;
        top: 18px;
        left: 18px;
        z-index: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .project-badge {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.88);
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
    }

    .project-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        flex: 1;
    }

    .project-title {
        margin: 0;
        font-size: 28px;
        letter-spacing: -0.03em;
    }

    .project-text {
        margin: 0;
        color: var(--muted);
        line-height: 1.75;
        flex: 1;
    }

    .project-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .project-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 16px;
        border-radius: 999px;
        background: var(--surface-strong);
        border: 1px solid rgba(26, 23, 20, 0.08);
        font-weight: 600;
    }

    .project-link:hover {
        border-color: rgba(214, 90, 49, 0.3);
        color: var(--accent-dark);
    }

    button.project-link {
        cursor: pointer;
        color: inherit;
        font-family: inherit;
        font-size: 15px;
    }

    .empty-state,
    .cta {
        margin-top: 20px;
        padding: 28px;
        border-radius: 28px;
        border: 1px solid rgba(26, 23, 20, 0.08);
        background: rgba(255,255,255,0.76);
        box-shadow: var(--shadow);
    }

    .cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .cta-title {
        margin: 0 0 8px;
        font-size: 28px;
        letter-spacing: -0.03em;
    }

    .cta p,
    .empty-state p {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
    }

    .gallery-modal {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: none;
        padding: 24px;
        background: rgba(18, 14, 11, 0.82);
        backdrop-filter: blur(10px);
    }

    .gallery-modal.is-open {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-dialog {
        width: min(1100px, 100%);
        max-height: calc(100vh - 48px);
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 22px;
        border-radius: 28px;
        background: #fffaf5;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
        overflow: hidden;
    }

    .gallery-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
    }

    .gallery-title {
        margin: 0 0 6px;
        font-family: "Space Grotesk", sans-serif;
        font-size: clamp(24px, 4vw, 34px);
        letter-spacing: -0.04em;
    }

    .gallery-counter {
        color: var(--muted);
        font-size: 14px;
    }

    .gallery-close {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 999px;
        background: rgba(26, 23, 20, 0.08);
        color: var(--text);
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
    }

    .gallery-stage {
        position: relative;
        min-height: 420px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 24px;
        overflow: hidden;
        background: linear-gradient(180deg, #f2e8dc, #e7dacc);
    }

    .gallery-image {
        width: 100%;
        height: 100%;
        max-height: 68vh;
        object-fit: contain;
        display: block;
    }

    .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.88);
        color: var(--text);
        cursor: pointer;
        font-size: 28px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

    .gallery-nav.prev {
        left: 18px;
    }

    .gallery-nav.next {
        right: 18px;
    }

    .gallery-thumbs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
        max-height: 180px;
        overflow: auto;
        padding-right: 4px;
    }

    .gallery-thumb {
        border: 2px solid transparent;
        border-radius: 18px;
        padding: 0;
        overflow: hidden;
        background: #f0e6db;
        cursor: pointer;
    }

    .gallery-thumb.is-active {
        border-color: var(--accent);
    }

    .gallery-thumb img {
        width: 100%;
        height: 84px;
        object-fit: cover;
        display: block;
    }

    @media (max-width: 960px) {
        .hero-grid,
        .cta {
            grid-template-columns: 1fr;
            display: grid;
        }

        .project-card,
        .project-card.featured {
            grid-column: span 12;
        }
    }

    @media (max-width: 640px) {
        .site-shell {
            width: min(100% - 20px, 1180px);
            padding-top: 18px;
            padding-bottom: 32px;
        }

        .hero {
            padding: 22px;
            border-radius: 24px;
        }

        .topbar {
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 28px;
        }

        .section-heading {
            align-items: flex-start;
            flex-direction: column;
        }

        .stats {
            grid-template-columns: 1fr;
        }

        .project-title {
            font-size: 24px;
        }

        .gallery-modal {
            padding: 12px;
        }

        .gallery-dialog {
            padding: 16px;
            border-radius: 22px;
        }

        .gallery-stage {
            min-height: 280px;
        }

        .gallery-nav {
            width: 40px;
            height: 40px;
            font-size: 22px;
        }
    }
