@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local(Arial); ascent-override: 75.79%; descent-override: 22.29%; line-gap-override: 0%; size-adjust: 134.59%; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Fallback"; src: local(Arial); ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }
@font-face { font-family: "Yellowtail"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/yellowtail.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Yellowtail Fallback"; src: local(Arial); ascent-override: 128.39%; descent-override: 39.81%; line-gap-override: 11.87%; size-adjust: 75.68%; }

:root {
  color-scheme: light;
  --font-ui: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
  --font-text: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Yellowtail", "Yellowtail Fallback", cursive;
  --background: #fff4ec;
  --foreground: #2b1030;
  --muted-foreground: #2b1030a6;
  --hairline: #2b103014;
  --accent: #d81b7a;
  --on-accent: #fff;
  --mark-ink: #c2410c;
  --mark-tint: #ff8a3d33;
  --surface: #2b10300a;
  --border: #2b103024;
  --line-strong: #2b103045;
  --line-soft: #2b10303d;
  --line: #2b10301c;
  --live: #0f8f8a;
  --shadow: #2b10301a;
  --code-bg: #2b10300d;
  --section-gap: 2.6rem;
  --smooth: cubic-bezier(.16, 1, .3, 1);
  --column: 35rem;
  --article-column: 42.5rem;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --background: #130a24;
  --foreground: #fdebf4;
  --muted-foreground: #fdebf4a3;
  --hairline: #fdebf414;
  --accent: #ff4fa3;
  --on-accent: #130a24;
  --mark-ink: #ffa24c;
  --mark-tint: #ffa24c2e;
  --surface: #fdebf40a;
  --border: #fdebf424;
  --line-strong: #fdebf440;
  --line-soft: #fdebf43d;
  --line: #fdebf41f;
  --live: #3ee6e0;
  --shadow: #0006;
  --code-bg: #fdebf40d;
}

* { box-sizing: border-box; }
html { background: var(--background); font-size: clamp(1rem, .3125vw + .75rem, 1.25rem); }
html, body { overflow-x: clip; }
body { background: var(--background); color: var(--foreground); margin: 0; }
pre, code, kbd, samp { font-family: var(--font-ui); }
a { color: inherit; }
button, summary { font: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.portfolio {
  width: min(var(--column), calc(100% - 48px));
  font-family: var(--font-ui);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 3.5rem;
  font-size: .8125rem;
  line-height: 20px;
}

/* ---------- intro ---------- */
.intro { position: relative; }
.vice-sky {
  pointer-events: none;
  width: 100vw;
  height: clamp(200px, 34vw, 440px);
  margin: calc(-1 * clamp(3rem, 8vw, 6rem)) 0 0 calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 40%, #0000 98%);
  mask-image: linear-gradient(#000 40%, #0000 98%);
}
.vice-sky img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 64%;
  transform-origin: 50% 70%;
  animation: 26s ease-in-out infinite alternate sky-drift, 11s ease-in-out infinite alternate sky-light;
}
@keyframes sky-drift { 0% { transform: scale(1.04) translate(-1.2%); } to { transform: scale(1.13) translate(1.2%, -1.5%); } }
@keyframes sky-light { 0% { opacity: .92; } to { opacity: 1; } }
:root[data-theme=dark] .vice-sky img { filter: brightness(.78) saturate(1.15); }

.intro .neon-name {
  width: fit-content;
  font-family: var(--font-display);
  color: #0000;
  background: linear-gradient(100deg, var(--accent) 15%, var(--mark-ink) 85%);
  filter: drop-shadow(0 0 .12em color-mix(in srgb, var(--accent) 60%, transparent)) drop-shadow(0 2px 0 color-mix(in srgb, var(--background) 70%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  margin: clamp(-5rem, -9vw, -2.75rem) 0 0 -.05em;
  padding: 0 .15em .05em 0;
  /* Sized so the full name stays on one line from 320px phones up. */
  font-size: clamp(1.8rem, 11vw, 4.5rem);
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.15;
  position: relative;
  transform-origin: 0 100%;
  cursor: default;
  user-select: none;
  animation: 1.3s step-end .35s both neon-on;
  rotate: -4deg;
}
.intro .neon-name[data-flicker] { animation: .9s step-end neon-flicker; }
@keyframes neon-on { 0% { opacity: .08; } 12% { opacity: 1; } 18% { opacity: .25; } 28% { opacity: 1; } 34% { opacity: .5; } 40%, to { opacity: 1; } }
@keyframes neon-flicker { 0%, to { opacity: 1; } 10% { opacity: .35; } 18% { opacity: 1; } 30% { opacity: .55; } 38% { opacity: 1; } }

.intro p.tagline {
  min-height: 1.45em;
  font-family: var(--font-text);
  color: var(--muted-foreground);
  text-wrap: balance;
  margin: .4rem 0 .95rem;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
}
.tagline-line {
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  animation: tagline-in .55s var(--smooth) both;
  background: 0 0; border: 0; padding: 0;
}
.tagline-line:hover { color: var(--foreground); }
@keyframes tagline-in { 0% { opacity: 0; translate: 0 .4em; } }

.intro p, .connect p { color: var(--muted-foreground); margin: 0; }
.intro p.intro-headline {
  color: var(--foreground);
  font-family: var(--font-ui);
  opacity: .78;
  margin: .15rem 0 1.1rem;
  font-size: .75rem;
  line-height: 20px;
}
.intro p, .connect p, .stint-points, .section-lede, .project-tagline, .project-body p, .page-lede, .post-row small {
  font-family: var(--font-text);
  font-size: .90625rem;
  line-height: 1.62;
}
.post-row small { font-size: .8125rem; }
.intro p + p, .connect p + p { margin-top: 1rem; }

.mark { position: relative; }
.mark-highlight { color: var(--foreground); }
.mark-circle, .mark-box { white-space: nowrap; }
.rough-annotation { z-index: 0; }

/* ---------- sections ---------- */
.section { margin-top: var(--section-gap); }
.section.first { border-top: 1px solid var(--hairline); margin-top: 2.1rem; padding-top: 1.5rem; }
.label { color: var(--muted-foreground); margin: 0; padding-bottom: .65rem; font-size: .8125rem; font-weight: 500; line-height: 20px; }
.label-row { justify-content: space-between; align-items: baseline; gap: 1rem; display: flex; }
.label-link { color: var(--muted-foreground); transition: color .2s var(--smooth); flex: none; padding-bottom: .65rem; font-size: .75rem; text-decoration: none; }
.label-link:after { content: "↗"; opacity: .55; transition: transform .2s var(--smooth), opacity .2s var(--smooth); margin-left: .18em; font-size: .9em; display: inline-block; }
.label-link:hover { color: var(--accent); }
.label-link:hover:after { opacity: 1; }
.label-link[data-download]:after { content: "↓"; }
.label-link[data-internal]:after { content: "→"; }
.section-lede { color: var(--muted-foreground); margin: 0 0 1rem; }

/* ---------- experience ---------- */
.stints { gap: 1.5rem; display: grid; }
.stint-head, .stint-line-head { justify-content: space-between; align-items: baseline; gap: 1rem; display: flex; }
.stint-company { font-weight: 550; }
.stint-dot { background: var(--live); vertical-align: middle; border-radius: 50%; width: .4em; height: .4em; margin-left: .45em; animation: 2.4s ease-out infinite tag-pulse; display: inline-block; }
@keyframes tag-pulse { 0%, to { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.72); } }
.stint-period { color: var(--muted-foreground); flex: none; font-size: .6875rem; }
.stint-role { color: var(--muted-foreground); font-size: .75rem; display: block; }
.stint-points { color: var(--muted-foreground); gap: .3rem; margin: .45rem 0 0; padding: 0; list-style: none; display: grid; }
.stint-points li, .project-metrics li { padding-left: 1.1rem; position: relative; }
.stint-points li:before, .project-metrics li:before { content: "›"; color: var(--line-strong); position: absolute; left: .1rem; }
.stint-points strong { color: var(--foreground); font-family: var(--font-ui); font-size: .8125rem; font-weight: 550; }
.stint-lines { gap: .45rem; margin: 0; padding: 0; list-style: none; display: grid; }
.stint-line { transition: opacity .22s var(--smooth); }
.stint-line-more { opacity: 0; transition: grid-template-rows .32s var(--smooth), opacity .2s var(--smooth); grid-template-rows: 0fr; display: grid; }
.stint-line-body { min-height: 0; overflow: hidden; }
.stint-line-body .stint-points { margin: 0; padding-top: .15rem; font-size: .8125rem; line-height: 1.55; }
.stint-line-more p { min-height: 0; color: var(--muted-foreground); font-family: var(--font-text); margin: 0; font-size: .8125rem; line-height: 1.55; overflow: hidden; }
.stint-line:focus-within .stint-line-more { opacity: 1; grid-template-rows: 1fr; }
.stint-line:focus-within .stint-line-more p { padding-top: .15rem; }
@media (hover: hover) and (pointer: fine) {
  .stint-line:hover .stint-line-more { opacity: 1; grid-template-rows: 1fr; }
  .stint-line:hover .stint-line-more p { padding-top: .15rem; }
  .stint-lines:has(.stint-line:hover) .stint-line:not(:hover) { opacity: .45; }
}
.stint-line-main { flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; min-width: 0; display: flex; }
.stint-line .stint-company { font-weight: 500; }
.stint-line-role { color: var(--muted-foreground); font-size: .75rem; }

/* ---------- buttons ---------- */
.actions { flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; display: flex; }
.action {
  height: 30px; color: var(--foreground); font: inherit; white-space: nowrap;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s var(--smooth), background .2s var(--smooth), color .2s var(--smooth), transform .15s var(--smooth);
  background: 0 0; border-radius: 6px; align-items: center; padding: 0 .7rem;
  font-size: .75rem; font-weight: 500; text-decoration: none; display: inline-flex;
}
.action:hover { border-color: var(--line-strong); background: var(--surface); }
.action:active { transform: scale(.96); }
.action:focus-visible, .action-quiet:focus-visible, .project-summary:focus-visible, .theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.action.primary { color: var(--on-accent); background: linear-gradient(100deg, var(--accent), var(--mark-ink)); border-color: #0000; font-weight: 600; }
.action.primary:hover { filter: brightness(1.08); }
.action[data-download]:after { content: "↓"; opacity: .7; transition: transform .2s var(--smooth), opacity .2s var(--smooth); margin-left: .35em; display: inline-block; }
.action[target=_blank]:not([data-download]):after { content: "↗"; opacity: .5; transition: transform .2s var(--smooth), opacity .2s var(--smooth); margin-left: .3em; font-size: .9em; display: inline-block; }
.action:hover:after { opacity: 1; }
.action-swap { display: inline-grid; overflow: hidden; }
.action-swap > span { text-align: center; transition: opacity .18s var(--smooth), translate .32s var(--smooth); grid-area: 1/1; }
.action-swap > span:last-child { opacity: 0; translate: 0 70%; }
.action-swap[data-copied] > span:first-child { opacity: 0; translate: 0 -70%; }
.action-swap[data-copied] > span:last-child { opacity: 1; color: var(--live); translate: 0; }
.action-check { transition: scale .4s cubic-bezier(.34, 1.56, .64, 1) 60ms; display: inline-block; scale: .4; }
.action-swap[data-copied] .action-check { scale: 1; }
.action-quiet { color: var(--muted-foreground); transition: color .2s var(--smooth); margin-left: .25rem; font-size: .75rem; text-decoration: none; }
.action-quiet span { transition: transform .2s var(--smooth); margin-right: .2em; font-size: .8em; display: inline-block; }
.action-quiet:hover { color: var(--accent); }
.quiet-links { flex-wrap: wrap; gap: .3rem 1.4rem; margin-top: .85rem; display: flex; }
.quiet-links .action-quiet { margin-left: 0; }

/* ---------- projects ---------- */
.projects { border-top: 1px solid var(--hairline); interpolate-size: allow-keywords; }
.project { border-bottom: 1px solid var(--hairline); }
.project-summary { cursor: pointer; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding: 12px 1.4rem 12px 0; list-style: none; display: grid; position: relative; }
.project-summary::-webkit-details-marker { display: none; }
.project-summary:after { content: "+"; color: var(--muted-foreground); transition: transform .3s var(--smooth), color .2s var(--smooth); font-size: .875rem; position: absolute; top: 11px; right: 0; }
.project[open] .project-summary:after { color: var(--foreground); transform: rotate(45deg); }
.project-summary:active:after { scale: .8; }
.project-name { transition: color .2s var(--smooth), transform .26s var(--smooth) 45ms; font-weight: 600; display: inline-block; }
.project-stat { color: var(--mark-ink); font-variant-numeric: tabular-nums; white-space: nowrap; align-self: baseline; font-size: .75rem; }
.project-tagline { color: var(--muted-foreground); grid-column: 1/-1; margin-top: .1rem; }
.project-summary:hover .project-name, .project[open] .project-name { color: var(--accent); }
.projects:has(.project-summary:hover) .project:not(:has(.project-summary:hover)):not([open]) { opacity: .5; transition: opacity .22s var(--smooth); }
.project::details-content { opacity: 0; block-size: 0; transition: block-size .34s var(--smooth), opacity .2s var(--smooth), content-visibility .34s allow-discrete; overflow: hidden; }
.project[open]::details-content { opacity: 1; block-size: auto; }
.project-body { padding: 0 0 1rem; }
.project-body > * { opacity: 0; transition: opacity .2s var(--smooth), translate .34s var(--smooth); translate: -6px; }
.project[open] .project-body > * { opacity: 1; transition-delay: calc(var(--i, 0) * 50ms + 70ms); translate: 0; }
@starting-style { .project[open] .project-body > * { opacity: 0; translate: -6px; } }
.project-body > :nth-child(2) { --i: 1; }
.project-body > :nth-child(3) { --i: 2; }
.project-body > :nth-child(4) { --i: 3; }


.project-metrics { gap: .2rem; margin: .1rem 0 0; padding: 0; font-size: .75rem; list-style: none; display: grid; }
.project-body p.project-challenge { color: var(--muted-foreground); margin: .8rem 0 0; }
.project-challenge strong { color: var(--foreground); font-weight: 600; }
.project-foot { flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; margin-top: .8rem; font-size: .75rem; display: flex; }
.project-stack { color: var(--muted-foreground); }
.project-links { gap: .9rem; margin-left: auto; display: inline-flex; }

/* underlined links */
.project-links a, .connect-socials a, .page-footer a, .stint-company a, .inline-link {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--line-soft);
  text-underline-offset: 3px;
  transition: color .2s var(--smooth), text-decoration-color .2s var(--smooth);
}
.project-links a:hover, .connect-socials a:hover, .page-footer a:hover, .stint-company a:hover, .inline-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.project-links a:after, .connect-socials a[target=_blank]:after, .stint-company a:after { content: "↗"; opacity: .5; transition: transform .2s var(--smooth), opacity .2s var(--smooth); margin-left: .15em; font-size: .9em; line-height: 1; display: inline-block; }
.project-links a:hover:after, .connect-socials a:hover:after, .stint-company a:hover:after { opacity: 1; }

/* ---------- rows (writing / open source) ---------- */
.row-list { --folder: var(--accent); }
.work-row { min-height: 35px; color: var(--foreground); transition: opacity .2s, transform .25s var(--smooth); grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 6px 0; text-decoration: none; display: grid; position: relative; }
.work-title { min-width: 0; transition: transform .26s var(--smooth) 45ms, color .24s var(--smooth) 40ms; }
.work-title small { color: var(--muted-foreground); margin-left: .5rem; font-size: .6875rem; }
.work-meta { color: var(--muted-foreground); text-align: right; transition: color .24s var(--smooth) 40ms; flex: none; font-size: .6875rem; }
.work-row:hover .work-title, .work-row:hover .work-meta { color: var(--folder); }
.work-row:hover .work-meta { color: color-mix(in srgb, var(--folder) 72%, transparent); }
.row-list:has(.work-row:hover) .work-row:not(:hover) { opacity: .38; transition: opacity .22s var(--smooth); }
.more-link { color: var(--muted-foreground); transition: color .2s var(--smooth), transform .25s var(--smooth); margin-top: .7rem; text-decoration: none; display: inline-block; }
.more-link:hover { color: var(--accent); }

/* ---------- stack ---------- */
.stack { gap: .45rem; margin: 0; display: grid; }
.stack div { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; display: grid; }
.stack dt { color: var(--muted-foreground); font-size: .75rem; }
.stack dd { margin: 0; font-size: .75rem; }

/* ---------- approach ---------- */
.approach { counter-reset: approach; gap: .45rem; margin: 0; padding: 0; list-style: none; display: grid; }
.approach li { counter-increment: approach; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .4rem; display: grid; }
.approach li:before { content: counter(approach, decimal-leading-zero); color: var(--muted-foreground); font-variant-numeric: tabular-nums; align-self: baseline; font-size: .6875rem; }
.approach strong { color: var(--foreground); font-weight: 550; }

/* ---------- connect + footer ---------- */
.connect .actions { margin: 1rem 0 1.25rem; }
.connect-socials { flex-wrap: wrap; gap: .35rem 1.15rem; margin: 1.1rem 0 0; padding: 0; font-size: .75rem; line-height: 20px; list-style: none; display: flex; }
.connect-site { margin-top: .55rem; }
.site-footer { border-top: 1px solid var(--hairline); color: var(--muted-foreground); margin-top: 3rem; padding-top: 1.1rem; font-size: .8125rem; line-height: 20px; justify-content: space-between; align-items: center; gap: 1rem; display: flex; }
.footer-line { flex-wrap: wrap; align-items: center; display: inline-flex; }
.clock { color: var(--foreground); font-variant-numeric: tabular-nums; margin-right: .35em; }

/* the cat */
.pet { color: color-mix(in srgb, var(--foreground) 45%, transparent); align-items: center; gap: 7px; margin-left: 7px; display: inline-flex; position: relative; line-height: 0; animation: .48s cubic-bezier(.34, 1.56, .64, 1) .92s both pet-pop; }
.cat-bubble {
  --shift: -50%;
  background: var(--background); width: max-content; max-width: min(210px, 62vw);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 2px 6px var(--shadow);
  color: var(--foreground); text-align: left; text-wrap: pretty; opacity: 0; pointer-events: none; z-index: 20;
  transform: translateX(var(--shift)) translateY(3px) scale(.9); transform-origin: bottom;
  border-radius: 8px 8px 8px 2px; padding: 5px 8px 4px; font-size: .6875rem; font-weight: 500; line-height: 1.3;
  transition: opacity .22s var(--smooth), transform .26s cubic-bezier(.34, 1.56, .64, 1);
  position: absolute; bottom: calc(100% + 7px); left: 1.3em;
}
.cat-bubble span { white-space: pre; opacity: 0; display: inline-block; transform: translateY(3px); }
.cat-bubble.is-visible span { animation: .26s var(--smooth) both bubble-char; animation-delay: calc(var(--i) * 26ms); }
@keyframes bubble-char { to { opacity: 1; transform: translateY(0); } }
.cat-bubble.is-visible { opacity: 1; transform: translateX(var(--shift)) translateY(0) scale(1); }
.pet-button, .feed-button { color: inherit; cursor: pointer; transition: color .2s var(--smooth), transform .14s var(--smooth); background: 0 0; border: 0; padding: 0; line-height: 0; position: relative; }
.pet-button:after, .feed-button:after { content: ""; position: absolute; inset: -8px; }
.pet-button:hover, .feed-button:hover { color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.pet-cat { width: 2.6em; height: 2.08em; display: block; overflow: visible; }
.pet-fish { width: 1.23em; height: .77em; color: color-mix(in srgb, var(--foreground) 35%, transparent); display: block; animation: 3.7s ease-in-out infinite fish-swim; }
.cat-body, .cat-tail, .cat-eyes, .pet-fish { transform-box: fill-box; transform-origin: 50%; }
.fish-body, .fish-tail { transform-box: fill-box; }
.fish-body { transform-origin: 100%; animation: 1.15s ease-in-out infinite fish-wiggle; }
.fish-tail { transform-origin: 0; animation: 1.15s ease-in-out infinite fish-wag; }
.feed-button:hover .fish-tail, .feed-button:hover .fish-body { animation-duration: .5s; }
.cat-tail { transform-origin: 0 100%; animation: 8s ease-in-out 3s infinite tail-sway; }
.cat-eyes { animation: 9s ease-in-out 2s infinite eye-look; }
.cat-eye { transition: opacity .12s; }
.pet.is-booped .cat-body { animation: pet-boop .36s var(--smooth); }
.pet.is-booped .cat-tail { animation: tail-flick .4s var(--smooth); }
.pet.is-eating .cat-body { transform-origin: bottom; animation: .72s ease-in-out .57s munch; }
.pet.is-eating .cat-eye { opacity: 0; transition-delay: .57s; }
.feed-button.is-thrown .pet-fish { animation: 1s linear both fish-throw; }
.cat-dreams { opacity: 0; animation: 5s ease-in-out infinite cat-dream; }
.cat-dreams path:first-child { stroke-width: 1.5px; }
.cat-dreams path:last-child { stroke-width: 1.3px; }
@keyframes pet-pop { 0% { opacity: 0; transform: scale(.4); } }
@keyframes tail-sway { 0%, 38%, to { transform: rotate(0); } 12% { transform: rotate(6deg); } 25% { transform: rotate(-3deg); } }
@keyframes eye-look { 0%, 16%, 52%, 88%, to { transform: translate(0); } 26%, 38% { transform: translate(-1.2px); } 62%, 74% { transform: translate(1.2px); } }
@keyframes pet-boop { 0%, to { transform: scale(1); } 35% { transform: scale(.82, .88); } 70% { transform: scale(1.08, 1.04); } }
@keyframes tail-flick { 0%, to { transform: rotate(0); } 35% { transform: rotate(16deg); } 70% { transform: rotate(-6deg); } }
@keyframes munch { 0%, to { transform: translateY(0) scaleY(1); } 14% { transform: translateY(.5px) scaleY(.94); } 28% { transform: translateY(0) scaleY(1.02); } 44% { transform: translateY(.45px) scaleY(.95); } 58% { transform: translateY(0) scaleY(1.01); } 76% { transform: translateY(.25px) scaleY(.98); } }
@keyframes fish-throw {
  0% { opacity: 1; animation-timing-function: cubic-bezier(.16, .74, .38, 1); transform: translate(0) rotate(0) scale(1); }
  40% { opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .82, .38); transform: translate(-18px, -9.5px) rotate(-15deg) scale(.94); }
  59% { opacity: 1; animation-timing-function: ease-out; transform: translate(-30px, .5px) rotate(-29deg) scale(.76); }
  64% { opacity: 0; transform: translate(-32px, 2px) rotate(-34deg) scale(.6); }
  66% { opacity: 0; animation-timing-function: var(--smooth); transform: translate(0) rotate(0) scale(.72); }
  to { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}
@keyframes cat-dream { 0%, 55%, to { opacity: 0; transform: translateY(2px); } 65%, 88% { opacity: .75; transform: translateY(0); } }
@keyframes fish-swim { 0%, to { transform: translate(0) rotate(0); } 25% { transform: translate(-.7px, -1.1px) rotate(-4deg); } 50% { transform: translateY(.4px) rotate(0); } 75% { transform: translate(.7px, -.9px) rotate(3.5deg); } }
@keyframes fish-wag { 0%, to { transform: rotate(-11deg) scaleX(.92); } 50% { transform: rotate(11deg) scaleX(1); } }
@keyframes fish-wiggle { 0%, to { transform: rotate(1.6deg); } 50% { transform: rotate(-1.6deg); } }

/* theme toggle */
.theme-toggle { width: 22px; height: 22px; color: var(--muted-foreground); cursor: pointer; transition: color .2s var(--smooth), background .2s var(--smooth), transform .16s var(--smooth); background: 0 0; border: 0; border-radius: 5px; justify-content: center; align-items: center; margin-left: .1em; padding: 0; display: inline-flex; position: relative; }
.theme-toggle:after { content: ""; position: absolute; inset: -8px; }
.theme-toggle:hover { color: var(--foreground); background: var(--surface); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 15px; height: 15px; overflow: visible; }
.theme-disc, .theme-cut, .theme-rays { transform-box: view-box; transform-origin: 50%; transition: transform .5s var(--smooth), opacity .35s var(--smooth); }
.theme-cut { transform-origin: 24px 10px; }
.theme-rays { transform-origin: 12px 12px; }
:root[data-theme=dark] .theme-disc { transform: scale(1.5); }
:root[data-theme=dark] .theme-cut { transform: translate(-7px, -3px); }
:root[data-theme=dark] .theme-rays { opacity: 0; transform: scale(.35) rotate(-45deg); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }

/* ---------- reveal ---------- */
.reveal { animation: reveal .64s var(--smooth) both; }
.reveal.r1, .reveal.r2 { animation-name: reveal-rise; }
.r2 { animation-delay: 70ms; } .r3 { animation-delay: .14s; } .r4 { animation-delay: .22s; } .r5 { animation-delay: .3s; }
.r6 { animation-delay: .38s; } .r7 { animation-delay: .46s; } .r8 { animation-delay: .54s; } .r9 { animation-delay: .62s; }
@keyframes reveal { 0% { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-rise { 0% { transform: translateY(8px); } to { transform: translateY(0); } }

.sr-only { clip-path: inset(50%); white-space: nowrap; border: 0; width: 1px; height: 1px; margin: -1px; padding: 0; position: absolute; overflow: hidden; }

/* ---------- inner pages (blog) ---------- */
.page { width: min(var(--article-column), calc(100% - 48px)); font-family: var(--font-ui); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 3.5rem; font-size: .875rem; line-height: 1.72; }
.page-nav { color: var(--muted-foreground); justify-content: space-between; align-items: center; gap: .5rem; font-size: .8125rem; display: flex; }
.page-nav a { transition: color .2s var(--smooth); text-decoration: none; }
.page-nav a:hover { color: var(--accent); }
.back-arrow { transition: transform .25s var(--smooth); display: inline-block; }
.page-title { letter-spacing: -.01em; margin: 1.6rem 0 .5rem; font-size: 1.125rem; font-weight: 650; line-height: 1.4; }
.page-lede { color: var(--muted-foreground); margin: 0; }
.page-meta { color: var(--muted-foreground); margin-top: .55rem; font-size: .75rem; }
.page-meta span + span:before { content: " · "; }
.post-list { border-top: 1px solid var(--hairline); margin-top: 2rem; }
.post-row { border-bottom: 1px solid var(--hairline); transition: transform .25s var(--smooth); padding: 11px 0; text-decoration: none; display: block; }
.post-row b { transition: color .2s var(--smooth); font-weight: 550; justify-content: space-between; gap: 1rem; display: flex; }
.post-row b span { color: var(--muted-foreground); flex: none; font-size: .6875rem; font-weight: 400; }
.post-row:hover b { color: var(--accent); }
.post-row small { color: var(--muted-foreground); margin-top: .15rem; display: block; }
.post-list:has(.post-row:hover) .post-row:not(:hover) { opacity: .45; transition: opacity .22s var(--smooth); }
.post-row.is-soon { opacity: .6; }
.post-row.is-soon:hover b { color: inherit; }
.post-row.is-soon:hover { transform: none; }
.post-list:has(.post-row.is-soon:hover) .post-row:not(:hover) { opacity: 1; }
.post-list:has(.post-row.is-soon:hover) .post-row.is-soon { opacity: .6; }
.post { padding-bottom: 2rem; }
.post-year { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; margin-top: 2.4rem; display: grid; }
.post-year > h2 { color: var(--muted-foreground); align-self: start; margin: 0; padding-top: 9px; font-size: .75rem; font-weight: 500; position: sticky; top: 72px; }
.post-year .post-list { min-width: 0; margin-top: 0; }
.post-row.project-row b { flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; }
.post-row.project-row b span { color: inherit; font-size: inherit; font-weight: inherit; }
.post-row.project-row:hover b { color: inherit; }
.post-row.project-row small:not(:last-child) { font-family: var(--font-text); font-size: .8125rem; }
.project-row b > span:first-child a { color: inherit; transition: color .2s var(--smooth); text-decoration: none; }
.project-row b > span:first-child a:hover { color: var(--accent); }
.post-row b .project-row-links { gap: .8rem; font-size: .75rem; font-weight: 400; display: inline-flex; }
.project-row-links a { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--line-soft); text-underline-offset: 3px; transition: color .2s var(--smooth), text-decoration-color .2s var(--smooth); }
.project-row-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.project-row-links a:after { content: "↗"; opacity: .5; transition: transform .2s var(--smooth), opacity .2s var(--smooth); margin-left: .15em; font-size: .9em; display: inline-block; }
.project-row-links a:not([target]):after { content: "→"; }
.project-row-links a:hover:after { opacity: 1; transform: translate(1px, -1px); }
.project-row-links a:not([target]):hover:after { transform: translate(2px); }
.post-row .project-row-meta { font-size: .6875rem; }
.oss-repo { margin-top: 2.4rem; }
.oss-repo > h2 { color: var(--muted-foreground); justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .7rem; font-size: .75rem; font-weight: 500; display: flex; }
.oss-repo > h2 a { color: var(--foreground); transition: color .2s var(--smooth); text-decoration: none; overflow-wrap: anywhere; }
.oss-repo > h2 a:hover { color: var(--accent); }
.oss-repo > h2 span { flex: none; }
.oss-repo .post-list { margin-top: 0; }
.resume-actions { margin-top: 1.2rem; }
.resume-frame { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; width: 100%; height: min(78vh, 62rem); margin-top: 1.6rem; display: block; }
.resume-frame p { padding: 1.2rem; }
.page-footer { border-top: 1px solid var(--hairline); color: var(--muted-foreground); margin-top: 3rem; padding-top: 1.2rem; font-size: .75rem; justify-content: space-between; align-items: center; gap: 1rem; display: flex; }

.prose { margin-top: 2.2rem; font-family: var(--font-text); font-size: .90625rem; line-height: 1.72; }
.prose > * { max-width: 100%; }
.prose h2 { font-family: var(--font-ui); font-size: .9375rem; font-weight: 650; margin: 2.4rem 0 .6rem; line-height: 1.4; }
.prose h3 { font-family: var(--font-ui); font-size: .8125rem; font-weight: 600; margin: 1.6rem 0 .3rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: .25rem 0; }
.prose li::marker { color: var(--muted-foreground); }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose blockquote { border-left: 2px solid var(--accent); color: var(--muted-foreground); padding: .1rem 0 .1rem 1rem; }
.prose blockquote p:last-child { margin: 0; }
.prose img { max-width: 100%; border-radius: 4px; display: block; margin: 0 auto; }
:root[data-theme=dark] .prose img { background: #fff4ec; padding: .5rem; }
.prose :not(pre) > code { background: var(--code-bg); border-radius: 4px; padding: .1em .35em; font-size: .85em; }
.prose .badge { color: var(--mark-ink); background: var(--mark-tint); border-radius: .3em; margin-left: .4rem; padding: .08em .4em .1em; font-family: var(--font-ui); font-size: .625rem; font-weight: 560; vertical-align: 2px; }
.code-block { border: 1px solid var(--hairline); background: var(--code-bg); border-radius: 6px; margin: 0 0 1.2rem; overflow: hidden; }
.code-head { border-bottom: 1px solid var(--hairline); color: var(--muted-foreground); justify-content: space-between; align-items: center; padding: .3rem .7rem; font-family: var(--font-ui); font-size: .6875rem; display: flex; }
.copy-button { color: var(--muted-foreground); cursor: pointer; font: inherit; background: 0 0; border: 0; padding: 0; transition: color .2s; }
.copy-button:hover { color: var(--accent); }
.code-block pre { margin: 0; padding: .8rem .9rem; font-size: .75rem; line-height: 1.6; overflow-x: auto; }

/* ---------- hover nudges ---------- */
@media (hover: hover) and (pointer: fine) {
  .work-row:hover .work-title, .more-link:hover, .post-row:hover, .project-summary:hover .project-name { transform: translate(3px); }
  .page-nav a:hover .back-arrow { transform: translate(-3px); }
  .connect-socials a:hover:after, .stint-company a:hover:after, .label-link:hover:after, .project-links a:hover:after, .action[target=_blank]:not([data-download]):hover:after { transform: translate(1px, -1px); }
  .label-link[data-internal]:hover:after { transform: translate(2px); }
  .action[data-download]:hover:after, .label-link[data-download]:hover:after { transform: translateY(1px); }
}

@media (max-width: 600px) {
  .label, .label-link { padding-bottom: .9rem; }
  .work-row { gap: 12px; min-height: 44px; padding: 10px 0; }
  .stints { gap: 1.8rem; }
  .approach { gap: .6rem; }
  .project-summary { padding: 14px 1.4rem 14px 0; }
  .action { height: 36px; }
  .site-footer { margin-top: 2.6rem; }
  .feed-button:after { inset: -12px; }
  .theme-toggle:after { inset: -11px; }
  .page { font-size: .8125rem; }
  .page-title { margin-top: 1.3rem; }
  .post-year { grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: 2rem; }
  .post-year > h2 { padding-top: 0; position: static; }
  .post-row { padding: 14px 0; }
  .post-row small { margin-top: .3rem; }
  .page-footer { margin-top: 2.4rem; }
}
@media (max-width: 480px) {
  .work-meta { display: none; }
  .cat-bubble { --shift: 0px; transform-origin: 100% 100%; border-radius: 8px 8px 2px; left: auto; right: -8px; }
}

/* ---------- vice intro (home, first visit) ---------- */
.vice-intro { --vi-night: #130a24; --vi-neon: #ff4fa3; --vi-sunset: #ffa24c; --vi-ink: #fdebf4; z-index: 100; background: linear-gradient(180deg, var(--vi-neon), var(--vi-sunset)); cursor: pointer; display: none; position: fixed; inset: 0; overflow: hidden; container-type: size; }
html[data-intro] .vice-intro { display: block; }
html[data-intro=play] { overflow: hidden; }
html[data-intro=out] .vice-intro { pointer-events: none; animation: .45s var(--smooth) forwards vi-out; }
html[data-intro=play] .portfolio, html[data-intro=play] .portfolio * { animation-play-state: paused !important; }
.vi-art { position: absolute; inset: 0; }
.vi-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 64%; animation: 2.6s var(--smooth) both vi-push; }
/* Same box as an SVG viewBox 0 0 1600 1000 with "slice". Each layer is its own element so the
   zoom and flicker run as compositor transform/opacity animations instead of repainting a mask. */
.vi-frame { aspect-ratio: 16 / 10; width: max(100cqw, 160cqh); position: absolute; top: 50%; left: 50%; translate: -50% -50%; }
.vi-frame svg { width: 100%; height: 100%; position: absolute; inset: 0; overflow: visible; }
.vi-night { fill: var(--vi-night); }
.vi-zoom { transform-origin: 43.125% 50.4%; will-change: transform; animation: 1.1s cubic-bezier(.7, 0, .84, 0) 1.2s both vi-zoom; }
.vi-neon { will-change: transform, opacity; animation: 1s step-end .15s both vi-neon-on, .3s ease-in 1.25s forwards vi-fade, 1.1s cubic-bezier(.7, 0, .84, 0) 1.2s both vi-zoom; }
.vi-name { will-change: opacity; animation: .6s .65s both vi-in, .25s ease-in 1.2s forwards vi-fade; }
.vi-name text { fill: var(--vi-ink); font-family: var(--font-ui); letter-spacing: .55em; text-transform: uppercase; font-size: 22px; font-weight: 500; }
@media (max-aspect-ratio: 3 / 4) { .vi-name text { letter-spacing: .3em; } }
.vi-skip { border: 1px solid color-mix(in srgb, var(--vi-ink) 28%, transparent); color: var(--vi-ink); font: 500 .75rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; background: color-mix(in srgb, var(--vi-night) 55%, transparent); cursor: pointer; border-radius: 999px; padding: .45rem .95rem; animation: .4s .5s both vi-in; position: absolute; bottom: 1.25rem; right: 1.25rem; }
@keyframes vi-zoom { 0% { transform: scale(1); } to { transform: scale(40); } }
@keyframes vi-push { 0% { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes vi-neon-on { 0% { opacity: 0; } 10% { opacity: 1; } 16% { opacity: .2; } 26% { opacity: 1; } 32% { opacity: .45; } 40%, to { opacity: 1; } }
@keyframes vi-in { 0% { opacity: 0; } }
@keyframes vi-fade { to { opacity: 0; } }
@keyframes vi-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  *, :before, :after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .vice-intro { display: none !important; }
}
