:root {
    --bg: #0b0b0b;
    --panel-1: #1d1d1d;
    --panel-2: #3d3d3d;
    --panel-3: #575757;
    --surface: #141414;
    --border: #242424;
    --hover: #1e1e1e;
    --text: #ededed;
    --muted: #8a8a8a;
    --light-muted: #c8c8c8;
    --accent: #ff6a1f;
    color-scheme: dark;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    background: transparent;
    color: var(--text);
    overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(20deg, transparent 0 18%, rgba(87,87,87,.92) 18.1% 51%, transparent 51.1%),
        linear-gradient(20deg, transparent 0 48%, rgba(61,61,61,.9) 48.1% 79%, transparent 79.1%),
        linear-gradient(20deg, transparent 0 77%, rgba(29,29,29,.96) 77.1% 100%),
        linear-gradient(20deg, transparent 0 18%, rgba(237,237,237,.8) 18.08% 18.2%, transparent 18.28%),
        linear-gradient(20deg, transparent 0 51%, rgba(237,237,237,.45) 51.08% 51.18%, transparent 51.26%),
        linear-gradient(20deg, transparent 0 79%, rgba(237,237,237,.6) 79.08% 79.18%, transparent 79.26%);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
::selection { background: var(--accent); color: var(--bg); }
.site-shell { position: relative; z-index: 1; width: min(100% - 3rem, 1080px); min-height: 100vh; margin: 0 auto; }
.site-main { padding: 2.5rem 0 3rem; }
.content { overflow-wrap: anywhere; }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; }
h1 { max-width: 900px; margin: 0 0 1.6rem; font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -.015em; word-spacing: .08em; }
h2 { margin: 0 0 1.5rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(237,237,237,.32); font-size: clamp(1.75rem, 4vw, 3.15rem); font-weight: 760; letter-spacing: -.01em; }
h3 { margin: 0 0 .7rem; font-size: 1.28rem; font-weight: 720; letter-spacing: 0; }
p, ul, ol, blockquote, pre, table { margin: 0 0 1.35rem; }
p, li { color: var(--text); }
strong { font-weight: 720; }
small, .eyebrow { color: var(--muted); }
.eyebrow { margin-bottom: .9rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; letter-spacing: .08em; }
a { color: var(--text); }
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.block { position: relative; margin: 0 0 6.5rem; padding: 3rem clamp(1rem, 4vw, 3rem); background: rgba(11,11,11,.78); border-top: 1px solid rgba(237,237,237,.48); }
.block::before { content: attr(data-section); display: block; margin-bottom: 1rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; letter-spacing: .05em; }
.block::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2.9rem; height: 2.9rem; background: inherit; clip-path: polygon(0 0, 100% 72%, 100% 100%, 0 28%); pointer-events: none; }
.block > h2 { margin-top: 0; }
.hero { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; padding-top: 4rem; padding-bottom: 4rem; background: linear-gradient(110deg, rgba(11,11,11,.92), rgba(20,20,20,.58)); clip-path: polygon(0 0, 100% 8%, 100% 91%, 0 100%); }
.hero::before { content: none; }
.lede { max-width: 720px; color: var(--light-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.section-label { margin-bottom: 1rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.actions, .actions p { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions { margin-top: 1.8rem; }
.actions p { margin: 0; }
.button, .button-secondary { display: inline-block; padding: .65rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: .92rem; line-height: 1.35; text-decoration: none; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.button { border-color: var(--text); background: var(--text); color: var(--bg); }
.button:hover, .button:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--bg); text-decoration: none; }
.button-secondary { background: transparent; color: var(--text); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--accent); background: transparent; color: var(--accent); text-decoration: none; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { position: relative; min-width: 0; padding: 1.5rem; background: rgba(20,20,20,.93); border: 1px solid var(--border); clip-path: polygon(0 1rem, 1rem 0, 100% 0, 100% 100%, 0 100%); transition: border-color 160ms ease, background-color 160ms ease; }
.project-card::before { content: ""; position: absolute; top: 0; left: 1rem; right: 0; height: 1px; background: var(--border); transition: background-color 160ms ease; }
.project-card:hover { background: var(--hover); border-color: var(--accent); }
.project-card:hover::before { background: var(--accent); }
.project-card p:last-child { margin-bottom: 0; }
.project-card h3 { padding-top: .25rem; }
.project-card h3 a { text-decoration: none; }
.project-card h3 a:hover { color: var(--accent); }
code, kbd { display: inline-block; max-width: 100%; margin: .12rem .2rem .12rem 0; padding: .1rem .45rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--light-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84em; line-height: 1.45; white-space: normal; }
pre { overflow-x: auto; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
pre code { display: block; margin: 0; padding: 0; border: 0; background: transparent; }
blockquote { padding: .2rem 1.25rem; border-left: 2px solid var(--accent); color: var(--light-muted); }
blockquote p { color: var(--light-muted); }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: .35rem; }
.table-wrapper { width: 100%; margin-bottom: 1.35rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem .9rem; border: 1px solid var(--border); text-align: left; }
th { background: var(--surface); color: var(--text); font-weight: 650; }
tbody tr:hover { background: var(--hover); }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; list-style: none; padding: 0; }
.contact-list li { padding: .65rem 0; border-bottom: 1px solid var(--border); }
.contact-list strong { display: block; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.error-page { padding: 3rem 0; }
@media (max-aspect-ratio: 1/1) { body::before { background: linear-gradient(20deg, transparent 0 20%, rgba(87,87,87,.92) 20.1% 52%, transparent 52.1%), linear-gradient(20deg, transparent 0 50%, rgba(61,61,61,.9) 50.1% 80%, transparent 80.1%), linear-gradient(20deg, transparent 0 20%, rgba(237,237,237,.8) 20.08% 20.2%, transparent 20.28%), linear-gradient(20deg, transparent 0 52%, rgba(237,237,237,.5) 52.08% 52.18%, transparent 52.26%); background-size: 100% 100%; background-repeat: no-repeat; } }
@media (max-width: 720px) { .site-shell { width: min(100% - 2rem, 1080px); } .site-main { padding: 1.5rem 0 2rem; } .block { margin-bottom: 4.5rem; padding: 2rem 1rem; } .block::after { bottom: -2rem; height: 2rem; } .hero { min-height: 68vh; padding: 3rem 1rem; } .project-grid, .contact-list { grid-template-columns: 1fr; } h1 { font-size: clamp(2.1rem, 11vw, 3.6rem); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
.block:last-of-type { margin-bottom: 0; }
.block:last-of-type::after { display: none; }
.site-main { padding-bottom: 3rem; }
@media (max-width: 720px) { .site-main { padding-bottom: 2rem; } }
