:root { font-family:Arial,Helvetica,sans-serif; color:#eceee5; background:#181c1b; font-synthesis:none; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-width:320px; }
a { color:inherit; text-decoration:none; }
button { font:inherit; color:inherit; cursor:pointer; }
::selection { background:var(--accent); color:var(--bg); }
.page {
  --bg:#181c1b; --text:#eceee5; --muted:#a6afa4; --accent:#bed397;
  --line:#73816b70; --surface:#252d27; --glow:#b7d69516; --dots:#c2d2b529;
  color-scheme:dark; color:var(--text); background:var(--bg);
  position:relative; isolation:isolate; min-height:100svh;
  padding:0 clamp(24px,5.5vw,100px); overflow:hidden;
  transition:background .3s,color .3s;
}
.page[data-theme=paper] {
  --bg:#f5f4ef; --text:#292c28; --muted:#626b5b; --accent:#586b3e;
  --line:#79866a70; --surface:#e8ebdf; --glow:#73895719; --dots:#7f8c6e38; color-scheme:light;
}
.page[data-theme=moss] {
  --bg:#172923; --text:#e7eee0; --muted:#afbdab; --accent:#e0c992;
  --line:#b3be9560; --surface:#263c30; --glow:#dfc98d18; --dots:#c7d4ab2b;
}
.ambient { position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(550px circle at var(--pointer-x,50%) var(--pointer-y,35%),var(--glow),transparent 80%);
}
.ambient:after { content:""; position:absolute; inset:0;
  background:radial-gradient(var(--dots) 1px,transparent 1px); background-size:22px 22px;
  mask-image:radial-gradient(280px circle at var(--pointer-x,50%) var(--pointer-y,35%),#000,transparent);
}
.masthead { height:112px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); }
.wordmark { font-size:24px; letter-spacing:-2px; font-weight:700; }
.wordmark span,.name-dot { color:var(--accent); }
.wordmark span { margin-left:3px; }
.theme-picker { display:flex; align-items:center; gap:12px; color:var(--muted); font:11px "Courier New",monospace; }
.theme-picker select { color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:9px 14px; font:inherit; cursor:pointer; }
.theme-picker select:hover { border-color:var(--accent); }
.profile-github { display:inline-flex; align-items:start; gap:9px; margin-top:27px; font-size:23px; letter-spacing:-.8px; transform:rotate(-2deg); transition:transform .25s,color .25s; }
.profile-github span { color:var(--accent); font-size:14px; }
.profile-github:hover { color:var(--accent); transform:rotate(1deg) translateX(3px); }
.eyebrow,.section-heading,.project-number,.project-description,.details,.project-story,footer { font-family:"Courier New",monospace; }
.eyebrow { font-size:11px; letter-spacing:1.3px; text-transform:uppercase; }
.status-dot { display:inline-block; width:6px; height:6px; background:var(--accent); border-radius:50%; margin:0 10px 1px 0; }
main { max-width:1440px; margin:auto; display:grid; grid-template-columns:.9fr 1.25fr; gap:clamp(50px,9vw,150px); padding:75px 0 80px; }
.profile { max-width:410px; }
h1 { font-size:clamp(56px,6.5vw,98px); line-height:.95; letter-spacing:-6px; font-weight:500; margin:30px 0 35px; }
.intro { font-size:clamp(21px,2.1vw,29px); line-height:1.28; letter-spacing:-.8px; max-width:350px; }
.details { font-size:12px; line-height:1.85; max-width:320px; color:var(--muted); margin-top:32px; }
.details p+p { margin-top:18px; }
.work { padding-top:5px; scroll-margin-top:30px; min-width:0; }
.section-heading { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:10px; letter-spacing:1px; text-transform:uppercase; margin-bottom:25px; }
.section-heading h2 { font:inherit; margin:0; }
.project { --tilt:0deg; position:relative; transform:rotate(var(--tilt)); transition:transform .4s cubic-bezier(.2,.8,.2,1),background .25s; margin:10px 0; border-radius:3px; }
.project-row { display:grid; grid-template-columns:24px 66px minmax(0,1fr) max-content; align-items:center; gap:20px; padding:25px 12px; min-height:123px; }
.project-number { font-size:10px; color:var(--muted); align-self:start; padding-top:8px; }
.logo { width:64px; height:64px; display:grid; place-items:center; }
.logo img { width:100%; height:100%; object-fit:contain; transition:transform .4s; }
.project-name { display:inline-flex; align-items:start; gap:9px; font-size:clamp(23px,2.5vw,35px); letter-spacing:-1.25px; line-height:1.15; }
.project-name[aria-disabled=true] { cursor:default; }
.project-description { font-size:10px; color:var(--muted); line-height:1.6; margin:9px 0 0; }
.project-arrow { font-size:15px; color:var(--accent); transition:transform .2s; }
.project-actions { display:flex; align-items:center; gap:8px; }
.github-link { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; transition:background .25s; }
.github-link img { filter:invert(1); opacity:.85; }
.page[data-theme=paper] .github-link img { filter:none; }
.github-link:hover { background:var(--surface); }
.github-link[aria-disabled=true] { cursor:default; opacity:.5; }
.unknown-mark { display:grid; place-items:center; width:100%; height:100%; border:1px dashed var(--accent); border-radius:46% 54% 62% 38%; color:var(--accent); font:42px Georgia,serif; transform:rotate(-9deg); }
.lindenmayer { --tilt:.8deg; }
.lindenmayer:after { content:""; position:absolute; bottom:0; left:8%; width:84%; height:9px; background:linear-gradient(35deg,transparent 45%,var(--accent) 46% 53%,transparent 54%) 0 0 / 20px 9px; opacity:.6; pointer-events:none; }
.lindenmayer .logo img { transform-origin:50% 95%; }
.lindenmayer:hover .logo img,.lindenmayer:focus-within .logo img { animation:garden-sway 2.6s ease-in-out infinite; }
@keyframes garden-sway { 0%,100% { transform:rotate(-4deg) scale(1.02); } 50% { transform:rotate(5deg) scale(1.09); } }
.unknown { --tilt:-.8deg; }
.unknown:after { content:""; position:absolute; bottom:0; left:8px; right:8px; border-bottom:1px dashed var(--line); transform:rotate(.7deg); }
.unknown:hover .unknown-mark { transform:rotate(8deg); }
.story-toggle { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:transparent; font:22px monospace; transition:transform .25s,background .25s; }
.story-toggle:hover,.story-toggle[aria-expanded=true] { background:var(--accent); color:var(--bg); transform:rotate(8deg); }
.project-story { padding:0 25px 25px 122px; color:var(--muted); font-size:12px; line-height:1.9; overflow-wrap:anywhere; }
.project-story h3 { color:var(--accent); font-size:10px; font-weight:400; text-transform:uppercase; letter-spacing:1.3px; margin:0 0 12px; }
.project-story p { margin:0; }
.project-story:not([hidden]) { animation:unfold .3s ease-out; }
.project:hover,.project:focus-within { background:var(--surface); transform:translateX(4px) rotate(0deg); }
.project:hover .project-arrow { transform:translate(2px,-2px); }
.stellar { --tilt:1deg; }
.stellar:after { content:"·     +     ·     +     ·"; display:block; text-align:center; color:var(--accent); font:13px monospace; letter-spacing:12px; }
.stellar:hover { transform:translate(-3px,-4px) rotate(-.5deg); }
.stellar:hover .logo img { transform:rotate(12deg); }
.patchwork { border:1px dashed var(--accent); margin:20px -5px; background:var(--surface); box-shadow:0 0 0 4px var(--surface),inset 0 0 0 5px var(--bg); }
.patchwork:after { content:"× × ×"; position:absolute; bottom:-9px; right:29px; background:var(--surface); padding:0 8px; color:var(--accent); letter-spacing:5px; font:12px monospace; transform:rotate(-4deg); }
.patchwork:hover { transform:rotate(-.7deg) translateY(-2px); }
.jugglinglab { --tilt:-1.2deg; }
.jugglinglab:after { content:""; position:absolute; bottom:0; left:5%; width:90%; height:5px; background:radial-gradient(circle,var(--accent) 1px,transparent 2px) 0 0 / 13px 5px; transform:rotate(.8deg); }
.jugglinglab:hover { animation:gentle-bounce 1.6s ease-in-out infinite; }
.jugglinglab:hover .logo img { transform:rotate(-9deg) translateY(-3px); }
.hutopia { --tilt:.5deg; }
.hutopia:after { content:""; position:absolute; bottom:0; left:10%; width:80%; height:6px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); transform:skewY(-.6deg); }
.hutopia:hover { transform:translate(5px,-2px) rotate(1deg); }
.hutopia:hover .logo img { transform:scale(1.08); }
footer { border-top:1px solid var(--line); padding:25px 0; font-size:10px; color:var(--muted); }
.skip-link { position:fixed; top:10px; left:20px; transform:translateY(-150%); background:var(--bg); padding:12px; z-index:5; }
.skip-link:focus { transform:none; }
a:focus-visible,button:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
@keyframes unfold { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
@keyframes gentle-bounce { 0%,100% { transform:rotate(-.6deg) translateY(-1px); } 50% { transform:rotate(.5deg) translateY(-5px); } }
@media(min-width:1600px) { .masthead,footer { max-width:1440px; margin:auto; } }
@media(max-width:850px) {
  .project-actions { flex-direction:column; gap:7px; }
  main { gap:40px; grid-template-columns:.85fr 1.2fr; }
  h1 { font-size:62px; letter-spacing:-4px; }
  .project-row { gap:12px; grid-template-columns:18px 48px minmax(0,1fr) max-content; padding-inline:8px; }
  .logo { width:48px; height:48px; }
    .project-name { font-size:25px; }
  .project-story { padding-left:86px; }
}
@media(max-width:650px) {
  .masthead { height:80px; } .theme-picker select { padding:8px 12px; }
  main { display:block; padding-top:45px; padding-bottom:45px; }
  .profile { max-width:100%; } h1 { font-size:76px; }
  .intro { max-width:340px; } .details { max-width:370px; }
  .work { margin-top:75px; }
  .project-row { grid-template-columns:16px 45px minmax(0,1fr) max-content; gap:10px; }
  .logo { width:45px; height:45px; } .project-name { font-size:24px; }
  .project-story { padding:0 16px 24px 16px; }
  .story-toggle,.github-link { width:30px; height:30px; } .eyebrow { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*:before,*:after { transition:none!important; animation:none!important; }
  .ambient { display:none; }
  .project:hover,.project:focus-within { transform:rotate(var(--tilt)); }
}

/* Shared profile icon and a compact, single-column layout on smaller screens. */
.profile-github { align-items:center; }
.profile-github img { flex-shrink:0; filter:invert(1); }
.page[data-theme=paper] .profile-github img { filter:none; }
.profile,.project-copy { min-width:0; }
.project-name { display:block; width:100%; max-width:none; overflow-wrap:anywhere; }
.project-arrow { margin-inline-start:.3em; white-space:nowrap; }
.project-description { width:100%; max-width:none; overflow-wrap:anywhere; }
.section-heading { gap:16px; }
.section-heading > span { flex-shrink:0; }
.not-found { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:18px; min-height:calc(100svh - 180px); text-align:center; }
.not-found h1 { margin:0; font-size:clamp(44px,9vw,110px); letter-spacing:-.055em; }
.not-found p { margin:0; color:var(--muted); font:clamp(12px,2vw,16px) "Courier New",monospace; }
@media(max-width:1000px) and (min-width:851px) {
  .project-row { grid-template-columns:20px 54px minmax(0,1fr) max-content; gap:12px; }
  .project-actions { flex-direction:column; }
  .logo { width:54px; height:54px; }
}
@media(max-width:760px) {
  main { display:block; padding-top:45px; padding-bottom:45px; }
  .profile { max-width:100%; }
  .work { margin-top:60px; }
  .not-found { display:flex; }
}
@media(max-width:420px) {
  h1 { font-size:clamp(48px,16vw,67px); letter-spacing:-.06em; }
  .project-row { grid-template-columns:12px 36px minmax(0,1fr) max-content; gap:8px; padding-inline:4px; }
  .logo { width:36px; height:36px; }
  .project-name { font-size:21px; gap:4px; letter-spacing:-.6px; }
  .project-description { font-size:10px; }
  .unknown-mark { font-size:30px; }
}
@media(pointer:coarse) {
  .project-row { grid-template-columns:16px 40px minmax(0,1fr) max-content; gap:8px; }
  .project-actions { flex-direction:column; }
  .story-toggle,.github-link { width:44px; height:44px; }
  .logo { width:40px; height:40px; }
  .theme-picker select { min-height:44px; }
}

/* A dark tear in the page: deliberately independent of the selected theme. */
.watching { width:min(100%, 720px); margin:10px auto 70px; text-align:center; isolation:isolate; }
.eye-crack { position:relative; filter:drop-shadow(0 6px 8px #0009); }
.eye-crack:before { content:""; position:absolute; inset:9% 0 5%; background:#080909;
  clip-path:polygon(0 47%,8% 36%,5% 31%,17% 32%,21% 21%,28% 24%,34% 10%,40% 16%,49% 0,55% 12%,63% 5%,68% 18%,77% 12%,82% 25%,93% 26%,90% 38%,100% 48%,92% 56%,96% 65%,84% 66%,79% 80%,70% 77%,64% 92%,57% 86%,48% 100%,40% 88%,31% 94%,26% 79%,17% 80%,15% 66%,4% 63%,8% 54%);
}
.uncanny-eye { position:relative; width:100%; aspect-ratio:1120 / 700; user-select:none; touch-action:pan-y; }
.uncanny-eye svg { position:relative; display:block; width:100%; height:100%; overflow:visible; }
.uncanny-eye [data-iris-track] { transform:translate(calc(560px + var(--iris-x, 0px)), calc(342px + var(--iris-y, 0px))); }
.uncanny-eye__breathe { transform-origin:center; animation:eye-breathe 6s ease-in-out infinite; }
.uncanny-eye [data-pupil] { animation:pupil-breathe 7s ease-in-out infinite; }
.watching-count { position:relative; margin:0; color:#bc9999; font:clamp(14px,2vw,19px) Georgia,serif; letter-spacing:.18em; text-shadow:0 0 12px #9e263b88; }
.watching-count:before { content:""; position:absolute; z-index:-1; inset:-16px calc(50% - 130px); background:#080909; clip-path:polygon(0 42%,9% 19%,26% 25%,40% 10%,61% 20%,81% 9%,93% 29%,100% 55%,88% 78%,66% 73%,48% 92%,25% 76%,8% 82%); }
.watching-count span { display:inline-block; min-width:1.5ch; font-variant-numeric:tabular-nums; }
@keyframes eye-breathe { 50% { transform:scale(1.008,.996); } }
@keyframes pupil-breathe { 50% { transform:scale(1.05); } }
@media(max-width:650px) { .watching { margin:0 auto 55px; } }
@media(prefers-reduced-motion:reduce) { .uncanny-eye__breathe,.uncanny-eye [data-pupil] { animation:none; } }
.uncanny-eye [data-aperture],.uncanny-eye [data-rim] { animation:eye-blink 8s infinite; }
.uncanny-eye [data-upper] { animation:eye-blink-upper 8s infinite; }
.uncanny-eye [data-lower] { animation:eye-blink-lower 8s infinite; }
@keyframes eye-blink {
  0%,96%,99%,100% { d:path("M 220 342 C 390 157 830 147 988 342 C 824 528 386 535 220 342 Z"); }
  97.5% { d:path("M 220 342 C 390 339 830 339 988 342 C 824 345 386 345 220 342 Z"); }
}
@keyframes eye-blink-upper {
  0%,96%,99%,100% { d:path("M 220 342 C 390 157 830 147 988 342"); }
  97.5% { d:path("M 220 342 C 390 339 830 339 988 342"); }
}
@keyframes eye-blink-lower {
  0%,96%,99%,100% { d:path("M 988 342 C 824 528 386 535 220 342"); }
  97.5% { d:path("M 988 342 C 824 345 386 345 220 342"); }
}
