:root {
    --bg: #ffffff;
    --bg-alt: #f7faf8;
    --surface: #f5f8f6;
    --border: rgba(15, 20, 18, 0.1);
    --text: #101110;
    --text-muted: #5b645f;
    --accent: #12a02b;
    --accent-dark: #0c7a21;
    --accent-tint: rgba(18, 160, 43, 0.1);
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background glow */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(620px circle at 12% 0%, var(--accent-tint), transparent 60%),
        radial-gradient(560px circle at 88% 15%, rgba(16, 17, 16, 0.04), transparent 60%),
        var(--bg);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 52px;
    width: auto;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-tint);
}

/* Eyebrow / section labels */
.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 14px;
}

.eyebrow.center {
    text-align: center;
}

/* Cursor blink accent */
.cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Hero */
.hero {
    padding: 110px 24px 90px;
    text-align: center;
    max-width: 760px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--text);
}

.hero h1 .accent-word {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 28px rgba(18, 160, 43, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(18, 160, 43, 0.3);
}

/* About */
.about {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
    padding: 90px 24px;
}

.about-photo img,
.photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
}

.about-photo img {
    border: 4px solid var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint), 0 12px 28px rgba(16, 17, 16, 0.08);
}

.photo-placeholder {
    border: 1px solid var(--border);
}

.article-links {
    margin-top: 32px;
}

.article-links .eyebrow {
    margin-bottom: 10px;
}

.article-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-links li {
    border-top: 1px solid var(--border);
}

.article-links li:last-child {
    border-bottom: 1px solid var(--border);
}

.article-links a {
    display: block;
    text-decoration: none;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 10px 4px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.article-links a::before {
    content: '↗ ';
    color: var(--accent);
    font-weight: 600;
}

.article-links a:hover {
    color: var(--accent-dark);
    padding-left: 8px;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-tint), rgba(16, 17, 16, 0.04));
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 4px;
    color: var(--text);
}

.about-text .role {
    color: var(--accent-dark);
    font-weight: 600;
    margin: 0 0 24px;
}

.about-text p {
    color: var(--text-muted);
    margin: 0 0 18px;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.social-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-tint);
}

.social-link-btn {
    font-family: var(--font-body);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.social-link-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Contact modal */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 17, 16, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(16, 17, 16, 0.25);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.modal h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.modal-sub {
    color: var(--text-muted);
    margin: 0 0 24px;
    font-size: 0.92rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contact-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: block;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.92rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

#contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    min-height: 1.2em;
    font-size: 0.88rem;
    margin: 4px 0 0;
}

.form-status.success {
    color: var(--accent-dark);
}

.form-status.error {
    color: #c0392b;
}

/* Services */
.services {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.services h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 48px;
}

.services h2.center {
    text-align: center;
}

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

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 17, 16, 0.06);
}

.service-card h3 {
    font-family: var(--font-display);
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.service-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Contact */
.contact {
    padding: 100px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.contact h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin: 0 0 12px;
}

.contact p {
    color: var(--text-muted);
    margin: 0 0 32px;
}

/* Latest project promo */
.project {
    padding: 0 24px 90px;
    border-top: 1px solid var(--border);
    padding-top: 70px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.project-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    gap: 0;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16, 17, 16, 0.08);
}

.project-media {
    background: #1a2340;
    display: flex;
    align-items: center;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.project-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1a2340, #2a3a6a);
}

.project-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.project-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.project-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.project-heading h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0;
}

.project-tagline {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 14px;
}

.project-description {
    color: var(--text-muted);
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.project-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-dark);
}

.project-card:hover .project-link {
    color: var(--accent);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 780px) {
    .about {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 220px;
        margin: 0 auto;
    }

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

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 20px 70px;
    }

    .brand-logo {
        height: 40px;
    }
}
