.home-hero {
    --home-ink: var(--text);
    --home-accent: var(--accent);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 2rem auto 0;
    padding: clamp(2rem, 7vw, 5rem);
    max-width: 72rem;
    color: var(--home-ink);
    background:
        radial-gradient(32rem 24rem at 90% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 8%);
}

.home-hero-pixels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--home-accent);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

.home-eyebrow {
    margin: 0 0 1rem;
    color: var(--home-accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 15ch;
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
}

.home-hero h1 em {
    font-style: normal;
    color: var(--home-accent);
}

.home-lead {
    max-width: 42rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.home-button {
    display: inline-flex;
    min-height: 2.875rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.home-button-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.home-button-secondary {
    border-color: var(--accent);
    color: var(--accent);
}

.home-button:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.home-quote {
    margin: 2rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    color: var(--muted);
    font-style: italic;
}

.home-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.home-section h2 {
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
}

.home-section-intro {
    max-width: 42rem;
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.home-projects,
.home-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-project {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 0.25rem 1rem rgb(0 45 68 / 6%);
    transition: border-color 160ms ease, transform 160ms ease;
}

.home-project:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.home-project-image,
.home-project-placeholder {
    display: block;
    width: 100%;
    height: 13rem;
    border: 0;
    background: var(--line);
    object-fit: cover;
}

.home-project-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 4rem;
    font-weight: 800;
}

.home-project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
}

.home-project-tag {
    margin: 0 0 0.4rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.home-project h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.35;
}

.home-project-link {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.home-project-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.home-links li {
    display: flex;
}

.home-links a {
    flex: 1;
    display: flex;
    min-height: 3.25rem;
    flex-direction: column;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.home-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.home-links .home-link-sub {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 400;
}

.home-page :focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .home-hero {
        margin: 1rem 0 0;
        border-radius: 0.9rem;
    }

    .home-section {
        padding-inline: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-project {
        transition: none;
    }
}
