*, *::before, *::after { box-sizing: border-box; }
:root {
    --green-deep: #050c05;
    --green: #091509;
    --cream: #f5f1e8;
    --cream-warm: #ede8dc;
    --accent: #22c55e;
    --ink: #1a180f;
    --ink-mid: #3d3a2e;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Inter', sans-serif; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 0; z-index: 9999; padding: .5rem 1rem; background: var(--accent); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 0; }
.site-nav { position: fixed; inset: 0 0 auto; z-index: 200; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 2.5rem; background: var(--green-deep); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-logo img { width: auto; height: 44px; filter: brightness(0) invert(1); opacity: .85; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.nav-links a, .eyebrow, .back-link, .footer-links a { font-family: 'JetBrains Mono', monospace; }
.nav-links a { color: rgba(245,241,232,.6); text-decoration: none; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a.btn-nav { display: inline-block; padding: .55rem 1.4rem; background: var(--accent); color: var(--ink); letter-spacing: .04em; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; z-index: 201; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.page-jumpnav { position: fixed; top: 80px; left: 0; right: 0; z-index: 150; padding: .6rem 2.5rem .5rem; background: var(--green-deep); border-bottom: 1px solid rgba(255,255,255,.08); }
.jumpnav-track { position: relative; height: 2px; margin-bottom: .55rem; background: rgba(255,255,255,.15); }
.jumpnav-fill { position: absolute; top: 0; left: 0; width: 0; height: 100%; background: var(--accent); transition: width .15s linear; }
.jumpnav-steps { display: flex; width: 100%; }
.jumpnav-step { flex: 1; text-align: center; color: rgba(245,241,232,.35); font: 700 .72rem 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.jumpnav-step:hover { color: rgba(245,241,232,.7); }
section[id], .article h2[id] { scroll-margin-top: 130px; }
.container { width: min(100% - 5rem, 1200px); margin: 0 auto; }
.hero { background: var(--green-deep); color: var(--cream); padding: 11rem 0 4.5rem; }
.eyebrow { display: block; color: var(--accent); font-size: 1rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: '// '; }
.back-link { display: inline-block; margin-bottom: 1.75rem; color: rgba(245,241,232,.65); font-size: .8rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.back-link:hover { color: var(--cream); }
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 850px; margin: 1rem 0 1.5rem; font-size: clamp(2.5rem, 5vw, 4.25rem); }
h1::before, .cta h2::before { content: '# '; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.hero-index h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.hero p { max-width: 700px; margin: 0; color: rgba(245,241,232,.72); font-size: 1.15rem; }
.portfolio-list { padding: 3.5rem 0 5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin: 0; color: var(--ink); font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: white; border-top: 3px solid var(--accent); }
.card img { width: 100%; height: 210px; object-fit: contain; background: var(--cream-warm); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.6rem; }
.card .eyebrow { font-size: .85rem; letter-spacing: .16em; }
.card h2 { margin: .7rem 0; font-size: 1.7rem; }
.card p { color: var(--ink-mid); margin: 0 0 1.5rem; }
.card a { margin-top: auto; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.article { max-width: 800px; padding: 4rem 0 5rem; }
.article h2 { margin: 3rem 0 1rem; font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { color: var(--ink-mid); font-size: 1.08rem; }
.article p { margin: 0 0 1.25rem; }
.article li { margin-bottom: .65rem; }
.article figure { margin: 2.5rem 0; }
.article figure img { width: 100%; max-height: 540px; object-fit: contain; background: var(--cream-warm); }
.article figcaption { margin-top: .75rem; color: #625e51; font-size: .9rem; }
.article a { color: #176f42; font-weight: 700; text-underline-offset: .2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.article .note { padding: 1.25rem 1.5rem; background: var(--cream-warm); border-left: 3px solid var(--accent); }
.cta { padding: 4rem 0; background: var(--green); color: var(--cream); text-align: center; }
.cta h2 { margin: 1rem 0; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cta p { max-width: 600px; margin: 0 auto 1.75rem; color: rgba(245,241,232,.7); }
.button { display: inline-block; padding: .9rem 1.6rem; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; }
.button:hover, .nav-links a.btn-nav:hover { background: #4ade80; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 2rem 2.5rem; background: var(--green-deep); color: rgba(245,241,232,.55); font-size: .8rem; }
.footer-logo img { width: auto; height: 20px; filter: brightness(0) invert(1); opacity: .7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cream); }
@media (max-width: 1100px) {
    .site-nav { padding: 1rem 1.25rem; }
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: fixed; inset: 0; z-index: 199; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 4rem 1.25rem; overflow-y: auto; background: var(--green-deep); }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1rem; }
}
@media (max-width: 900px) {
    .page-jumpnav { padding: .5rem 1.25rem .4rem; }
    .jumpnav-step { font-size: .62rem; letter-spacing: .04em; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 2.5rem); }
    .hero { padding: 10rem 0 3rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .card img { height: 220px; }
    .article { padding: 3rem 0 4rem; }
    footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
