.pg-archive {
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #171717;
}
.pg-archive {
  min-height: 100dvh;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
}
.pg-archive-main {
  display: grid;
  align-items: center;
  flex: 1;
  padding-block: 1.5rem;
}
.pg-archive .pg-foot {
  margin-top: 0;
}
.pg-result {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  text-align: center;
}
.pg-result img {
  position: absolute;
  z-index: 2;
  right: 5rem;
  bottom: -50%;
  width: 6rem;
  height: 6rem;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
@media (min-width: 768px) {
  .pg-result:is(:hover, :focus-visible) {
    color: white;
    background: #171717;
  }
  .pg-result:is(:hover, :focus-visible) img {
    opacity: 1;
    transform: scale(1);
  }
}
.pg-mask {
  position: relative;
  display: block;
  overflow: hidden;
}
.pg-mask:before,
.pg-mask:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 1.1s cubic-bezier(0.33, 0, 0, 1) var(--wait, 0ms);
}
.pg-mask:before {
  background: var(--background) var(--page-grain) repeat fixed;
  transform-origin: right;
}
.pg-mask:after {
  background: #171717;
  transform: translateX(-140%);
}
.pg-mask.pg-shown:before {
  transform: scaleX(0);
}
.pg-mask.pg-shown:after {
  transform: translateX(140%);
}
.pg-foot {
  margin: 4.5rem var(--gutter) 0;
  padding: 1.25rem 0;
  border-top: var(--portfolio-divider);
  text-transform: uppercase;
  color: var(--foreground);
  font: 400 0.8125rem/1.3 var(--portfolio-mono);
  letter-spacing: -0.03em;
}
.pg-foot > p {
  margin-bottom: 2.5rem;
}
.pg-foot > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  color: var(--portfolio-footer-ink);
}
.pg-foot a:hover {
  background: #171717;
  color: #fff;
}
.contact-footer > div > :last-child {
  text-align: right;
}
@media (min-width: 768px) {
  .contact-footer > div > :nth-child(2) {
    text-align: center;
  }
}
.pg-about {
  display: flow-root;
  clip-path: inset(max(0px, calc(var(--portfolio-nav-height) - var(--about-viewport-top, 0px))) 0 0);
}
:root:has(body[data-page="about"]) {
  scroll-padding-top: var(--portfolio-nav-height);
}
.resume {
  --resume-column: 21%;
  --resume-column-gap: clamp(1.1rem, 2vw, 2.3rem);
  --resume-label-size: clamp(0.92rem, 1.6vw, 1.3rem);
  max-width: 104rem;
  margin-inline: auto;
  padding: calc(var(--portfolio-nav-height) + clamp(3rem, 9.4vw, 9rem))
    clamp(1.5rem, 8vw, 8rem) 0 clamp(1.5rem, 22.8vw, 23rem);
  color: var(--foreground);
  font: 400 clamp(0.875rem, 1.25vw, 1.15rem)/1.72 var(--portfolio-mono);
}
.resume-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.resume-identity {
  justify-self: end;
  margin-inline-end: 7.8%;
  line-height: 1.2;
}
.resume-identity h1 {
  margin-bottom: 0.4rem;
  margin-inline-end: -0.15em;
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-align: right;
}
.resume-specialty {
  font-size: clamp(0.875rem, 1.45vw, 1.25rem);
  text-align: right;
}
.resume-signature {
  margin-top: clamp(2.5rem, 5vw, 5rem);
}
.resume-name {
  margin-top: 0.75rem;
  font-size: clamp(1.48rem, 2.65vw, 2.45rem);
  line-height: 1.04;
  white-space: nowrap;
}
.resume-specialty-cn {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2em;
  width: max-content;
  font-size: var(--resume-label-size);
  line-height: 1.28;
}
.resume-portrait {
  position: relative;
  aspect-ratio: 334 / 430;
  width: 19.5%;
  margin: clamp(5rem, 12vw, 12rem) 0 0 37.6%;
  overflow: hidden;
}
.resume-portrait img {
  /* Show the 334 × 430 photo at (1210, 1087) in the supplied 2480 × 3508 sheet. */
  position: absolute;
  width: 742.515%;
  height: auto;
  inset-inline-start: -362.275%;
  inset-block-start: -252.791%;
}
.resume-contact {
  margin: clamp(8rem, 27.5vw, 27rem) 0 0;
  font-size: var(--resume-label-size);
  line-height: 1.35;
}
.resume-contact > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.55em;
}
.resume-contact > div + div {
  margin-top: 0.25em;
}
.resume-contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.resume-contact a:is(:hover, :focus-visible) {
  text-decoration: underline;
}
.resume-profile {
  margin-top: clamp(3.5rem, 6.5vw, 7rem);
}
.resume-experience {
  margin-top: clamp(8rem, 24vw, 25rem);
}
.resume-profile p + p,
.resume-duties ul {
  margin-top: 1.3em;
}
.resume-job {
  display: grid;
  grid-template-columns: var(--resume-column) minmax(0, 1fr);
  column-gap: var(--resume-column-gap);
}
.resume-job + .resume-job {
  margin-top: clamp(4.5rem, 12vw, 11rem);
}
.resume-job h2 {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1em;
  font-size: clamp(1.12rem, 1.58vw, 1.55rem);
  font-weight: 500;
}
.resume-dates {
  grid-area: 2 / 1;
}
.resume-role {
  grid-area: 3 / 1;
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
}
.resume-duties {
  grid-area: 3 / 2;
}
.resume-duties li {
  display: inline;
}
.resume-duties li + li {
  margin-inline-start: 0.6em;
}
.pg-about .pg-foot {
  margin-top: calc(1.82 * clamp(4rem, 10vw, 9rem));
}
.pg-paint {
  --paint: 100%;
  background: linear-gradient(
    to bottom,
    #000 calc(var(--paint) - 0.4em),
    #0005 calc(var(--paint) + 0.4em)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root:has(body[data-page="gallery"]) {
  scrollbar-gutter: auto;
}
.pg-gallery {
  position: fixed;
  inset: 0;
  touch-action: none;
  overflow: hidden;
  user-select: none;
  cursor: grab;
}
.pg-gallery.pg-dragging {
  cursor: grabbing;
}
.pg-gallery canvas,
.pg-gallery > a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: inherit;
}
.pg-gallery > a {
  z-index: 1;
}
.pg-gallery .pg-caption {
  position: fixed;
  top: 0;
  left: 0;
  color: #fff;
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  pointer-events: none;
  z-index: 2;
  text-transform: uppercase;
  mix-blend-mode: difference;
  white-space: nowrap;
  opacity: 0;
}
@media (pointer: coarse) {
  .pg-caption {
    display: none;
  }
}
@media (max-width: 767px) {
  .resume {
    padding-top: calc(var(--portfolio-nav-height) + 2.25rem);
    padding-inline: var(--gutter);
  }
  .resume-identity {
    margin-inline-end: 0;
  }
  .resume-portrait {
    justify-self: center;
    width: clamp(7rem, 35vw, 11rem);
    margin: 3.75rem 0 0;
  }
  .resume-contact {
    margin-top: 5rem;
  }
  .resume-experience {
    margin-top: 6rem;
  }
  .resume-job {
    display: block;
  }
  .resume-duties {
    margin-top: 1rem;
  }
  .resume-duties li {
    display: block;
  }
  .resume-duties li + li {
    margin: 0.45em 0 0;
  }
  .pg-result {
    padding: 0.875rem var(--gutter);
  }
  .pg-result:before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--gutter);
    right: var(--gutter);
    height: 1px;
    background: #0002;
  }
  .pg-result img {
    display: none;
  }
  .pg-foot > div {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg-mask:before,
  .pg-mask:after {
    display: none;
  }
}
