:root {
    color-scheme: light;
    font-family: "Space Grotesk", sans-serif;
    color: #172722;
    background: #f2f5ef;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --paper: #f2f5ef;
    --ink: #172722;
    --muted: #62716a;
    --line: #cbd5cc;
    --green: #b9f36b;
    --orange: #ff704f;
    --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
.site-header, .site-footer {
    min-height: 76px;
    padding: 0 max(6vw, calc((100vw - 1240px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: 0; }
.wordmark span, .pong-heading h2 span { color: var(--orange); }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a, .site-footer a:last-child {
    font-family: var(--mono);
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
}
.site-header nav a:hover, .site-footer a:hover { color: #477d26; }
.availability, .eyebrow, .section-label, .portrait-caption, .project-kicker,
.tech-stack h3, .tech-stack li span, .markdown-link, .text-link, .hero-index,
.site-footer p, .site-footer a:last-child {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0;
}
.availability { display: flex; align-items: center; gap: 9px; }
.availability > span { width: 8px; height: 8px; border-radius: 50%; background: #568c31; }
.hero {
    position: relative;
    min-height: 610px;
    padding: 72px max(8vw, calc((100vw - 1120px) / 2)) 80px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 8%;
    overflow: hidden;
    background-color: var(--paper);
    background-image: radial-gradient(#c9d3c8 0.7px, transparent 0.7px);
    background-size: 20px 20px;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; gap: 14px; align-items: center; margin: 0 0 24px; color: var(--muted); }
.eyebrow span, .section-label span { color: #598a36; }
.hero h1 { margin: 0; font-size: clamp(74px, 9vw, 128px); line-height: .82; font-weight: 600; letter-spacing: 0; }
.hero h1 > span { color: #578c36; }
.hero h1 sup { position: relative; top: -2.5em; margin-left: 8px; font: 500 13px var(--mono); }
.hero-lead { max-width: 450px; margin: 32px 0 26px; color: #46564e; font-size: 17px; line-height: 1.65; }
.text-link { display: inline-flex; gap: 20px; align-items: center; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--ink); }
.text-link span { color: #538b30; font-size: 18px; }
.hero-side { width: min(100%, 330px); justify-self: end; }
.portrait { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--green); }
.portrait > span { position: absolute; inset: 0; display: grid; place-items: center; color: #477129; font-size: 100px; font-weight: 600; }
.portrait img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait-caption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 13px; color: white; background: #172722c9; }
.hero-note { margin: 12px 0 0; display: flex; justify-content: space-between; color: var(--muted); font: 11px/1.55 var(--mono); text-transform: uppercase; }
.hero-note span { color: #538b30; font-size: 21px; }
.hero-index { position: absolute; right: 6vw; bottom: 24px; color: var(--muted); }
.section-wrap, .project-inner, .pong-inner { width: min(calc(100% - 12vw), 1120px); margin-inline: auto; }
.intro { padding-block: 112px 124px; display: grid; grid-template-columns: 190px 1fr; gap: 40px; }
.section-label { padding-top: 9px; color: var(--muted); }
.intro h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.08; font-weight: 500; }
.intro h2 span { color: #829087; }
.intro-bottom { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 50px; }
.intro-bottom > p { max-width: 440px; margin: 0; color: #53625a; font-size: 15px; line-height: 1.8; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 2px; font: 11px var(--mono); }
.projects { padding: 88px 0 96px; color: #f2f5ef; background: #192a24; }
.project-inner { display: grid; grid-template-columns: 190px 1fr; column-gap: 40px; }
.projects .section-label { color: #b3c2b7; }
.projects .section-label span { color: var(--green); }
.project-heading { grid-column: 2; }
.project-kicker { display: flex; justify-content: space-between; max-width: 620px; color: var(--green); }
.project-kicker span { color: #b3c2b7; }
.project-heading h2 { margin: 20px 0 12px; font-size: clamp(68px, 10vw, 124px); line-height: .9; font-weight: 500; }
.project-heading h2 span { color: var(--green); }
.project-stage { width: fit-content; margin: 16px 0 12px; padding: 7px 10px; color: var(--green); border: 1px solid #607e53; font: 10px var(--mono); }
.project-summary { max-width: 520px; margin: 0; color: #c1cec5; font-size: 18px; line-height: 1.55; }
.project-details { grid-column: 2; margin-top: 50px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; }
.project-description p { margin: 0 0 22px; color: #c1cec5; font-size: 14px; line-height: 1.8; }
.project-description h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 500; }
.tech-stack { border-top: 1px solid #51625a; }
.tech-stack h3 { margin: 0; padding: 14px 0; color: var(--green); font-weight: 400; }
.tech-stack ul { margin: 0; padding: 0; list-style: none; }
.tech-stack li { padding: 12px 0; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid #3b4d44; font-size: 14px; }
.tech-stack li span { color: #a7b9ad; }
.project-video { grid-column: 2; margin-top: 42px; }
.project-video video { display: block; width: 100%; max-height: 76vh; aspect-ratio: 16 / 9; object-fit: contain; background: #080d16; }
.project-video p { margin: 10px 0 0; color: #b3c2b7; font: 10px var(--mono); }
.project-evidence { grid-column: 2; margin: 34px 0 0; }
.project-evidence img { display: block; width: 100%; height: auto; }
.project-evidence figcaption { margin-top: 10px; color: #b3c2b7; font: 10px/1.6 var(--mono); }
.markdown-link { grid-column: 2; width: fit-content; margin-top: 30px; color: var(--green); text-decoration: none; border-bottom: 1px solid #67854e; padding-bottom: 8px; }
.markdown-link span { margin-left: 14px; }
.forest-section { padding-block: 84px 96px; color: var(--ink); background: #dce8d5; }
.forest-inner { width: min(calc(100% - 12vw), 1120px); margin-inline: auto; }
.forest-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.forest-heading .section-label { color: #58685b; }
.forest-heading .section-label span, .forest-heading h2 span { color: #4f812e; }
.forest-heading h2 { margin: 18px 0 0; font-size: clamp(56px, 7vw, 84px); line-height: .95; font-weight: 500; }
.forest-heading > p { margin: 0 0 5px; color: #526256; font: 11px var(--mono); }
.forest-heading > p span { padding-inline: 8px; color: var(--orange); }
.forest-overview { margin: 0 0 32px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; }
.forest-overview p:not(.build-kicker) { margin: 0; color: #3e5144; font-size: 14px; line-height: 1.75; }
.forest-contribution { padding-left: 28px; border-left: 1px solid #b8c9b4; }
.forest-story .build-kicker, .forest-contribution .build-kicker { margin: 0 0 9px; }
.forest-player { padding: 12px; background: #172722; }
.forest-player video { display: block; width: 100%; max-height: 76vh; aspect-ratio: 16 / 9; object-fit: contain; background: #080d16; }
.video-controls { min-height: 56px; display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: 20px; padding: 4px 8px; color: #f2f5ef; }
.video-button { min-height: 38px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #53675b; border-radius: 2px; color: #f2f5ef; background: #22362d; font: 11px var(--mono); cursor: pointer; }
.video-button:hover { border-color: var(--green); color: var(--green); }
.video-button:focus-visible, .video-timeline input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.video-button > span:first-child { color: var(--green); }
.video-button:disabled { opacity: .55; cursor: not-allowed; }
.video-timeline { display: grid; grid-template-columns: 42px minmax(50px, 1fr) 42px; align-items: center; gap: 12px; }
.video-time { color: #c0cec5; font: 10px var(--mono); text-align: center; font-variant-numeric: tabular-nums; }
.video-timeline input { width: 100%; margin: 0; accent-color: var(--green); cursor: pointer; }
.video-timeline input:disabled { cursor: not-allowed; }
.video-status { margin: 0; padding: 0 8px 8px; color: #aabbb0; font: 10px var(--mono); }
.forest-build { padding: 24px 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.build-copy { max-width: 620px; }
.build-kicker { margin: 0 0 7px; color: #527d38; font: 10px var(--mono); }
.build-copy h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.build-copy > p:last-child { margin: 0; color: #4b5e50; font-size: 13px; line-height: 1.6; }
.build-copy code { padding: 2px 4px; color: #284333; background: #cadbc1; font: 11px var(--mono); }
.build-download { min-width: 190px; min-height: 54px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #f2f5ef; background: #20362b; text-decoration: none; font: 12px var(--mono); }
.build-download:hover { color: var(--green); background: #172722; }
.build-download > span:first-child { font-size: 24px; }
.build-download small { display: block; margin-top: 4px; color: #adbdaf; font-size: 9px; }
.windows-build-note { margin: 12px 4px 0; color: #4b5e50; font-size: 12px; line-height: 1.6; }
.windows-build-note code { padding: 2px 4px; color: #284333; background: #cadbc1; font: 11px var(--mono); }
.pong-section { padding-block: 92px 104px; color: #f4f7f2; background: #24434a; }
.pong-heading { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: end; }
.pong-heading .section-label { color: #c1d0c8; }
.pong-heading .section-label span { color: var(--green); }
.pong-heading h2 { margin: 18px 0 0; font-size: clamp(60px, 8vw, 92px); line-height: .9; font-weight: 500; }
.pong-heading > p { margin: 0 0 5px; color: #c3d3cd; font: 12px/1.7 var(--mono); }
.game-frame { padding: 14px; background: #172722; border: 1px solid #628076; }
#gameCanvas { display: block; width: 100%; height: auto; aspect-ratio: 7 / 5; border: 1px solid #598b7e; background: #080d16; }
.controls { padding: 15px 4px 2px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; color: #b8c9c1; font: 10px var(--mono); }
.controls strong { margin-right: 6px; color: var(--green); font-weight: 500; }
.contact-section { padding: 80px 0 96px; background: #e4ebe2; }
.contact-inner { width: min(calc(100% - 12vw), 1120px); margin-inline: auto; }
.contact-inner > .section-label { margin-bottom: 20px; }
.contact-card { position: relative; min-height: 280px; padding: 34px 38px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 36px; overflow: hidden; color: #f2f5ef; background: #20362b; border: 1px solid #40594a; transform: translateY(0); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.contact-card:hover, .contact-card:focus-within { transform: translateY(-8px); border-color: #83a867; box-shadow: 0 22px 42px #17272230; }
.contact-kicker { margin: 0 0 16px; color: var(--green); font: 10px var(--mono); }
.contact-card h2 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: .94; font-weight: 500; }
.contact-card h2 span { color: var(--orange); }
.contact-links { position: relative; z-index: 1; display: grid; gap: 16px; }
.contact-links > a { width: fit-content; max-width: 100%; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 12px; color: #f2f5ef; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.contact-links > a:hover, .contact-email-actions a:hover { color: var(--green); }
.contact-links > a > span:first-child, .contact-label { color: #a8b9ac; font: 9px var(--mono); }
.contact-email-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: start; gap: 12px; }
.contact-email-content { min-width: 0; }
.contact-email-address { display: block; color: #f2f5ef; font-size: 14px; overflow-wrap: anywhere; }
.contact-email-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.contact-email-actions a { color: #c0cec5; font: 10px var(--mono); text-decoration: underline; text-decoration-color: #617568; text-underline-offset: 3px; }
.contact-email-actions a span { color: var(--green); }
.contact-links .contact-arrow { color: var(--green); }
.contact-mark { position: absolute; top: -40px; right: 14px; color: #ffffff08; font-size: 260px; line-height: 1; font-weight: 700; pointer-events: none; }
.site-footer { min-height: 82px; border-top: 1px solid var(--line); border-bottom: 0; }
.site-footer p { color: var(--muted); }
.site-footer p span { padding-inline: 6px; color: var(--orange); }
@media (min-width: 1500px) { .hero { min-height: 690px; } }
@media (max-width: 760px) {
    .site-header { min-height: 66px; padding-inline: 6vw; }
    .site-header nav { gap: 16px; }
    .site-header nav a { font-size: 10px; }
    .availability { display: none; }
    .hero { min-height: auto; padding: 74px 8vw 76px; grid-template-columns: 1fr .65fr; gap: 5%; }
    .hero h1 { font-size: clamp(66px, 12vw, 92px); }
    .hero-lead { font-size: 15px; }
    .hero-side { width: 100%; }
    .portrait-caption { padding: 9px; font-size: 8px; }
    .intro { padding-block: 78px; grid-template-columns: 1fr; gap: 25px; }
    .intro-bottom { gap: 28px; }
    .project-inner { grid-template-columns: 1fr; }
    .project-heading, .project-details, .project-video, .project-evidence, .markdown-link { grid-column: 1; }
    .projects .section-label { margin-bottom: 30px; }
    .project-details { gap: 34px; }
    .forest-section { padding-block: 68px; }
    .forest-heading h2 { font-size: 64px; }
    .forest-overview { grid-template-columns: 1fr; gap: 22px; }
    .forest-contribution { padding: 18px 0 0; border-top: 1px solid #b8c9b4; border-left: 0; }
    .contact-section { padding-block: 64px; }
    .contact-card { min-height: 0; padding: 28px 24px; grid-template-columns: 1fr; align-items: start; gap: 28px; }
    .contact-card h2 { font-size: 52px; }
    .contact-links { gap: 14px; }
    .contact-links > a, .contact-email-row { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; font-size: 12px; }
    .contact-email-address { font-size: 12px; }
    .contact-email-actions { gap: 8px 14px; }
    .contact-mark { top: 0; right: 8px; font-size: 150px; }
}
@media (max-width: 520px) {
    .site-header { align-items: center; }
    .site-header nav { gap: 12px; }
    .site-header nav a { font-size: 9px; }
    .hero { padding: 54px 6vw 65px; grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: 60px; }
    .hero h1 sup { font-size: 10px; }
    .hero-lead { max-width: 400px; margin-top: 25px; }
    .hero-side { width: min(74%, 270px); justify-self: end; }
    .hero-index { right: 6vw; bottom: 18px; }
    .section-wrap, .project-inner, .pong-inner { width: calc(100% - 12vw); }
    .intro { padding-block: 68px; }
    .intro h2 { font-size: 36px; }
    .intro-bottom { grid-template-columns: 1fr; gap: 22px; }
    .projects { padding-block: 68px; }
    .project-heading h2 { font-size: 76px; }
    .project-summary { font-size: 16px; }
    .project-details { margin-top: 32px; grid-template-columns: 1fr; }
    .forest-heading { align-items: start; flex-direction: column; gap: 12px; }
    .forest-heading h2 { font-size: clamp(40px, 12vw, 58px); }
    .forest-player { padding: 7px; }
    .forest-build { align-items: stretch; flex-direction: column; gap: 16px; padding-top: 20px; }
    .build-download { width: 100%; }
    .video-controls { grid-template-columns: auto 1fr auto; gap: 8px; padding-inline: 2px; }
    .video-button { min-height: 36px; padding-inline: 8px; gap: 6px; font-size: 9px; }
    .video-timeline { grid-row: 2; grid-column: 1 / -1; gap: 8px; }
    .video-status { padding-top: 5px; font-size: 9px; }
    .pong-section { padding-block: 68px; }
    .pong-heading { align-items: start; flex-direction: column; gap: 18px; }
    .game-frame { padding: 7px; }
    .controls { justify-content: flex-start; gap: 10px 16px; line-height: 1.6; }
    .site-footer { min-height: 76px; padding-inline: 6vw; }
    .site-footer p { max-width: 145px; font-size: 8px; line-height: 1.6; }
    .site-footer a:last-child { font-size: 8px; }
}
@media (max-width: 360px) {
    .hero h1 { font-size: 50px; }
    .project-heading h2 { font-size: 60px; }
    .contact-card { padding-inline: 18px; }
    .contact-links > a, .contact-email-row { grid-template-columns: 55px minmax(0, 1fr); font-size: 11px; }
    .contact-email-address { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-card { transition: none; }
}