:root {
    color-scheme: light;
    --bg: #f3f1ec;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --text: #111111;
    --muted: #5a5a5a;
    --line: rgba(17, 17, 17, 0.1);
    --accent: #151515;
    --accent-soft: #efebe4;
    --shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
    --radius: 28px;
    --radius-sm: 18px;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 34%),
        linear-gradient(180deg, #f6f3ed 0%, #eeebe5 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    opacity: 0.55;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.page-shell {
    padding: 24px 0 56px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 10;
    margin-bottom: 28px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.button:hover,
.button:focus-visible {
    color: var(--text);
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero {
    padding: 42px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 28px;
}

.hero-copy,
.hero-aside,
.section-card {
    position: relative;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: calc(var(--radius) - 8px);
    background: rgba(255, 255, 255, 0.72);
}

.hero-copy {
    padding: 34px;
}

.eyebrow,
.section-kicker,
.meta-label {
    display: inline-block;
    font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

h1 {
    max-width: 12ch;
    margin-top: 22px;
    font-size: clamp(3.4rem, 10vw, 6.6rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    font-weight: 600;
}

.hero-subtitle {
    margin-top: 18px;
    max-width: 28ch;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--muted);
}

.hero-intro {
    max-width: 62ch;
    margin-top: 28px;
    font-size: 1.04rem;
    color: #202020;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.button {
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    background: #000000;
    border-color: #000000;
}

.button.secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(17, 17, 17, 0.14);
}

.button.secondary:hover,
.button.secondary:focus-visible {
    background: rgba(17, 17, 17, 0.05);
}

.hero-aside {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.hero-aside::before,
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.04), transparent 34%),
        radial-gradient(circle at top right, rgba(17, 17, 17, 0.08), transparent 38%);
}

.status-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(17, 17, 17, 0.04);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
}

.aside-copy p,
.section-card p,
.project-text p,
.contact-card p {
    color: var(--muted);
}

.hero-facts {
    display: grid;
    gap: 14px;
}

.fact {
    padding-top: 14px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.fact strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
}

.fact span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.96rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 24px;
    margin-top: 18px;
}

.section-card,
.project-card,
.contact-card {
    padding: 28px;
}

.section-title {
    margin-top: 14px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-card p,
.project-text p,
.contact-card p,
.project-highlights li,
.project-meta-item span {
    font-size: 0.98rem;
    line-height: 1.72;
}

.section-card p + p {
    margin-top: 12px;
}

.project-card {
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.project-name {
    margin-top: 10px;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.project-state {
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.04);
    font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.project-highlights {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.project-highlights li {
    padding-left: 18px;
    position: relative;
    color: #1d1d1d;
}

.project-highlights li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.project-meta {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: var(--accent-soft);
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.project-meta-item {
    padding-top: 12px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.project-meta-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.project-meta-item strong {
    display: block;
    font-size: 0.95rem;
}

.project-meta-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.94rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 18px;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.contact-links {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 17, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.contact-link strong {
    display: block;
    font-size: 1rem;
}

.contact-link span {
    color: var(--muted);
    font-size: 0.94rem;
}

.footer {
    padding: 28px 0 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 920px) {
    .hero-grid,
    .content-grid,
    .project-layout,
    .links-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        max-width: none;
    }

    .project-header {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding-top: 16px;
    }

    .site-header {
        position: static;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 26px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero,
    .hero-copy,
    .hero-aside,
    .section-card,
    .project-card,
    .contact-card {
        padding: 22px;
    }

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

    .button,
    .button.secondary {
        justify-content: center;
    }
}
