/* the canvas (#canvas): experience, projects, interests. and "say hi." under it.
   the flash: blocks stand up as they scroll in (main.js [data-rise]), and project
   cards get a palette ring + lift on hover. no js of its own. */

.work { padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(40px, 8vh, 96px); }
.work-title {
  margin-top: 16px; max-width: 16ch;
  font-size: clamp(40px, 6vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -0.045em;
}
.work-block { margin-top: clamp(56px, 9vh, 96px); }
.work-h { font: 600 clamp(22px, 2.3vw, 28px)/1.15 var(--sans); color: var(--ink); letter-spacing: -0.03em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ── experience ── */
.jobs { list-style: none; padding: 0; margin: 0; }
.job { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.job img, .job-mono { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 6px; }
.job-mono { display: grid; place-items: center; padding: 0; font: 600 18px/1 var(--sans); color: #4a5468; } /* fixed: the tile is white in both themes */
.job-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.job-top b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.job-top span { color: var(--ink-2); font-size: 15px; }
.job-top time { margin-left: auto; font: 400 13px/1 var(--mono); color: var(--ink-3); }
.job p + p { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 68ch; }
.job-list { margin-top: 16px; max-width: 880px; padding: 0; list-style: none; columns: 2; column-gap: 40px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.job-list li { position: relative; padding: 5px 0 5px 18px; break-inside: avoid; }
.job-list li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.job p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.job p a:hover { text-decoration-color: var(--c0); }
.job.now .job-top b { background: linear-gradient(100deg, var(--t1), var(--t0) 45%, var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── projects ── */
.projects { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.proj {
  --a: var(--c0); --b: var(--c1);
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(20, 24, 40, .04);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
/* the ring: a palette gradient border that fades in on hover */
.proj::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--a), var(--b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
}
.proj:hover, .proj:focus-within { transform: translateY(-4px); box-shadow: 0 0 0 1px transparent, 0 22px 44px -22px color-mix(in oklab, var(--a) 70%, transparent); }
.proj:hover::before, .proj:focus-within::before { opacity: 1; }
.proj.feat { grid-column: span 2; }
.proj.feat::before { opacity: .7; }
.proj.feat { background: linear-gradient(135deg, color-mix(in srgb, var(--a) 7%, var(--bg)), color-mix(in srgb, var(--b) 7%, var(--bg))); }

.proj-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 8px 20px -10px var(--a);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.proj-ico svg { width: 22px; height: 22px; }
.proj:hover .proj-ico { transform: rotate(-8deg) scale(1.08); }
.proj-name { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.proj-name em { font: 500 13px/1 var(--mono); font-style: normal; color: var(--ink); padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--a) 16%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 50%, transparent); } /* ink on a tint: readable in every palette */
.proj-pitch { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.proj-links { margin-top: auto; padding-top: 2px; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14.5px; font-weight: 500; }
.proj-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.proj-links a:hover { text-decoration-color: var(--a); }
.proj-links a::after { content: ""; position: absolute; inset: 0; } /* first link covers the card */
.proj-links a + a { position: relative; z-index: 1; }
.proj-links a + a::after { display: none; }
.tag { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font: 500 13px/1 var(--mono); color: var(--ink-2); background: color-mix(in srgb, var(--a) 12%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 30%, transparent); }

.cta-nda-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  font: 500 14.5px/1 var(--sans); color: var(--ink);
  background: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 16%, transparent);
  cursor: pointer; transition: box-shadow .2s ease, transform .2s ease;
}
.cta-nda-btn:hover { box-shadow: inset 0 0 0 1.5px var(--c0); transform: translateY(-1px); }
.cta-nda-btn:focus-visible { border-radius: 999px; }

/* ── interests ── */
.likes { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.likes li {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: color-mix(in srgb, var(--tag) 10%, var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tag) 32%, transparent);
  transition: transform .2s ease, background .2s ease;
}
.likes li:has(a):hover { transform: translateY(-2px) rotate(-1.5deg); background: color-mix(in srgb, var(--tag) 20%, var(--bg)); }
.likes a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tag) 50%, transparent); text-underline-offset: 4px; }

/* ── say hi ── */
.say-sec { display: grid; place-items: center; padding: clamp(32px, 6vh, 72px) var(--m) clamp(48px, 9vh, 104px); }
.say-land { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 980px; }
.say-land > .label { justify-content: center; }
.say-sec .say-row { margin-top: 20px; }
.say-sec .say { font-size: clamp(80px, 14vw, 200px); line-height: .86; letter-spacing: -0.065em; padding: 0 .04em .1em; }
.say-sec .g-wave { position: relative; flex: none; margin: 0 0 .25em -.1em; } /* in the row, after "hi.", not on top of "say" */
.say-sub { margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: var(--ink-2); }
.say-sec .say-links { margin-top: 34px; justify-content: center; gap: 12px; font-size: 16px; }
.say-sec .say-links a {
  height: 50px; padding: 0 20px; gap: 9px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 12%, transparent), 0 8px 24px -14px rgba(24, 10, 70, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.say-sec .say-links a .ico { width: 17px; height: 17px; }
.say-sec .say-links a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--c0) 55%, transparent), 0 14px 30px -14px color-mix(in oklab, var(--c0) 60%, transparent); }
.say-sec .say-links .say-mail {
  order: -1; height: 58px; padding: 0 26px; font-size: 18px; font-weight: 600; color: var(--bg);
  border: 2.5px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, linear-gradient(100deg, var(--c1) 0%, var(--c0) 38%, var(--c2) 72%, var(--c3) 100%) border-box;
  box-shadow: 0 14px 34px -12px color-mix(in oklab, var(--c0) 70%, transparent);
}
.say-sec .say-links .say-mail:hover { transform: translateY(-2px) scale(1.02); }
.say-sec .say-links::after { content: ""; order: -1; flex-basis: 100%; height: 0; } /* email on its own line */

@media (max-width: 900px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; }
  .proj.feat { grid-column: auto; }
  .proj { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
  .proj-ico { width: 40px; height: 40px; }
  .proj-name { margin: 0; align-self: center; }
  .proj-pitch, .proj-links { grid-column: 1 / -1; }
  .job-top time { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-color-scheme: dark) {
  .job img { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .proj, .proj-ico, .likes li { transition: none; }
  .proj:hover, .likes li:has(a):hover, .proj:hover .proj-ico { transform: none; }
}

/* ── the demos (2026-10-25): real recordings in the project cards ── */
.projects.demos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects.demos .proj { padding: 14px 14px 22px; }
.projects.demos .proj > :not(.demo) { padding-left: 8px; padding-right: 8px; }
.demo { margin: 0 0 6px; }
/* the video sits in a palette-gradient frame that follows the colour dots up top */
.demo video {
  display: block; width: 100%; height: auto; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 30%, var(--bg)), color-mix(in srgb, var(--b) 30%, var(--bg)));
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--a) 45%, transparent), 0 18px 40px -26px color-mix(in oklab, var(--a) 80%, transparent);
}
.demo figcaption { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; padding: 0 4px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.demo figcaption a { position: relative; z-index: 2; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.demo figcaption a:hover { text-decoration-color: var(--a); }
.demo figcaption a::after { content: ''; position: absolute; inset: -14px -8px; } /* 44px target */
.projects.demos .proj:hover, .projects.demos .proj:focus-within { transform: none; } /* a moving video under the pointer is too much */
.projects.demos + .projects { margin-top: 16px; }
@media (max-width: 760px) {
  .projects.demos { grid-template-columns: 1fr; }
  .projects.demos .proj { display: flex; padding: 10px 10px 18px; }
  .projects.demos .proj.feat { grid-column: auto; }
}

/* exowatt's numbers, under the job line */
.stats { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.stats li { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 14px; min-width: 190px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 9%, var(--bg)), color-mix(in srgb, var(--c2) 9%, var(--bg)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c0) 22%, transparent); }
.stats b { font-size: 28px; line-height: 1; font-weight: 650; letter-spacing: -0.04em; background: linear-gradient(100deg, var(--t1), var(--t0) 45%, var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font: 400 13px/1.3 var(--mono); color: var(--ink-2); }
.job.now p + p { font-size: 16.5px; }
#work { padding-top: clamp(32px, 6vh, 72px); padding-bottom: clamp(24px, 6vh, 64px); }
#canvas { padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(16px, 3vh, 40px); }
#canvas > .work-block:first-child { margin-top: 0; }
.reel-end .pill { border: 0; cursor: pointer; font: 500 15px/1 var(--sans); }

/* 2026-10-27: the aws blog line, the nyse photo, the drone shots */
.job-pub { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; line-height: 1.5; }
.job-pub span { font: 500 13px/1 var(--mono); color: var(--ink-2); padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c0) 10%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c0) 28%, transparent); }
.job-pub small { font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.job-photo { margin: 14px 0 0; max-width: 560px; }
.job-photo img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.job-photo figcaption { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; color: var(--ink-2); }
.job-photo small, .job-post figcaption, .job-post-k { font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.job-pub a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.job-pub a:hover { text-decoration-color: var(--c0); }
.job .job-photo img { width: 100%; height: auto; padding: 0; background: none; object-fit: cover; border-radius: 12px; }
.job-film { margin: 18px 0 0; max-width: 720px; }

/* copper, first and fullest (2026-10-27) */
.copper-points { margin: 8px 0 0; padding: 0 8px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.copper-points li { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.copper-points b { color: var(--ink); font-weight: 600; }
.copper-shots { margin: 14px 0 0; padding: 0 8px; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.copper-shots img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 35%, transparent); }
.copper-shots span { display: block; margin-top: 6px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
@media (max-width: 760px) { .copper-points { grid-template-columns: 1fr; } .copper-shots { grid-template-columns: 1fr 1fr; } .copper-shots li:last-child { display: none; } }
.projects.copper-spot { grid-template-columns: 1fr; }
.copper-spot .proj { padding: 14px 14px 22px; }
.copper-spot .proj > :not(.copper-media) { padding-left: 8px; padding-right: 8px; }
.copper-spot .proj:hover, .copper-spot .proj:focus-within { transform: none; }
.copper-spot .proj.feat { grid-column: auto; }
.copper-spot .proj-links a::after { display: none; } /* a whole-card link would cover the shots */
.copper-spot .copper-shots { padding: 0; }
@media (min-width: 900px) {
  .copper-spot .proj { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 32px; row-gap: 8px; align-content: start; }
  .copper-spot .copper-media { grid-column: 1; grid-row: 1 / span 4; }
  .copper-spot .proj > :not(.copper-media) { grid-column: 2; padding-left: 0; }
  .copper-spot .copper-points { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .copper-spot .proj { display: flex; flex-direction: column; padding: 10px 10px 18px; } .copper-spot .proj-name { margin-top: 6px; align-self: flex-start; } }

/* the drone post, small, under exowatt */
.job-post { margin-top: 16px; max-width: 600px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c3) 5%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); }
.job-post h4 { margin: 4px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.job .job-post p + p, .job-post > p:not(.job-post-k) { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.job-post-shots { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.job-post figure { margin: 0; }
.job .job-post img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; padding: 0; background: none; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.job-post figcaption { margin-top: 6px; }
.job-post > p:not(.job-post-k) { margin: 4px 0 0 !important; font-size: 14.5px; }

/* open source (2026-11-09): two groups of repo links, each one panel with hairlines between cells */
.oss { margin-top: 24px; display: grid; gap: 32px; }
.oss-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.oss-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.oss-k a { position: relative; padding: 5px 10px; border-radius: 999px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s; }
.oss-k a::after { content: ''; position: absolute; inset: -9px -2px; } /* 44px target */
.oss-k a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--c0); }
.oss-list { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; list-style: none; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.oss-list li { display: flex; background: var(--bg); }
.oss-list a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 15px; transition: background .2s; }
.oss-list a:hover { background: color-mix(in srgb, var(--c0) 5%, var(--bg)); }
.oss-list b { font: 500 14.5px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.oss-list a:hover b { color: var(--t0); }
.oss-list span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.oss-list code { font: 400 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.oss-list li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; } /* no lone cell next to two blanks */
.oss-list li:last-child:nth-child(3n + 2) { grid-column: span 2; }
@media (max-width: 900px) {
  .oss-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oss-list li:last-child:nth-child(3n + 1), .oss-list li:last-child:nth-child(3n + 2) { grid-column: auto; }
  .oss-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.oss-more { display: none; }
@media (max-width: 560px) { /* phones: one column, still saying what each repo is. five, then the rest on a tap */
  .oss-list { grid-template-columns: 1fr; }
  .oss-list li:last-child:nth-child(odd) { grid-column: auto; }
  .oss-list a { padding: 12px 14px 13px; }
  .oss-list span { font-size: 14px; }
  html.js .oss-list:not(.is-open) li:nth-child(n+6) { display: none; }
  html.js .oss-more { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 12px; font: 500 14px/1 var(--sans); color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
}

/* round 1 of the council (2026-11-09) */
.job-pub a { display: inline-block; padding: 11px 0; margin: -11px 0; } /* a 44px target for a one-line link */
@media (max-width: 600px) {
  /* the logo sits beside the job's first line; everything under it gets the full width back */
  .job-top { min-height: 40px; align-content: center; }
  .job > div > :not(.job-top) { margin-left: -58px; }
  .job-list { columns: 1; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stats li { min-width: 0; }
}

/* round 2 of the council (2026-11-09) */
/* wide screens: the job's proof sits beside its words instead of under them, so the right half isn't empty */
@media (min-width: 1100px) {
  .job.now > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); column-gap: 48px; align-items: start; }
  .job.now > div > * { grid-column: 1; }
  .job.now > div > .job-top, .job.now > div > .job-pub { grid-column: 1 / -1; }
  .job.now > div > .job-post { grid-column: 2; grid-row: 2 / span 3; margin-top: 6px; max-width: none; }
  .job.now .job-list { columns: 1; }
  .job:has(.job-photo) > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); column-gap: 48px; align-items: start; }
  .job:has(.job-photo) > div > .job-top { grid-column: 1 / -1; } /* the date sits at the far right, like every other job */
  .job:has(.job-photo) .job-photo { grid-column: 2; grid-row: 2 / span 2; margin-top: 4px; max-width: none; }
  .job.now .stats { display: grid; grid-template-columns: 1fr 1fr; }
  .job.now .stats li { min-width: 0; }
  /* copper: the recording sits centred against the taller column of words, instead of leaving a band under it */
  .copper-spot .copper-media { align-self: center; }
}
@media (prefers-color-scheme: dark) { .job img, .job-mono { background: #e9ecf3; } } /* the logo tiles: off-white, so they don't glare */

/* ── the redo (2026-11-10): a visual exowatt block, earlier jobs as one-liners, folds, click-to-zoom ── */
.work-title { max-width: none; }
.exo .job-top img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 6px; align-self: center; }
.exo .job-top b { font-size: 24px; background: linear-gradient(100deg, var(--t1), var(--t0) 45%, var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.exo .job-top { align-items: center; }
.exo-lead { margin-top: 14px; max-width: 62ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.exo-lead a, .chart-src a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.exo .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exo .stats li { min-width: 0; }
.viz { margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.chart, .shot, .viz-note { margin: 0; grid-column: span 2; }
.chart { grid-column: span 3; display: flex; flex-direction: column; padding: 18px 18px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.chart figcaption { display: flex; flex-direction: column; gap: 3px; }
.chart figcaption b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.chart figcaption span, .chart-src { font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.chart-src { margin-top: 12px; }
/* columns: one per month. the number sits on its bar */
.bars { flex: 1; min-height: 190px; margin: 14px 0 0; padding: 0; list-style: none; display: flex; align-items: stretch; gap: 6px; }
.bars li { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.bars b, .bars span { font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ink-2); }
.bars span { color: var(--ink-3); }
.bars i { width: 100%; height: calc((100% - 40px) * var(--h)); min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--c1), var(--c0)); transition: background .8s; }
/* rows: ours against the frontier models */
.hbars { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.hbars b { font: 600 14.5px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.hbars i { grid-column: 1 / -1; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 20%, var(--bg)); }
.hbars .us { color: var(--ink); font-weight: 600; }
.hbars .us i { height: 22px; background: linear-gradient(90deg, var(--c1), var(--c0) 55%, var(--c2)); transition: background .8s; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.shot figcaption { margin-top: 7px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.viz-note { align-self: center; padding: 4px 8px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.viz-note b { display: block; font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 8px; }

/* before exowatt: one line each */
.jobs-mini { list-style: none; margin: 0; padding: 0; }
.jobs-mini li { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.jobs-mini li > img:first-child, .jobs-mini .job-mono { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 3px; }
.jobs-mini .job-mono { padding: 0; font-size: 12px; font-style: normal; }
.jobs-mini b { font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.jobs-mini span { color: var(--ink-2); }
.jobs-mini time { grid-column: 5; font: 400 13px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.job-thumb { grid-column: 4; width: 48px; height: 30px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { .jobs-mini li > img:first-child, .jobs-mini .job-mono, .exo .job-top img { background: #e9ecf3; } }

/* the rest of the page, folded: copper in detail, open source, interests */
.folds { padding-top: clamp(28px, 5vh, 56px); }
.fold { border-bottom: 1px solid var(--line); }
.fold:first-child { border-top: 1px solid var(--line); }
.fold summary { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 20px 44px 20px 0; position: relative; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); rotate: 45deg; transition: rotate .25s ease, margin .25s ease; }
.fold[open] summary::after { rotate: 225deg; margin-top: -2px; }
.fold-t { font: 600 clamp(20px, 2.1vw, 26px)/1.15 var(--sans); letter-spacing: -0.03em; }
.fold-s { font-size: 15px; color: var(--ink-3); }
.fold summary:hover .fold-t { color: var(--t0); }
.fold > :not(summary) { margin-top: 4px; margin-bottom: 28px; }
.fold .projects { margin-top: 4px; }

/* click a picture to see it big */
.shot img, .job-thumb, .copper-shots img { cursor: zoom-in; }
.zoom { padding: 0; border: 0; background: none; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; cursor: zoom-out; }
.zoom[open] { display: grid; place-items: center; }
.zoom::backdrop { background: rgba(7, 10, 20, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zoom img { max-width: 94vw; max-height: 92vh; max-height: 92dvh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px #000; }

@media (max-width: 900px) {
  .chart { grid-column: 1 / -1; }
  .shot, .viz-note { grid-column: span 3; }
  .bars { flex: none; height: 170px; gap: 4px; }
}
@media (max-width: 600px) {
  .exo .stats { grid-template-columns: 1fr; }
  .jobs-mini li { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .jobs-mini span { grid-column: 2 / -1; grid-row: 2; }
  .jobs-mini time { grid-column: 3; grid-row: 1; }
  .job-thumb { display: none; }
  .viz-note { padding: 0; font-size: 15.5px; }
  .viz-note b { font-size: 18px; }
  .chart { padding: 16px 14px 12px; }
}

/* ── one material (2026-11-10): the graphics are the ink at a few strengths, like the github squares
   in the hero. the palette stays in the sky, the reel's backdrop and "say hi." ── */
.work { --g1: color-mix(in srgb, var(--ink) 5%, transparent); --g2: color-mix(in srgb, var(--ink) 14%, transparent); --g3: color-mix(in srgb, var(--ink) 30%, transparent); --g4: color-mix(in srgb, var(--ink) 55%, transparent); }
.exo .job-top b, .exo .stats b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.exo .stats li { background: var(--g1); box-shadow: inset 0 0 0 1px var(--g2); }
.chart { background: var(--g1); box-shadow: inset 0 0 0 1px var(--g2); }
.bars i { background: var(--ink); opacity: calc(.3 + .7 * var(--h)); } /* taller months are stronger, like busier days */
.hbars i { background: var(--g2); }
.hbars .us i { background: var(--ink); }
.oss-k i { background: var(--g4); }
.oss-k a:hover { box-shadow: inset 0 0 0 1px var(--g4); }
.tag, .proj-name em { background: var(--g1); box-shadow: inset 0 0 0 1px var(--g2); }
.likes li, .likes li:has(a):hover { background: var(--g1); box-shadow: inset 0 0 0 1px var(--g2); }
.likes li:has(a):hover { background: var(--g2); }
.likes a { text-decoration-color: var(--g3); }
.proj.feat { background: var(--g1); }
.proj::before, .proj.feat::before { background: var(--g3); }
.proj:hover, .proj:focus-within { box-shadow: 0 0 0 1px transparent, 0 22px 44px -26px var(--g4); }
.proj-ico { color: var(--bg); background: var(--ink); box-shadow: none; }

/* the wireframe drawings (js/wire.js): the ink on a faint glass panel, like the charts */
.wire-fig { margin: 0; grid-column: span 2; }
.wire-fig canvas { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; color: var(--ink); background: var(--g1); box-shadow: inset 0 0 0 1px var(--g2); }
.wire-fig figcaption { margin-top: 7px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.wire-lab { grid-column: span 4; }
.wire-lab canvas { aspect-ratio: 2 / 1; }
@media (max-width: 900px) { .wire-lab { grid-column: 1 / -1; } .wire-lab canvas { aspect-ratio: 16 / 10; } .wire-fig:not(.wire-lab) { grid-column: span 3; } .viz-note { grid-column: 1 / -1; } }

/* featured in: four quiet links in the ink, like the charts */
.feat { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.feat a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--g1); box-shadow: inset 0 0 0 1px var(--g2); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.feat a:hover { background: var(--g2); }
.feat-k { font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); }
.feat-t { font-size: 15px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 900px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .feat { grid-template-columns: 1fr; } }

/* ── exowatt, in tiers (2026-11-20): the aws post and the patents first, then what i built in a line
   each, then the drone and the quieter mentions ── */
.feat { margin: 14px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tops { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
.top { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 18px; background: var(--g1); box-shadow: inset 0 0 0 1px var(--g2); color: var(--ink); text-decoration: none; }
a.top { transition: background-color .2s, box-shadow .2s; }
a.top:hover { background: var(--g2); }
.top-k { font: 500 13px/1.3 var(--mono); color: var(--ink-3); }
.top-t { font-size: clamp(21px, 2vw, 26px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.top-s { max-width: 52ch; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.top .hbars { margin: 6px 0 0; gap: 8px; }
.top .hbars i { order: 1; height: 10px; } /* name and score on one line, the bar under them */
.work-block.exo { margin-top: clamp(32px, 5vh, 56px); }
.top .hbars .us i { height: 16px; }
.top-go { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a.top:hover .top-go { text-decoration-color: var(--ink); }
.top-n { font-size: clamp(64px, 7vw, 96px); line-height: .9; font-weight: 650; letter-spacing: -0.06em; }
.top-pat .top-k { margin-bottom: 4px; }
.top-pat .top-n { margin-top: auto; }
.work-sub { margin-top: 40px; font: 500 13px/1 var(--mono); color: var(--ink-3); }
.exo-built { margin-top: 12px; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.exo-built li { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.exo-built b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.exo-built span { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.exo-built a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.exo-built a:hover { text-decoration-color: var(--c0); }
.exo-built + .viz { margin-top: 20px; }
/* the fellowship post: one slim row under the two cards (2026-11-21) */
.top-more { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 16px; padding: 16px 24px; }
.top-more .top-t { font-size: 17px; font-weight: 550; letter-spacing: -0.015em; }
.top-more .top-go { margin: 0 0 0 auto; padding: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .top-more { flex-direction: column; gap: 6px; padding: 16px 18px; }
  .top-more .top-go { margin: 4px 0 0; }
  .tops, .exo-built { grid-template-columns: 1fr; }
  .top { padding: 18px; }
  .top-pat .top-n { margin-top: 0; }
  .feat { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .exo .viz .shot { grid-column: span 2; } }
@media (max-width: 600px) { .exo .viz .shot { grid-column: span 3; } .exo .viz .wire-fig { display: none; } } /* phones: the two photos */
.say-sec .say-links .say-x { width: 50px; padding: 0; justify-content: center; } /* x: the mark alone */
