:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-soft: rgba(232, 232, 232, 0.03);
    --text: #e8e8e8;
    --muted: rgba(232, 232, 232, 0.55);
    --muted-strong: rgba(232, 232, 232, 0.75);
    --primary: #c4f536;
    --border: rgba(232, 232, 232, 0.1);
    --border-soft: rgba(232, 232, 232, 0.06);
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spread {
    justify-content: space-between;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.88);
    border-bottom: 1px solid var(--border-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 0;
}

.brand-mark {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--primary);
    border-radius: 4px;
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-top: 1.5px solid var(--primary);
    transform: rotate(45deg);
}

.nav {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: 0.25s ease;
}

.nav a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

.hero {
    position: relative;
    min-height: 74vh;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--border-soft);
    padding: 7.8rem 0 4.5rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(232, 232, 232, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 232, 232, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(196, 245, 54, 0.35);
    border-radius: 999px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    padding: 0.35rem 0.72rem;
}

.hero h1 {
    margin: 1.25rem auto 0;
    width: min(900px, 100%);
    font-size: clamp(2rem, 5.5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-family: "Space Mono", "DM Sans", monospace;
}

.hero h1 .subtle {
    color: rgba(232, 232, 232, 0.35);
}

.hero p {
    margin: 1.25rem auto 0;
    width: min(620px, 100%);
    color: var(--muted);
}

.hero-actions {
    margin-top: 1.7rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-metrics {
    margin: 2.2rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 0.8rem;
    width: min(560px, 100%);
}

.hero-metrics div {
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    text-align: center;
}

.hero-metrics strong {
    display: block;
    color: var(--primary);
    font-family: "Space Mono", monospace;
    font-size: 1.1rem;
}

.hero-metrics span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(232, 232, 232, 0.38);
}

.section {
    padding: 3.3rem 0;
}

.narrow {
    width: min(760px, 92%);
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-family: "Space Mono", "DM Sans", monospace;
}

h3 {
    margin-top: 0;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 1rem;
}

.project-card {
    overflow: hidden;
    padding: 0;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 245, 54, 0.35);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-soft);
}

.project-body {
    padding: 0.9rem 1rem 1rem;
}

.project-body h3 {
    margin: 0.35rem 0 0.4rem;
}

.contact-card {
    border-top: 1px solid var(--border-soft);
}

.meta,
.small {
    color: var(--muted);
    font-size: 0.88rem;
}

.form {
    display: grid;
    gap: 0.8rem;
}

.form label,
fieldset {
    display: grid;
    gap: 0.35rem;
}

input,
textarea {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(232, 232, 232, 0.04);
    color: var(--text);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(196, 245, 54, 0.6);
}

fieldset {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.75rem;
}

.checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.45rem;
}

.checkbox input {
    width: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--primary);
    color: #0a0a0a;
    padding: 0.66rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.86;
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn.danger {
    background: var(--danger);
    color: #fff;
}

.alert {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid;
}

.alert.error {
    background: rgba(127, 29, 29, 0.32);
    border-color: rgba(248, 113, 113, 0.45);
}

.alert.success {
    background: rgba(20, 83, 45, 0.32);
    border-color: rgba(74, 222, 128, 0.45);
}

.footer {
    border-top: 1px solid var(--border-soft);
    margin-top: 1.8rem;
    padding: 1.1rem 0;
    color: var(--muted);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.social-links a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    color: var(--muted-strong);
    background: var(--surface-soft);
    transition: 0.2s ease;
}

.social-links a:hover {
    color: var(--text);
    border-color: rgba(196, 245, 54, 0.42);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .hero-metrics {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .topbar .row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
        padding-bottom: 0.8rem;
    }

    .brand {
        padding-bottom: 0.2rem;
    }

    .nav {
        margin-left: 0;
        width: 100%;
        gap: 0.6rem;
    }

    .hero {
        min-height: auto;
        padding-top: 6.7rem;
    }
}

