:root {
    --bg: #0a0a0a;
    --bg-tint: #0f0f0f;
    --card-bg: #141414;
    --text: #e5e5e5;
    --muted: #b0b0b0;
    --border: #2a2a2a;
    --primary: #B8B8FF;
    --accent: #B8B8FF;
    --accent-hover: #9B9BFF;
    --grid-dot: #2a2a2a;
    --card-grid: rgba(184, 184, 255, 0.08);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 32px;
    font-family: "Space Grotesk", Arial, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    justify-content: center;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-wrapper {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 140px;
}

.top-spacer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
    z-index: 15;
    pointer-events: none;
}
.top-bar {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(1100px, calc(100% - 64px));
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.top-bar__name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
}

.top-bar__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 0;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.top-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.top-link .material-icons-outlined {
    font-size: 1rem;
    color: inherit;
    font-weight: 400;
}


.page-grid {
    width: 100%;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    align-content: start;
}

.card {
    background: var(--card-bg);
    background-image: 
        linear-gradient(var(--card-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--card-grid) 1px, transparent 1px);
    background-size: 12px 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card--wide {
    grid-column: 1 / -1;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

h1 {
    font-size: clamp(2rem, 1.2rem + 2vw, 2.8rem);
    letter-spacing: -0.5px;
    font-weight: 600;
    color: var(--text);
}

h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
    color: var(--accent);
}

h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
}

ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 400;
    list-style-type: disc;
}

li + li {
    margin-top: 6px;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.lead {
    max-width: 48ch;
}

.hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 0;
    background: var(--accent);
    color: var(--bg);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.contact-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    transition: all 0.2s ease;
}

.contact-tile:hover {
    border-color: var(--accent);
}

.contact-tile--cta {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.contact-tile--cta .label {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.value {
    font-weight: 400;
}

.card-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--card-bg);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-heading p {
    color: var(--muted);
    font-weight: 400;
}

.meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.inline-link {
    align-self: flex-start;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.inline-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.skill-tile {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.skill-tile:hover {
    border-color: var(--accent);
}

.skill-tile p {
    color: var(--muted);
}

@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 32px);
        top: 16px;
        padding: 14px 16px;
        border-width: 1px;
    }

    .top-bar__links {
        width: 100%;
        justify-content: flex-start;
    }

    .page-wrapper {
        padding-top: 190px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 24px 12px;
    }

    .top-bar {
        width: calc(100% - 24px);
        top: 12px;
        padding: 12px 14px;
        border-width: 1px;
    }

    .page-wrapper {
        gap: 16px;
        padding-top: 190px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .card {
        padding: 20px;
    }

    .card-block {
        padding: 14px;
    }
}
