:root {
  color-scheme: light;
  overflow-x: clip;
  overscroll-behavior-x: none;
  --paper: #faf2e7;
  --ink: #29211d;
  --muted: #675650;
  --coral: #af3735;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
  --entry-title-size: clamp(1.5rem, 2.1vw, 2.15rem);
}
* { box-sizing: border-box; }
main, .project-bar { touch-action: pan-y pinch-zoom; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
a { color: inherit; text-underline-offset: .28em; }
a:hover { color: var(--coral); }
:where(:root:not([data-pointer-focus])) :where(a[href], button, select, .menu > summary):focus-visible {
  outline: 2px solid #526960;
  outline-offset: 3px;
}
:root { -webkit-tap-highlight-color: transparent; }
:root[data-pointer-focus] :focus { outline: none; }
#home:focus, main [tabindex="-1"]:focus, .project > summary:focus,
.cases > details > summary:focus, #resume-pages:focus { outline: none; }
:root:not([data-pointer-focus]) :is(.project > summary:focus-visible .project-heading strong,
.cases > details > summary:focus-visible .case-name,
main :is(h2, h3)[tabindex="-1"]:focus-visible,
#resume-dialog:has(#resume-pages:focus-visible) #resume-title) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 20px 0;

}
header strong { font: bold 1.15rem var(--serif); }
.project-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);

}
.project-nav {
  gap: 6px 22px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 4px;
}
.project-nav a {
  flex: 0 0 auto;
  padding: 8px 10px;
  white-space: nowrap;
}
.project-nav a[aria-current] {
  background: #f5ddd3;
  border-radius: 20px;
  color: var(--coral);
  font-weight: 700;
}
.project-nav a:focus-visible { outline-offset: -2px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: .875rem; }
nav a:hover { text-decoration: underline; }
main { position: relative; padding-left: clamp(27px, 7vw, 98px); }
.thread {
  position: absolute;
  left: 0;
  top: 45px;
  width: clamp(24px, 6vw, 81px);
  height: calc(100% - 49px);
  pointer-events: none;
  clip-path: inset(0 0 var(--remaining, 0%) 0);
}
.thread path {
  fill: none;
  stroke: #cf514a;
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.thread-stops[hidden] { display: none; }
.thread-stops {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.thread-stops a {
  position: absolute;
  left: var(--stop-x);
  top: var(--stop-y);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: clamp(28px, 3vw, 42px);
  height: 42px;
  padding: 0;
  color: #9f574c;
  pointer-events: auto;
  border-radius: 50%;
}
.thread-stops svg:not(.thread-vine) {
  position: relative;
  width: clamp(26px, 2.55vw, 36px);
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-8deg);
}
.thread-vine {
  --grow-duration: 1.25s;
  position: absolute;
  left: 50%;
  top: calc(50% - 22px);
  width: var(--reach);
  height: 44px;
  overflow: visible;
  pointer-events: none;
}
.vine-stem {
  fill: none;
  stroke: #838665;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.vine-leaf {
  fill: #b8c49e;
  stroke: #798262;
  stroke-width: .95;
  stroke-linejoin: round;
  transform-origin: 0 0;
  transform: scale(0);
}
.leaf-joint:nth-of-type(even) .vine-leaf { fill: #cdd5b7; }
.compact-vine .leaf-joint:nth-of-type(3) { display: none; }
.thread-stops .pen-mark { fill: none; }
.thread-stops a:nth-child(1) { --wash: #f5d397; }
.thread-stops a:nth-child(2) { --wash: #cbdccf; }
.thread-stops a:nth-child(3) { --wash: #f2bdb2; }
.thread-stops a:is([aria-current], :focus-visible, :hover) svg:not(.thread-vine) {
  fill: var(--wash);
  transform: rotate(4deg) scale(1.06);
}
.thread-stops a:is([aria-current], :focus-visible, :hover) .vine-stem { stroke-dashoffset: 0; }
.thread-stops a:is([aria-current], :focus-visible, :hover) .vine-leaf { transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .thread-stops svg:not(.thread-vine) { transition: transform .25s ease-out, fill .2s; }
  .thread-stops a:is(:hover, :focus-visible) svg:not(.thread-vine),
  main:has(.thread-stops a[href="#work"]:is(:hover, :focus-visible)) #work h2,
  main:has(.thread-stops a[href="#projects"]:is(:hover, :focus-visible)) #projects h2,
  main:has(.thread-stops a[href="#about"]:is(:hover, :focus-visible)) #about h2 {
    animation: chapter-nod .55s ease-in-out;
  }
  main > section h2 { transform-origin: left 70%; }
  .thread-stops a:is([aria-current], :focus-visible, :hover) .vine-stem {
    animation: trace-vine var(--grow-duration) linear both;
  }
  .thread-stops a:is([aria-current], :focus-visible, :hover) .vine-leaf {
    animation: open-leaf .38s ease-out calc(var(--grow-duration) * var(--bud-at)) both;
  }
}
@keyframes chapter-nod {
  30% { rotate: -1.6deg; translate: 0 -1.5px; }
  66% { rotate: .7deg; translate: 1px 0; }
}
@keyframes trace-vine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes open-leaf {
  from { transform: rotate(-22deg) scale(0); }
  55% { transform: rotate(-8deg) scale(.6, .84); }
  85% { transform: rotate(2deg) scale(1.03); }
  to { transform: scale(1); }
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  grid-template-areas: "title art" "tenure art" "bio art" "contact art";
  align-content: center;
  column-gap: clamp(28px, 5vw, 100px);
  max-width: 104rem;
  margin-inline: auto;
  min-height: calc(100dvh - var(--nav-height, 62px));
  padding-block: clamp(20px, 3vh, 48px);
}
.hero-title { grid-area: title; align-self: end; }
.hero-name-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.5vw, 24px);
  padding-block: 9px 6px;
}
.hero-name-row h1 { white-space: nowrap; }
.hero-bio { grid-area: bio; align-self: start; max-width: 46rem; color: var(--muted); }
.hero-tenure {
  grid-area: tenure;
  max-width: 46rem;
  margin-top: 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: balance;
}
.hero-tenure span { display: inline-block; max-width: 100%; }
.hero-strengths {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(20px, 1.8vw, 28px) clamp(18px, 1.8vw, 30px);
  align-items: baseline;
  margin: 28px 0 0;
}
.hero-strengths dt {
  color: var(--ink);
  font: 700 clamp(1.2rem, 1.65vw, 1.55rem)/1.35 var(--serif);
}
.hero-strengths dd { margin: 0; font-size: .95rem; line-height: 1.75; }
.hero-strengths .hero-audio-credit,
.hero-strengths .hero-audio-credit + dd {
  color: #71635b;
  font-size: .85rem;
  line-height: 1.7;
}
.hero-strengths .hero-audio-credit { font-weight: 600; }
.hero-bio a { white-space: nowrap; color: #85413a; text-underline-offset: .23em; }
.hero-contact-block {
  grid-area: contact;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(18px, 3vw, 48px);
  margin-top: clamp(24px, 2.3vw, 36px);
  font-size: .91rem;
}
.kicker {
  color: var(--coral);
  font: 700 .875rem/1.5 ui-monospace, monospace;
  letter-spacing: .08em;
}
h1, h2 { font-family: var(--serif); }
h1 {
  margin: 16px 0 22px;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  line-height: 1.09;
  letter-spacing: -.075em;
}
h1 span { color: var(--coral); }
.intro, .lead { color: var(--muted); max-width: 35em; }
.hero-title h1 { margin: 0; font-size: clamp(3rem, 6.8vw, 6.4rem); }
.hero-art { grid-area: art; align-self: center; min-width: 0; }
.hero-character {
  position: relative;
  isolation: isolate;
  display: block;
  height: clamp(390px, 49vw, 555px);
  text-decoration: none;
}
.hero-frame {
  position: absolute;
  inset: 15% 12% 12% 8%;
  background: radial-gradient(ellipse at 52% 52%, #e99e8d, #f0bead 80%);
  border-radius: 55% 38% 44% 53% / 47% 53% 44% 49%;
  transform: rotate(-14deg);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: -4% 1% 5% -2%;
  border: 1px solid #b87966;
  border-radius: 47% 53% 45% 55%;
  transform: rotate(19deg);
}
.hero-wuyu {
  position: absolute;
  width: 83%;
  height: 104%;
  top: -1%;
  left: 4%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(6px 10px 8px #43202540);
  transform: rotate(-5deg);
  transition: transform 220ms ease;
}
.hero-character:hover .hero-wuyu { transform: translateY(-5px) rotate(-3deg); }
.wuyu-sparks { position: absolute; inset: 0; pointer-events: none; }
.wuyu-sparks i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font: normal 1.5rem/1 Georgia, serif;
  color: var(--spark, #af3735);
  text-shadow: 0 1px 2px #fff8ec;
  opacity: 0;
}
.wuyu-sparks i:nth-child(1) { --x: 27%; --y: 22%; --dx: -13px; --delay: 0s; }
.wuyu-sparks i:nth-child(2) { --x: 64%; --y: 17%; --dx: 10px; --delay: .16s; --spark: #a26214; }
.wuyu-sparks i:nth-child(3) { --x: 22%; --y: 39%; --dx: -17px; --delay: .42s; --spark: #74442b; }
.wuyu-sparks i:nth-child(4) { --x: 70%; --y: 34%; --dx: 14px; --delay: .52s; }
.wuyu-sparks i:nth-child(5) { --x: 57%; --y: 10%; --dx: 5px; --delay: .8s; --spark: #a26214; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-character:hover .wuyu-sparks i { animation: wuyu-float 1.7s ease-out var(--delay) infinite; }
}
@keyframes wuyu-float {
  0% { opacity: 0; transform: translateY(6px) scale(.5); }
  22% { opacity: .95; }
  80%, 100% { opacity: 0; transform: translate(var(--dx), -30px) rotate(12deg) scale(1.08); }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .hero-character:hover .wuyu-sparks i { opacity: .8; }
}
section { padding: clamp(28px, 2.5vw, 40px) 0 clamp(28px, 3vw, 44px); }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.16; margin: 8px 0 21px; }
h3 { font-family: var(--serif); font-size: 1.32rem; }
.lead { margin-bottom: 22px; }
summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 40px 15px 0;
  position: relative;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: .65rem;
  height: .65rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
details[open] > summary::after { transform: rotate(225deg); }
summary:hover, details[open] > summary { color: var(--coral); }
.content { max-width: 44rem; padding: 0 12px 20px 0; color: var(--muted); }
.content p + p { margin-top: 8px; }
.content h3 { margin-top: 20px; color: var(--ink); }
#robot-voice .content { max-width: none; padding-right: 0; }
#robot-voice .content p { max-width: 49rem; }
.robot-nav { margin: 20px 0; gap: 8px 16px; }
.robot-nav a { text-decoration: underline; color: var(--coral); }
.robot-chapter { padding: 24px 0 30px; scroll-margin-top: 16px; }
#robot-voice .robot-chapter h3 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.25; }
.robot-versions, .robot-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; padding: 0; margin: 12px 0 18px; list-style: none; }
.robot-versions li, .robot-flow li { background: #fff8ee; padding: 12px; }
.robot-flow { counter-reset: robot-step; }
.robot-flow:not(.robot-routes) li::before {
  counter-increment: robot-step;
  content: counter(robot-step, decimal-leading-zero);
  display: block;
  color: var(--coral);
  font: 700 .875rem ui-monospace, monospace;
  margin-bottom: 6px;
}
.robot-branches { width: 100%; border-collapse: collapse; margin: 12px 0 18px; text-align: left; background: #fff8ee; }
.robot-branches caption { text-align: left; padding-bottom: 6px; color: var(--coral); }
.robot-branches :is(th, td) { padding: 8px 12px; }
#robot-voice .robot-example {
  border-left: 2px solid var(--coral);
  padding-left: 14px;
  margin-block: 14px;
}
details[id], .robot-chapter, main section { scroll-margin-top: 60px; }
.project summary {
  display: grid;
  grid-template-columns: minmax(92px, 25%) 1fr;
  gap: clamp(12px, 4vw, 40px);
  align-items: center;
  padding-block: 20px;
}
.project summary img { width: 100%; aspect-ratio: 1.55; object-fit: cover; display: block; }
.project summary small { display: block; color: var(--coral); font-size: .85rem; }
.project summary strong {
  display: block;
  font: bold var(--entry-title-size)/1.2 var(--serif);
  margin-block: 4px;
}
.project summary span span { color: var(--muted); font-weight: 400; }
.project summary b { display: none; }
.project-body { padding: 10px 0 30px; }
.project-story {
  --chapter-gap: clamp(28px, 3vw, 42px);
  padding: 1rem 0 2.5rem;
}
.story-chapter {
  position: relative;
  display: grid;
  grid-template-columns: clamp(11rem, 23%, 17rem) minmax(0, 51rem);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.story-chapter + .story-chapter { margin-top: var(--chapter-gap); }
.story-chapter:not(:last-child)::before {
  content: "";
  position: absolute;
  inset: .85rem auto calc(-1 * var(--chapter-gap) - .85rem) 5px;
  border-left: 1px solid #d1b4a9;
}
.story-chapter h3 {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.5;
  text-wrap: balance;
}
.story-chapter h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85rem;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border: 1px solid #975d50;
  border-radius: 50%;
  background: var(--paper);
}
.story-chapter p { color: var(--muted); line-height: 1.85; }
.story-chapter p + p { margin-top: .65em; }
.story-content h4 {
  margin: clamp(1.65rem, 2.5vw, 2.25rem) 0 .6rem;
  color: #73564d;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.25vw, 1.125rem);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}
.story-content > h4:first-child { margin-top: 0; }
.pianke-routes { margin: 1.2rem 0; }
.pianke-routes figcaption { padding: 0; color: #566c60; font-weight: 650; }
.pianke-routes ul { list-style: none; margin: 0 0 0 .4rem; padding: 0; }
.pianke-routes li {
  position: relative;
  padding: .55rem 0 0 1.35rem;
  line-height: 1.55;
}
.pianke-routes li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: .9rem; height: 1.35rem;
  border: solid #94a38e; border-width: 0 0 1px 1px; border-bottom-left-radius: 6px;
}
.pianke-routes li:first-child::after {
  content: ""; position: absolute; left: 0; top: 1.05rem; bottom: 0; border-left: 1px solid #94a38e;
}
.pianke-routes li span { display: inline-block; }
.pianke-routes li span::before { content: "→"; color: #728574; padding-inline: .5em; }
.story-images { display: grid; grid-template-columns: .65fr 1fr 1fr; gap: 14px; margin-top: 18px; }
.story-images img { width: 100%; height: clamp(150px, 18vw, 210px); object-fit: contain; display: block; }
.story-images a { display: block; }
.story-images figcaption { text-align: center; }
.frame-art-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.frame-art-gallery a { display: block; cursor: zoom-in; }
.frame-art-gallery img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .frame-art-gallery { grid-template-columns: 1fr; gap: 12px; }
}
.frame-dossiers { margin-top: 18px; }
.frame-dossiers > figcaption { margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dossier-grid a { display: block; cursor: zoom-in; }
.dossier-grid img { display: block; width: 100%; height: auto; }
.dossier-grid figcaption { text-align: center; }
@media (max-width: 800px) {
  .dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
}
@media (max-width: 360px) {
  .dossier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .story-chapter { grid-template-columns: clamp(5rem, 24%, 7rem) minmax(0, 1fr); column-gap: 12px; }
  .story-chapter h3 { font-size: 1rem; padding-left: .95rem; }
  .story-images { grid-template-columns: 1fr; gap: 18px; }
  .story-images img { height: 230px; }
  .pianke-routes li { font-size: .9rem; }
  .pianke-routes strong { display: block; }
  .pianke-routes strong + span::before { content: none; }
  .pianke-routes li span::before { padding-inline: .24em; }
}

.story-screen-group { margin-bottom: 22px; }
.story-screen-group > figcaption { text-align: center; margin-top: 4px; }
.pianke-screens {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(7rem, 14vw, 8.75rem)), 1fr));
  gap: 18px 12px;
}
.pianke-screens img {
  height: auto;
  max-width: 12rem;
  margin-inline: auto;
  border-radius: 6px;
}
.pianke-models { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.notes p { margin-top: 6px; color: var(--muted); }
.case-example {
  max-width: 48rem;
 
  padding-top: 18px;
  margin-bottom: 24px;
}
.case-example p { color: var(--muted); margin-top: 6px; }
.case-example h3:not(:first-child) { margin-top: 16px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.gallery figure { background: #fffaf1; padding: 6px; }
.gallery a { display: block; }
figure > a:focus-visible:has(+ figcaption) { outline: none; }
figure > a:is(:hover, :focus-visible) + figcaption { text-decoration: underline; text-underline-offset: .2em; }
.gallery img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #e9ddd0; }
figcaption { padding: 4px 2px; font-size: .85rem; color: var(--muted); }
time { color: var(--coral); font-variant-numeric: tabular-nums; }
.back-to-top:not([hidden]) {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c2afa1;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  text-decoration: none;
}
.back-to-top:is(:hover, :focus-visible) { color: var(--coral); }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .hero-character { height: clamp(330px, 105vw, 440px); }
  .notes, .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 16/10; }
  .project summary { padding-right: 25px; }
  summary::after { right: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .thread { clip-path: none; }
  .hero-wuyu { transition: none; }
}

.wrap { width: 94%; }
main { padding-left: clamp(27px, 4vw, 84px); }
.thread { width: clamp(22px, 3.4vw, 70px); }
header .masthead { align-items: center; padding-block: 12px; }
.signature { font: bold 1.2rem var(--serif); text-decoration: none; white-space: nowrap; }
.signature i { margin-left: .3em; color: var(--muted); font: italic .95rem Georgia, serif; }
.project-nav { overflow: visible; gap: clamp(8px, 2vw, 36px); }
.menu { position: relative; }
.menu > summary { font-size: .94rem; padding: 6px 20px 6px 4px; }
.menu > summary::after { width: .38rem; height: .38rem; right: 5px; }
.menu:has([aria-current]) > summary { color: var(--coral); }
.submenu {
  position: absolute; top: 100%; right: 0; min-width: 10rem; padding: 9px;
  background: #fffaf3; border-radius: 14px 5px 14px 14px;
  box-shadow: 0 8px 24px #50332224;
}
.submenu a { display: block; padding: 7px 12px; }
.submenu a:hover { background: #f9e6dc; border-radius: 8px; text-decoration: none; }
#home, section[id], details[id] { scroll-margin-top: 70px; }
#work, #projects { position: relative; }
.projects { position: relative; }
.character-margin { display: block; position: relative; }
.pose-art, .pointing-hand { display: block; width: 100%; height: auto; pointer-events: none; }
.pointing-hand { display: none; }
.character-margin .wuyu-sparks { inset: 8% 48% 55% 12%; }
.point-pose .wuyu-sparks { inset: 29% 88% 59% -9%; }
.character-margin .wuyu-sparks i { font-size: clamp(11px, 1vw, 16px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .peek-pose .pose-art { transform-origin: 76% 76%; transition: transform .32s ease-out; }
  .work-heading-line:hover .pose-art { transform: translateX(-4%) rotate(-5deg); }
  /* Split at the sleeve so the phone, face and torso stay still. */
  .point-pose .pose-art { clip-path: polygon(0 0,100% 0,100% 100%,0 100%,0 46%,29% 46%,29% 32%,0 32%); }
  .pointing-hand {
    display: block; position: absolute; inset: 0;
    clip-path: inset(32% 70.9% 54% 0); transform-origin: 29% 39%;
    transition: transform .32s ease-out;
  }
  .works-heading:hover .pointing-hand { transform: scaleX(1.17); }
  .character-margin:hover .wuyu-sparks i, .works-heading:hover .wuyu-sparks i, .work-heading-line:hover .wuyu-sparks i { animation: wuyu-float 1.5s ease-out var(--delay) infinite; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .character-margin:hover .wuyu-sparks i, .works-heading:hover .wuyu-sparks i, .work-heading-line:hover .wuyu-sparks i { opacity: .85; }
}
@media (min-width: 901px) {
  .hero-character { height: clamp(520px, 38vw, 730px); }
  #work, #projects { padding-right: clamp(170px, 15vw, 300px); }
  .character-margin { position: absolute; width: clamp(158px, 15vw, 300px); }
}
@media (max-width: 900px) {
  #work > details, #projects > .projects { clear: both; }
}
@media (max-width: 620px) {
  .signature i { display: none; }
  header .masthead { gap: 6px; }
  .project-nav { gap: 4px; padding: 0; }
  .menu > summary { font-size: .82rem; padding-right: 16px; }
  .menu:first-child .submenu { right: auto; left: -15px; }
}

.margin-doodle {
  display: inline-block;
  width: clamp(40px, 4vw, 62px);
  height: auto;
  margin-inline-start: .28em;
  vertical-align: middle;
  fill: #fff2df;
  stroke: #84534a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.margin-doodle.constellation { vertical-align: .18em; transform: rotate(-6deg); }
.margin-doodle.town { vertical-align: baseline; }

.about-spread {
  display: grid;
  grid-template-columns: minmax(0, 41em) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(30px, 4.8vw, 78px);
}
.about-stories h3 { margin-bottom: 6px; }
.about-stories p { color: var(--muted); line-height: 1.85; text-wrap: pretty; }
.about-stories p + h3 { margin-top: 24px; }
.about-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 23rem);
}
.listening-art {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, black 96%, transparent);
}
.listening-notes {
  position: absolute;
  left: 70%;
  top: 19%;
  pointer-events: none;
}
.listening-notes i {
  position: absolute;
  opacity: 0;
  color: var(--note-color, #a6434c);
  font: 600 var(--size, 21px)/1 Georgia, serif;
  text-shadow: 0 1px 2px var(--paper), 0 -1px 2px var(--paper);
}
.listening-notes i:nth-child(1) { --x: 13px; --y: -54px; --delay: -.8s; }
.listening-notes i:nth-child(2) { --x: 57px; --y: -30px; --delay: -.2s; --note-color: #79594f; }
.listening-notes i:nth-child(3) { --x: 35px; --y: -67px; --delay: .5s; --size: 18px; }
.listening-notes i:nth-child(4) { --x: 66px; --y: -12px; --delay: 1.2s; --size: 18px; --note-color: #8b6541; }
.listening-notes i:nth-child(5) { --x: 22px; --y: -58px; --delay: 1.9s; }
.listening-notes i:nth-child(6) { --x: 50px; --y: -45px; --delay: 2.6s; --size: 17px; --note-color: #79594f; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-portrait:hover .listening-notes i { animation: listening-note 3.9s linear var(--delay) infinite both; }
}
@keyframes listening-note {
  0% { opacity: 0; transform: translate(0, 0) rotate(-12deg) scale(.8); }
  18% { opacity: .96; }
  68% { opacity: .94; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(9deg) scale(1.08); }
}
@media (max-width: 720px) {
  .about-spread { grid-template-columns: 1fr; gap: 24px; }
  .about-portrait { width: min(76%, 17rem); }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .about-spread { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

.case-hook { display: block; margin-top: 2px; font-size: .94rem; font-weight: 400; color: var(--muted); }
.cases > details > summary { font: bold clamp(1.25rem, 2.2vw, 1.85rem)/1.45 var(--serif); }
.case-hook { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.fanz-note { max-width: 43em; margin: 18px 0 10px; }
.fanz-note p { margin-top: 8px; color: var(--muted); }

.fanz-shots, .fanz-context {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(14px,2vw,28px);
  align-items: start;
  margin: 18px 0;
}
.fanz-shots img, .fanz-context img { display: block; width: 100%; height: auto; border-radius: 10px; }
.fanz-shots a, .fanz-context figure a { display: block; cursor: zoom-in; }
.fanz-shots figcaption, .fanz-context figcaption { padding-top: 9px; line-height: 1.6; }
.content .fanz-context h3 { margin-top: 0; }
@media (max-width: 620px) {
  .fanz-shots, .fanz-context { grid-template-columns: 1fr; }
  .fanz-shots figure, .fanz-context figure { max-width: 22rem; }
}


.xingtu-map { margin: 28px 0; padding: clamp(14px, 2.5vw, 30px); background: #fff9ef; border-radius: 6px 30px 18px 24px; }
.xingtu-map figcaption { color: var(--ink); font: bold 1.45rem var(--serif); }
.xingtu-tree { display: grid; grid-template-columns: max-content 1fr; gap: 22px; align-items: center; margin-top: 18px; }
.xingtu-root { position: relative; padding: 6px 12px; background: #f4d9ca; color: #813b33; border-radius: 50% 45% 44% 38%; }
.xingtu-tree ul { list-style: none; margin: 0; padding: 0; }
.xingtu-branches > li { position: relative; padding: 8px 0 8px 18px; }
.xingtu-branches > li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid #c89883; }
.xingtu-branches > li:first-child::before { top: 21px; }
.xingtu-branches > li:last-child::before { bottom: auto; height: 21px; }
.xingtu-branches > li::after, .xingtu-root::after { content: ""; position: absolute; left: 0; top: 21px; width: 13px; border-top: 1.5px solid #c89883; }
.xingtu-root::after { left: 100%; top: 50%; width: 22px; }
.xingtu-branches strong { color: var(--ink); }
.xingtu-branches p { margin: 4px 0; }
.xingtu-tree .xingtu-leaves { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xingtu-leaves li { padding: 5px 9px; background: #f5e7d9; border-radius: 9px; }
.xingtu-leaves b, .xingtu-leaves span { display: block; }
.xingtu-leaves span { font-size: .81rem; }
@media (max-width: 620px) {
  .xingtu-tree { display: block; }
  .xingtu-root { display: inline-block; margin-bottom: 6px; }
  .xingtu-root::after { display: none; }
  .xingtu-tree .xingtu-branches { margin-left: 13px; }
  .xingtu-branches > li:first-child::before { top: -6px; }
}
.fanz-shots { margin: 24px 5px; }
.fanz-shots figure, .fanz-context figure { position: relative; padding: 12px 12px 6px; background: #fffaf0; box-shadow: 0 3px 10px #52342620; }
.fanz-shots figure:first-child { transform: rotate(-1deg); }
.fanz-shots figure:nth-child(2) { transform: rotate(1deg); }
.fanz-shots figure::before, .fanz-context figure::before { content: ""; position: absolute; z-index: 1; left: 38%; top: -5px; width: 24%; height: 13px; background: #dec9a7c9; transform: rotate(-3deg); pointer-events: none; }
.fanz-shots img, .fanz-context img { border-radius: 3px; filter: sepia(.54) saturate(.62); }

/* Confine the rotated artwork to its own section. */
.hero { overflow: clip; }
@media (min-width: 901px) {
  #work { padding-right: 0; }
  .cases .content { max-width: none; padding-right: 0; }
  .case-spread { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: start; margin-top: 20px; }
  .case-spread .xingtu-map, .case-spread > div > :first-child { margin-top: 0; }
  .case-spread .fanz-context { grid-template-columns: minmax(0,.85fr) minmax(0,1fr); }
  #robot-voice .content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 4vw; }
  #robot-voice .robot-nav { grid-column: 1 / -1; }
  .project-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 4vw; }
  .project-body .notes { grid-column: 1 / -1; }
  .project-body .gallery { align-self: start; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-body .gallery figure:first-child { grid-column: 1 / -1; }
  .project-body .gallery figure:first-child img { aspect-ratio: 2 / 1; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .case-spread .xingtu-tree { display: block; }
  .case-spread .xingtu-root { display: inline-block; }
  .case-spread .xingtu-root::after { display: none; }
  .case-spread .fanz-shots { grid-template-columns: 1fr; }
}

@media (min-width: 1151px) {
  #star-map .case-spread {
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    column-gap: clamp(28px, 3vw, 56px);
  }
  #star-map .case-spread > div:nth-child(2) { padding-top: clamp(14px, 2.5vw, 30px); }
  #star-map .case-spread > div:nth-child(2) > h3 { font-size: 1.45rem; }
  #star-map .fanz-shots { gap: clamp(12px, 1.5vw, 24px); margin: 16px 5px 0; }
  #star-map .fanz-shots figure { transform: none; }
  #star-map .fanz-shots a { display: grid; align-items: center; aspect-ratio: 1 / 1.06; background: #f6f0e4; }
  #star-map .fanz-shots img { width: 100%; height: 100%; object-fit: contain; }
}
@media (min-width: 901px) {
  #projects { padding-right: 0; }
  #robot-part-7 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 4vw; align-content: start; }
  #robot-part-7 > h3 { grid-column: 1 / -1; }
  #robot-part-7 .robot-flow { grid-row: span 2; align-self: start; margin-top: 0; }
  #robot-part-7 p { grid-column: 2; }

}

@media (prefers-reduced-motion: no-preference) {
  .hero-scene { transform-origin: 50% 12%; animation: photo-settle .85s cubic-bezier(.2,.72,.25,1) both; }
  .project summary.in-view > img { animation: print-arrive .55s ease-out both; }
  .project summary.in-view > span { animation: print-arrive .45s .09s ease-out both; }
  .clapper-arm { transform-origin: 11px 18px; }
  .project summary:is(:hover,:focus-visible) .clapper-arm { animation: clap .48s ease-in-out; }
  .project summary:is(:hover,:focus-visible) .town { transform-origin: center bottom; animation: town-hop .46s ease-out; }
}
@keyframes photo-settle {
  0% { opacity: 0; transform: translateY(-12px) rotate(4deg); }
  65% { opacity: 1; transform: translateY(1px) rotate(15deg); }
  100% { transform: rotate(13deg); }
}
@keyframes print-arrive {
  from { opacity: .35; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes clap {
  40% { transform: rotate(-13deg); }
  72% { transform: rotate(8deg); }
}
@keyframes town-hop {
  24% { transform: scale(1.04,.94); }
  54% { transform: translateY(-4px) rotate(-3deg); }
}

.ifly-case { padding: 6px 0 28px; }
.ifly-intro { max-width: 48em; margin-bottom: 20px; }
.ifly-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(20px,4vw,70px); align-items: center; padding-block: 16px; }
.ifly-row h3 { margin-bottom: 8px; }
.ifly-row p { max-width: 40em; color: var(--muted); }
.ifly-row figure { padding: 14px; background: #fffaf1; border-radius: 5px 18px 8px 12px; }
.ifly-row figure img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
@media (max-width: 760px) { .ifly-row { grid-template-columns: 1fr; gap: 10px; } }

#pianke > summary, #beyond-frame > summary { display: block; padding-right: 32px; }
.project-summary { display: grid; gap: 6px; }
.project .project-heading { display: grid; justify-items: start; align-content: start; }
.project-description { display: grid; gap: 2px; }
.project .project-heading :is(.film-link, .demo-link) { margin-top: 0; }
.project .project-heading strong { color: var(--ink); }
.project .release-status { font-size: .78rem; font-weight: 400; color: #606c5f; }
.project-heading .margin-doodle { width: .82em; }
:is(.film-link, .demo-link) {
  display: block; width: fit-content; padding: 6px 0; margin-top: 4px;
  color: var(--coral); font: inherit; font-size: .94rem; font-weight: 500;
  border: 0; background: transparent; cursor: pointer;
}
:is(.film-link, .demo-link) { text-decoration: none; }
.film-link-icon { vertical-align: -.18em; margin-right: .15em; }
:is(.film-link, .demo-link):is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .22em; }
.project .project-heading .film-link {
  margin-top: 4px;
  padding-inline: .72em .9em;
  border-radius: .55rem;
  color: #92362f;
  background: #f6e3d7;
  box-shadow: inset 0 0 0 1px #bb776a, 0 1px 0 #dcb7a9;
  text-decoration: none;
}
.project .project-heading .film-link:is(:hover, :focus-visible) {
  color: #fff8ee;
  background: #973e35;
  box-shadow: inset 0 0 0 1px #87352e;
}
.project .project-heading .film-link:active { background: #792e28; }
.project .project-heading .demo-link {
  margin-top: 6px;
  padding-inline: .72em .9em;
  border-radius: .55rem;
  color: #365c4f;
  background: #e9eee5;
  box-shadow: inset 0 0 0 1px #91a693;
  text-decoration: none;
}
.project .project-heading .demo-link:is(:hover, :focus-visible) { color: #fff; background: #496757; }
#project-screen { width: min(90vw, 65rem, 140vh); max-width: 100%; padding: 0; border: 0; border-radius: 15px; background: #fff7eb; color: var(--ink); box-shadow: 0 18px 80px #25191050; }
#project-screen::backdrop { background: #251d19b8; }
.film-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-family: var(--serif); }
.film-bar button { cursor: pointer; padding: 6px 9px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; }
#project-screen video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #211e19; }
@media (prefers-reduced-motion: no-preference) {
  #project-screen[open] { animation: film-open .22s ease-out; }
  @keyframes film-open { from { opacity: 0; transform: translateY(8px) scale(.98); } }
}

.works-heading { display: flex; align-items: center; width: fit-content; max-width: 100%; gap: clamp(6px, 1vw, 16px); }
.works-heading h2 { margin: 3px 0 0; }
.works-heading .point-pose {
  position: relative; flex: none; width: clamp(70px, 8.5vw, 138px);
  margin: 0; transform: translateY(14%);
}
.works-heading { margin-bottom: clamp(14px, 2vw, 28px); }

.work-heading { width: fit-content; max-width: 100%; margin-bottom: 12px; }
.work-heading .constellation { width: 30px; vertical-align: middle; }
.work-heading-line { --portrait: clamp(76px, 8vw, 122px); display: flex; align-items: flex-end; isolation: isolate; }
.work-heading-line h2 { position: relative; z-index: 1; margin: 0; background: var(--paper); }
.work-heading-line .peek-pose {
  position: relative; width: var(--portrait); flex: none; margin-left: calc(-.39 * var(--portrait));
  transform: scaleX(-1); mask-image: linear-gradient(to bottom, black 88%, transparent);
}


/* One character in front of a descending column of project prints. */
.hero-art { position: relative; isolation: isolate; }
.hero-character { width: 48%; margin-left: 3%; margin-right: auto; z-index: 4; }
.hero-wuyu { width: 144%; left: -19%; pointer-events: none; }
.hero-print {
  position: absolute; height: 17.99875%; width: auto; max-width: 29.12525%; aspect-ratio: 1.55;
  padding: clamp(3px,.4vw,7px); background: #fff9eb;
  box-shadow: 1px 4px 12px #55362533; transform: rotate(var(--angle));
}
.hero-print img { display: block; width: 100%; height: 100%; object-fit: cover; }
.print-interview { left: 43%; top: 10.5%; --angle: -7deg; z-index: 1; }
.print-data { left: 51%; top: 25.8%; --angle: 5deg; z-index: 2; }
.print-robot { left: 44%; top: 41.1%; --angle: -5deg; z-index: 3; }
.print-frame { left: 49%; top: 56.4%; --angle: 4deg; z-index: 3; }
.print-pianke { left: 43%; top: 71.7%; --angle: -4deg; z-index: 3; }
.hero-print:focus-visible { z-index: 5; scale: 1.035; }
@media (hover: hover) {
  .hero-print:hover { z-index: 5; scale: 1.035; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-print { transition: scale .22s ease-out; }
}

.hero-contact { display: grid; gap: 3px; margin: 0; font-style: normal; font-size: .92rem; }
.hero-contact a {
  display: grid;
  grid-template-columns: 2.1rem max-content;
  align-items: baseline;
  width: fit-content;
  padding-block: 1px;
  color: #345b52;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.hero-contact span { font-size: .77rem; color: var(--muted); }
.hero-contact a:is(:hover, :focus-visible) { color: var(--coral); text-decoration: underline; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-areas: "title art" "tenure tenure" "bio bio" "contact contact";
    column-gap: clamp(5px, 2vw, 20px);
    padding-block: 12px 25px;
  }
  .hero-title { align-self: center; }
  .hero-name-row { padding-bottom: 0; }
  .hero-title .kicker { font-size: clamp(.68rem, 1.7vw, .85rem); letter-spacing: .03em; }
  .hero-art { width: 100%; max-width: 21rem; justify-self: center; }
  .hero-character { height: clamp(180px, 44vw, 325px); }
  .hero-bio { justify-self: start; max-width: 42em; margin-top: 14px; }
}

@media (min-width: 901px) and (max-height: 850px) {
  .hero {
    grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 48px);
    padding-block: clamp(10px, 2vh, 18px);
  }
  .hero-title h1 { font-size: clamp(3.2rem, 9vh, 5.5rem); }
  .hero-strengths { row-gap: clamp(12px, 1.8vh, 16px); margin-top: 18px; }
  .hero-strengths dd { line-height: 1.6; }
  .hero-contact-block { margin-top: 16px; }
  .hero-character { height: min(68vh, 640px); }
}
@media (max-width: 480px) {
  .hero { grid-template-columns: max(10.85rem, 52%) minmax(0, 1fr); }
  .hero-bio { font-size: .95rem; }
  .hero-tenure { margin-top: 6px; font-size: .95rem; }
  .hero-strengths { grid-template-columns: 1fr; gap: 5px; margin: 0; }
  .hero-strengths dd { font-size: .92rem; }
  .hero-strengths dd + dt { margin-top: 15px; }
  .hero-contact-block { margin-top: 22px; }
  .hero-title h1 { font-size: clamp(2.55rem, 10.7vw, 3.2rem); }
}

.company-history {
  display: grid;
  gap: clamp(28px, 2.8vw, 42px);
  margin-top: 20px;
  scroll-margin-top: 80px;
}
.company-heading h3 {
  color: var(--ink);
  font: 700 var(--entry-title-size)/1.3 var(--serif);
  text-wrap: balance;
}
.company-affiliate { display: inline-block; font-size: .67em; font-weight: 500; }
.company-meta {
  color: #83554c;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  margin: 0 0 7px;
}
.company-intro {
  max-width: 48em;
  margin-top: 10px;
  color: #52675b;
  font-size: .94rem;
  text-wrap: pretty;
}
.company-entry .cases { margin-top: clamp(14px, 1.4vw, 22px); }
.company-entry .cases > details > summary {
  position: relative;
  padding: 6px 0 8px calc(22px + clamp(6px, 1vw, 16px));
  font: 600 clamp(1.08rem, 1.45vw, 1.35rem)/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.company-entry .case-name { color: #884238; }
.company-entry .case-hook { margin-top: 3px; font-size: .91rem; text-wrap: pretty; color: #655c56; }
.company-entry .cases > details + details { margin-top: 12px; }
.company-entry .cases > details > summary::after {
  left: calc(2px + clamp(6px, 1vw, 16px));
  right: auto;
  top: 1em;
  width: .42rem;
  height: .42rem;
  color: var(--coral);
  transform: translateY(-55%) rotate(-45deg);
}
.company-entry .cases > details[open] > summary::after { transform: translateY(-65%) rotate(45deg); }
.company-entry summary:is(:hover, :focus-visible) .case-name,
.company-entry details[open] > summary .case-name { color: var(--coral); }
.company-entry .cases > details > :not(summary) { padding-top: 12px; }
.work-detail {
  --node-gap: 1.6rem;
  max-width: 64rem;
  padding: 0 0 24px calc(22px + clamp(6px, 1vw, 16px));
  color: var(--muted);
  line-height: 1.8;
}
.work-detail > section {
  position: relative;
  display: flow-root;
  padding: 0 0 0 1.15rem;
}
.work-detail > section + section { margin-top: var(--node-gap); }
.work-detail > section:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .8rem;
  width: 1px;
  height: calc(100% + var(--node-gap));
  background: #cfb9ab;
}
.work-detail > section::after {
  content: "";
  position: absolute;
  top: .8rem;
  left: 0;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border: 1.5px solid #98594c;
  border-radius: 50%;
  background: var(--paper);
}
.work-detail > section:last-child::after { background: #98594c; }
.work-detail h3 {
  margin: 0 0 .55rem;
  color: #884238;
  font-size: 1.1rem;
  line-height: 1.45;
}
.work-detail p + p, .work-detail figure + p { margin-top: .75rem; }
.work-detail p strong { color: var(--ink); font-weight: 600; }
.work-detail :is(.issue-label, .result-label) {
  display: block;
  width: fit-content;
  margin-block-end: .35em;
  padding: .12em .55em;
  border-radius: 4px;
  line-height: 1.5;
}
.work-detail .issue-label { color: #844338; background: #f1ded5; }
.work-detail .result-label { color: #415a49; background: #e1e9dc; }
.work-detail .work-figure { width: fit-content; max-width: 100%; margin: 1rem 0; }
.work-figure a { display: block; cursor: zoom-in; }
.work-figure img { display: block; max-width: 100%; max-height: 21rem; width: auto; height: auto; }
.work-figure figcaption { padding-top: .35rem; }
.yuni-detail-nodes {
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}
.yuni-detail-nodes > li + li { margin-top: 1.15rem; }
.yuni-detail-nodes h4 {
  margin: 0 0 .35rem;
  margin-inline-start: -.45em;
  font-size: 1rem;
  color: #415a49;
}
.yuni-detail-nodes > li > p { margin-inline-start: clamp(.65rem, 1.1vw, 1rem); }
.yuni-detail-nodes p strong { font-weight: 500; }
.yuni-detail-nodes p .result-metric { font-weight: 700; }
.yuni-chat-flow {
  --step-gap: clamp(1rem, 2vw, 1.75rem);
  --number-width: 2rem;
  margin: 1.65rem 0 1.45rem clamp(.65rem, 1.1vw, 1rem);
}
.yuni-chat-flow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--step-gap);
  margin: 0;
  padding: clamp(.95rem, 1.8vw, 1.45rem);
  background-color: #f1e5d6;
  border-radius: 8px;
  list-style: none;
  counter-reset: chat-step;
}
.yuni-chat-flow li { position: relative; counter-increment: chat-step; line-height: 1.55; }
.yuni-chat-flow li::before {
  content: counter(chat-step, decimal-leading-zero);
  display: block;
  margin-bottom: .45rem;
  color: #914d42;
  font: italic 1.45rem/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.yuni-chat-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: .73rem calc(.4rem - var(--step-gap)) auto var(--number-width);
  border-top: 1px dotted #b69c8b;
}
.yuni-chat-flow b { display: block; color: var(--ink); }
.yuni-chat-flow span { display: block; margin-top: .25rem; font-size: .86rem; }
.yuni-chat-flow figcaption { margin-top: .8rem; text-align: center; }
@media (max-width: 850px) {
  .yuni-chat-flow ol { grid-template-columns: 1fr; gap: 1rem; }
  .yuni-chat-flow li { padding-inline-start: calc(var(--number-width) + .45rem); }
  .yuni-chat-flow li::before { position: absolute; inset: .05rem auto auto 0; }
  .yuni-chat-flow li:not(:last-child)::after {
    inset: 1.7rem auto -.72rem .65rem;
    border-top: 0;
    border-inline-start: 1px dotted #b69c8b;
  }
}
.yuni-screen-group { margin: 1.2rem 0 0; contain: inline-size; }
.yuni-play-screens {
  display: grid;
  grid-template-columns: repeat(5, minmax(8rem, 1fr));
  gap: clamp(.6rem, 1vw, 1rem);
  overflow-x: auto;
  padding-bottom: .25rem;
}
.yuni-play-screens figure { min-width: 0; margin: 0; }
.yuni-play-screens a { display: block; cursor: zoom-in; }
.yuni-play-screens img { display: block; width: 100%; height: auto; border-radius: 8px; }
.yuni-play-screens figcaption { margin-top: .4rem; text-align: center; }
.attribution-preview {
  max-width: 46rem;
  margin: 1.2rem 0;
  font-variant-numeric: tabular-nums;
}
.attribution-preview > figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 2px .6rem;
  margin-top: .45rem;
  color: var(--ink);
  font-weight: 600;
}
.attribution-preview > figcaption small { color: var(--muted); font-weight: 400; }
.attribution-body {
  padding: clamp(.9rem, 2vw, 1.6rem);
  border: 1px solid #d1bcaa;
  border-radius: 12px;
  background: #fbf5eb;
  color: var(--muted);
}
.attribution-lanes {
  --lane-gap: clamp(.9rem, 2vw, 1.8rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 0 1rem;
  border: 1px solid #d1bcaa;
  border-radius: 10px;
  color: var(--muted);
  background: linear-gradient(to right, #fbf5eb 33.33%, #f1e6d7 33.33% 66.67%, #fbf5eb 66.67%);
}
.lane-heading { grid-column: var(--lane); text-align: center; font-size: .86rem; font-weight: 600; padding: .6rem 0; }
.attribution-lanes ol {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem var(--lane-gap);
  padding: 0 calc(var(--lane-gap) / 2);
  margin: 0;
  list-style: none;
}
.attribution-lanes li {
  position: relative;
  grid-column: var(--lane);
  grid-row: var(--row);
  display: grid;
  place-content: center;
  padding: .45rem .2rem;
  background: #fffaf2;
  border: 1px solid #cfbcaa;
  border-radius: 5px;
  text-align: center;
  font-size: .85rem;
  line-height: 1.45;
}
.attribution-lanes li::after { position: absolute; color: #8a6352; font-size: .9rem; }
.lane-next::after, .lane-back::after { top: 50%; transform: translateY(-50%); width: var(--lane-gap); }
.lane-next::after { content: "→"; left: 100%; }
.lane-back::after { content: "←"; right: 100%; }
.lane-down::after { content: "↓"; left: 50%; top: 100%; transform: translateX(-50%); }

.tree-key { font-size: .79rem; color: var(--muted); }
.attribution-tree { --twig: #b3977e; padding: .65rem 0 .9rem; }
.tree-root { width: fit-content; margin: auto; padding: .25rem .8rem; color: #fffaf2; text-align: center; background: #78473b; border-radius: 5px; font-size: .95rem; }
.tree-root small { display: block; font-size: .77rem; }
.tree-root b { margin-inline-start: .5rem; }
.attribution-tree ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attribution-tree li { position: relative; padding-top: 1rem; }
.attribution-tree li::before {
  content: ""; position: absolute; top: .5rem; width: 50%; height: .5rem;
  border-top: 1px solid var(--twig);
}
.attribution-tree li:first-child::before { left: 50%; border-left: 1px solid var(--twig); }
.attribution-tree li:last-child::before { right: 50%; border-right: 1px solid var(--twig); }
.attribution-tree ul { position: relative; }
.attribution-tree ul::before { content: ""; position: absolute; left: 50%; height: .5rem; border-left: 1px solid var(--twig); }
.tree-node {
  width: fit-content; margin: auto; padding: .25rem .65rem; text-align: center;
  border: 1px solid #cfbcaa; border-radius: 5px; background: #fffaf2;
  font-size: .86rem;
}
.tree-node b { font-weight: 550; }
.tree-node small { display: block; color: #695b52; }
.tree-node span { display: inline-block; margin-inline-start: .3em; font-weight: 650; }
.tree-node .delta-down { color: #914b40; }
.tree-node .delta-up { color: #346552; }
.tree-branch > summary { display: block; padding-inline-end: 1.65rem; color: var(--ink); font-weight: 500; }
.tree-branch > summary::after { right: .5rem; width: .38rem; height: .38rem; color: #885142; }
.tree-branch[open] > summary, .tree-branch > summary:hover { background: #f1e3d4; border-color: #af8770; }
.tree-branch > summary:focus-visible { outline: 2px solid #566c60; outline-offset: 2px; }
:root[data-pointer-focus] .tree-branch > summary:focus { outline: none; }
@media (max-width: 620px) {
  .tree-branch > summary > span { display: block; margin-inline-start: 0; }
  .attribution-tree .tree-leaves { display: block; padding-left: .8rem; margin: 0 .2rem 0 .45rem; }
  .attribution-tree .tree-leaves::before { display: none; }
  .tree-leaves li { padding-top: .4rem; }
  .attribution-tree .tree-leaves li::before { left: -.55rem; right: auto; top: 0; height: 100%; width: 0; border: 0; border-left: 1px solid var(--twig); }
  .attribution-tree .tree-leaves li:last-child::before { height: calc(50% + .2rem); }
  .tree-leaves li::after { content: ""; position: absolute; left: -.55rem; top: calc(50% + .2rem); width: .55rem; border-top: 1px solid var(--twig); }
  .tree-node { padding-inline: .35rem; width: calc(100% - .4rem); }
  .tree-leaves .tree-node { margin: 0; width: 100%; }
}
.attribution-finding { margin: .8rem 0 0; font-size: .9rem; }
.attribution-finding strong { display: block; }
.attribution-finding span { white-space: pre-line; }
.robosen-diagram { max-width: 48rem; margin: 1rem 0 1.4rem; }
.robosen-diagram > a { display: block; cursor: zoom-in; text-decoration: none; color: inherit; }
.robosen-diagram figcaption { text-align: center; padding-top: .45rem; }
.robosen-sheet {
  --connector: #b89b88;
  padding: clamp(1rem, 2vw, 1.55rem);
  background: #f9efe2;
  border: 1px solid #d9c9b7;
  border-radius: 6px 16px 12px 10px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
}
.robosen-versions { list-style: none; margin: 0; padding: 0; }
.robosen-versions li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; column-gap: 1rem; }
.robosen-versions li + li { margin-top: .85rem; }
.robosen-versions li > b { background: #f1dfd2; color: #804439; border-radius: 5px; padding: .18rem .4rem; text-align: center; }
.robosen-versions li strong { color: #415a49; font-weight: 600; }
.robosen-sheet b { font-weight: 600; }
.robosen-sheet li span { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; }
.robosen-test-root { display: inline-block; padding: .2rem .75rem; border-radius: 5px; background: #f2dfd1; color: #804439; font-weight: 600; }
.robosen-test-paths { list-style: none; margin: 0 0 0 1.05rem; padding: 0; }
.robosen-test-paths li { position: relative; padding: .85rem 0 0 1.45rem; }
.robosen-test-paths li::before, .robosen-test-paths li::after { content: ""; position: absolute; left: 0; }
.robosen-test-paths li::before { top: 0; bottom: 0; border-left: 1px solid var(--connector); }
.robosen-test-paths li:last-child::before { height: 1.58rem; }
.robosen-test-paths li::after { top: 1.58rem; width: 1rem; border-top: 1px solid var(--connector); }
.robosen-test-paths b { color: #415a49; }
@media (max-width: 650px) {
  .robosen-versions li { grid-template-columns: 4.1rem minmax(0, 1fr); column-gap: .65rem; }
  .robosen-versions li > b { font-size: .85rem; }
}
@media (max-width: 650px) {
  .work-detail { padding-inline-start: 0; }
}

@media (min-width: 901px) {
  main > section { max-width: 78rem; margin-inline: auto; }
  .company-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 6px 24px;
  }
  .company-heading h3 { grid-area: 1 / 1; }
  .company-heading .company-meta { grid-area: 1 / 2; margin: 0; }
  .company-heading .company-intro { grid-column: 1 / -1; max-width: 60em; margin: 0; }
  .company-entry .cases { margin-top: 12px; }
  .project-summary {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
  }
  .project-description {
    justify-items: end;
    text-align: right;
    padding-right: 12px;
  }
}

main details[id] { scroll-margin-top: var(--nav-height, 70px); }
.cases > details[open] > summary, .project[open] > summary {
  position: sticky;
  top: var(--nav-height, 70px);
  z-index: 3;
  background: var(--paper);
}
.project[open] > summary { padding-block: 8px; }

#resume-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  margin-bottom: 1px;
  border: 1px solid #a1afa3;
  border-radius: 7px;
  color: #345b52;
  font-size: .78rem;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
#resume-link svg { width: 13px; height: 15px; }
#resume-link:is(:hover, :focus-visible) { background: #ebeee4; border-color: #547266; }
@media (max-width: 740px) {
  .hero-name-row { gap: 6px; }
  #resume-link .resume-prefix { display: none; }
}
@media (max-width: 480px) {
  .hero-contact { font-size: .875rem; }
  .hero-contact a { grid-template-columns: 1.8rem max-content; }
  #resume-link { gap: 3px; padding: 3px 5px; font-size: .74rem; }
}
html:has(#resume-dialog[open]) { overflow: hidden; }
#resume-dialog {
  width: min(56rem, calc(100% - 24px));
  height: min(92dvh, 72rem);
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 80px #25191050;
}
#resume-dialog[open] { display: flex; flex-direction: column; }
#resume-dialog::backdrop { background: #251d19b8; }
.resume-toolbar {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 18px);
  padding: 8px clamp(12px, 2vw, 24px);
}
.resume-toolbar strong { margin-right: auto; font: bold 1.1rem var(--serif); }
.resume-toolbar button, .resume-download {
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  padding: 8px 5px;
  color: inherit;
  border: 0;
  background: transparent;
}
.resume-toolbar .resume-close { font-size: 1.5rem; line-height: 1; min-width: 36px; }
.resume-download { font-weight: 600; color: #34665c; }
#resume-pages {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  background: #e9e2d8;
  padding: clamp(6px, 1.4vw, 18px);
}
#resume-pages img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  background: white;
}
#resume-pages img + img { margin-top: 12px; }
#resume-pages.enlarged img { width: max(140%, 48rem); max-width: none; }
