:root {
  --yellow: #ffff3e;
  --ink: #161615;
  --gutter: clamp(15px, 3vw, 64px);
  --condensed: "Arial Narrow", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  --body: "Century Gothic", "Avenir Next", "Helvetica Neue", "PingFang SC", sans-serif;
  color: var(--ink);
  background: white;
  font-family: var(--body);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
button, a { color: inherit; }
button { font: inherit; background: none; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
mark { background: var(--yellow); color: inherit; padding-inline: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: fixed; inset: 10px auto auto 10px; z-index: 20; background: white; padding: 8px; transform: translateY(-150%); }
.skip:focus { transform: none; }

html.welcome-active { overflow: hidden; scrollbar-gutter: stable; }
.welcome-screen:not([hidden]) {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ff0;
  color: #000;
  transition: transform 720ms cubic-bezier(.7, 0, .2, 1);
}
.welcome-revealing .welcome-screen { transform: translateY(-101%); }
.welcome-word {
  display: flex;
  align-items: center;
  font: 800 clamp(38px, 7.8vw, 160px)/1.06 "Avenir Next", var(--body);
  letter-spacing: -.045em;
  user-select: none;
}
.welcome-part { display: flex; }
.welcome-part > span {
  animation: welcome-letter 460ms cubic-bezier(.2, .7, .25, 1) calc(200ms + var(--letter) * 54ms) both;
}
.welcome-gap {
  position: relative;
  flex: none;
  height: 1em;
  animation: welcome-gap 480ms cubic-bezier(.25, .78, .25, 1) 1400ms both;
}
.welcome-gap img { position: absolute; max-width: none; height: auto; }
.welcome-face {
  width: 1.43em;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  animation: welcome-face 520ms cubic-bezier(.23, .72, .32, 1.25) 1510ms both;
}
.welcome-hi {
  width: .83em;
  right: 65%;
  bottom: 106%;
  transform-origin: 75% 92%;
  animation: welcome-hi 440ms cubic-bezier(.2, .75, .35, 1.3) 1780ms both;
}
@keyframes welcome-letter {
  from { opacity: 0; transform: translateY(.42em); }
  to { opacity: 1; transform: none; }
}
@keyframes welcome-gap {
  from { width: 0; }
  to { width: 1.32em; }
}
@keyframes welcome-face {
  from { opacity: 0; transform: translateY(.28em) rotate(-9deg) scale(.72); }
  35% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes welcome-hi {
  from { opacity: 0; transform: translateY(.14em) rotate(9deg) scale(.65); }
  to { opacity: 1; transform: none; }
}
.welcome-revealing .hero :is(.hero-title-letter, .hi, .hero-face) {
  animation: welcome-title-rise 470ms cubic-bezier(.25, .7, .25, 1) calc(535ms + var(--title-letter-index) * 90ms) backwards;
}
.welcome-revealing .hero .hi { --title-letter-index: 1; }
.welcome-revealing .hero .hero-face { --title-letter-index: 8; }
@keyframes welcome-title-rise {
  from { translate: 0 calc(var(--hero-type-size) * .52); opacity: 0; }
  to { translate: 0 0; opacity: var(--welcome-letter-opacity, var(--hero-mark-opacity, 1)); }
}

.opening {
  --viewport-height: 100vh;
  --hero-height: var(--viewport-height);
  position: relative;
}
@supports (height: 100svh) {
  .opening { --viewport-height: 100svh; }
}
.js .hero-track { height: calc(var(--hero-height) + var(--hero-scroll, 0px)); }
.hero {
  --hero-type-size: min(16.8vw, calc(var(--hero-height) * .305));
  --hero-title-top: max(7%, 32px);
  position: sticky;
  top: 0;
  height: var(--hero-height);
  overflow: hidden;
  isolation: isolate;
  background: #e7e6e2;
  font: 400 clamp(13px, 1.65vw, 27px)/1.24 var(--condensed);
  text-transform: uppercase;
}
.hero-cover {
  position: absolute;
  width: max(100%, calc(var(--hero-height) * .97));
  max-width: none;
  height: auto;
  top: 0;
  left: 50%;
  transform: translate(var(--cover-x, -50%), var(--cover-y, 0px));
}
.hero h1, .hero-end-type span {
  position: absolute;
  z-index: 1;
  left: 2.35%;
  width: max-content;
  color: #e2df1e;
  font: 900 var(--hero-type-size)/.88 "Arial Black", "Helvetica Neue", sans-serif;
  letter-spacing: -.055em;
  transform-origin: top left;
}
.hero h1 {
  left: calc(var(--gutter) - .045em);
  top: var(--hero-title-top);
  /* Negative tracking can leave the final O outside the text clipping box. */
  padding-inline-end: .08em;
  transform: translate(var(--title-x, 0px), var(--title-y, 0px)) scale(var(--title-scale-x, 1), var(--title-scale-y, 1));
  opacity: var(--hero-mark-opacity, 1);
}
.hero h1.is-revealing .hero-title-text { opacity: 0; }
.hero-title-letters { position: absolute; inset: 0; pointer-events: none; }
.hero-title-letter {
  --welcome-letter-opacity: 1;
  position: absolute;
  top: 0;
  left: var(--title-letter-x);
  padding-inline-end: .08em;
  color: #e2df1e;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .js .hero :is(h1, .hero-end-type span, .hero-title-letter) {
    /* Sample the same sRGB difference image at the live title's position. */
    background: #e2df1e url("assets/hero-title-difference.webp") calc(var(--title-art-x, 0px) - var(--title-letter-x, 0px)) var(--title-art-y, 0px) / var(--title-art-size, auto) no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .js .hero h1.is-revealing { background: none; }
}
.hi, .hero-face {
  position: absolute;
  z-index: 2;
  width: 9%;
  height: auto;
  top: calc(var(--hero-title-top) + var(--hero-type-size) * .17);
  pointer-events: none;
  transform-origin: top left;
  transform: translate(var(--mark-x, 0px), var(--mark-y, 0px)) scale(var(--mark-scale, 1));
  opacity: var(--hero-mark-opacity, 1);
}
.hi { left: 14.6%; }
.hero-face { right: max(4.05%, calc(var(--gutter) + 1.2vw)); top: calc(var(--hero-title-top) + var(--hero-type-size) * .23); }
.hero-end-type { pointer-events: none; }
.hero-end-type span {
  opacity: .3;
  clip-path: inset(0 0 var(--type-mask, 100%) 0);
}
.hero-end-type .hero-end-emo { left: auto; right: 2%; top: 18%; transform-origin: top right; }
.hero-end-portfolio { bottom: 9%; transform: scaleX(var(--end-title-fit, 1)); }

.site-nav {
  position: fixed;
  z-index: 14;
  inset: 0 0 auto;
  padding: clamp(6px, .55vw, 10px) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font: 400 clamp(13px, 1.4vw, 22px)/1 var(--condensed);
  text-transform: uppercase;
}
.site-nav.past-hero { background: #fff; pointer-events: auto; }
.site-nav.over-about { background: transparent; }
.about-nav-underlay { display: none; }
.site-nav.over-about + .about-nav-underlay {
  display: block;
  position: fixed;
  z-index: 11;
  inset: 0 0 auto;
  height: var(--nav-height);
  background: #fff;
  pointer-events: none;
}
.site-brand, .site-menu { display: flex; align-items: center; gap: clamp(4px, .65vw, 12px); }
.hero-identity, .nav-portfolio {
  color: var(--yellow);
  font: 900 clamp(14px, 1.85vw, 30px)/1 "Arial Black", "Helvetica Neue", sans-serif;
  letter-spacing: -.04em;
}
.past-hero :is(.hero-identity, .nav-portfolio) { color: var(--ink); }
.hero-identity, .menu { pointer-events: auto; }
.nav-hi, .nav-face, .nav-portfolio { opacity: var(--nav-mark-opacity, 0); }
.nav-hi, .nav-face { height: auto; }
.nav-hi { width: clamp(22px, 3.2vw, 54px); }
.nav-face { width: clamp(27px, 3.85vw, 64px); }
.menu { position: relative; text-align: right; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; background: var(--yellow); padding: 10px 14px; margin-top: 7px; display: grid; gap: 5px; }
.menu a:hover { text-decoration: underline; }
.disciplines, .intro, .intro-more { position: absolute; z-index: 3; }
.disciplines { left: var(--gutter); top: 66.5%; line-height: 1.55; }
.disciplines a:hover { text-decoration: underline; text-underline-offset: 3px; }
.intro, .intro-more { right: var(--gutter); text-align: right; }
.intro { top: 45%; }
.intro-more { top: 65.2%; }
.hello { position: absolute; z-index: 2; background: var(--yellow); color: var(--ink); padding: 0 .21em; line-height: 1.12; text-transform: none; font-family: var(--body); font-weight: 500; }
.hello-one { top: 86%; left: 46.2%; }
.hello-two { top: calc(86% + 1.02em); left: 50%; }
.hero-edge { position: absolute; z-index: 3; inset: auto var(--gutter) 4.6%; display: flex; justify-content: space-between; gap: 12px; }
.hero-edge a:hover { text-decoration: underline; }
.trail { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.float-print {
  position: absolute;
  width: clamp(114px, 15vw, 240px);
  aspect-ratio: 3 / 4;
  translate: -50% -50%;
  opacity: 0;
}
.float-print img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.about {
  --about-top-padding: clamp(78px, 6.6vw, 124px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(480px, var(--viewport-height));
  padding: var(--about-top-padding) var(--gutter) clamp(36px, 5.1vw, 92px);
  background: #fff;
  overflow: hidden;
}
.about-copy {
  position: relative;
  z-index: 13;
  display: flex;
  flex: 1;
  flex-direction: column;
  pointer-events: none;
}
.site-nav.over-about ~ main .about-copy {
  clip-path: inset(calc(var(--about-nav-cut, 0px) - var(--about-top-padding)) -100vw -100vh);
}
.site-nav.over-about ~ main .about-doodle {
  clip-path: inset(var(--about-nav-cut, 0px) -100vw -100vh);
}
.about h2 { font-size: clamp(13px, 1.5vw, 22px); font-weight: 500; margin-bottom: 1.6vw; }
.statement {
  --word-spacing-start: -.015em;
  --word-spacing-end: .36em;
  margin-bottom: clamp(40px, 5vw, 84px);
  font-weight: 600;
  font-size: clamp(27px, 4.55vw, min(83px, calc(var(--hero-height) * .081)));
  line-height: 1.05;
  letter-spacing: -.045em;
  word-spacing: var(--word-spacing-end);
}
.statement-line {
  position: relative;
  display: block;
}
.statement-line:nth-child(even) { text-align: right; }
.statement-word {
  display: inline-block;
  transform: translateX(var(--word-x, 0px));
}
.view-work {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(41.4vw, 680px);
  min-height: 44px;
  margin: auto auto 0;
  border: 1px solid #73736f;
  background: #fff;
  font-size: clamp(13px, 1.56vw, 24px);
  pointer-events: auto;
}
@media (hover: hover) {
  .view-work:hover { border-color: var(--yellow); background: var(--yellow); }
}
.doodle { position: absolute; opacity: 1; pointer-events: none; }
.js .doodle { opacity: 0; }
.js .about.seen .doodle { animation: peek 620ms cubic-bezier(.21,.78,.35,1.25) both; }
.js .about.seen .doodle-emo { animation-delay: 220ms; }
.about-doodle { position: absolute; inset: 0; z-index: 13; pointer-events: none; }
.doodle-emo {
  bottom: 13%;
  left: var(--gutter);
  width: 13.8%;
}
@keyframes peek { from { opacity: 0; transform: translateY(18px) rotate(-8deg); } to { opacity: 1; transform: none; } }

.lanyard-guide {
  --attachment-x: 84%;
  --attachment-y: 44%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lanyard-guide > span {
  position: absolute;
  top: var(--attachment-y);
  left: var(--attachment-x);
  width: clamp(15px, 2.3vw, 40px);
  height: clamp(5px, .66vw, 10px);
}
.lanyard {
  --clip-width: 17.7%;
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  clip-path: inset(0 0 var(--lanyard-bottom-clip, 0px));
}
.lanyard[hidden] { display: none; }
.lanyard-stage, .lanyard-model, .lanyard-canvas, .lanyard-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.lanyard-canvas { display: block; filter: drop-shadow(3px 7px 7px #19191622); }
.lanyard-hit {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  border: 0;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.lanyard-hit:focus-visible { background: #ffff3e33; outline: none; }
.lanyard.is-loading .lanyard-static, .lanyard.has-model .lanyard-static { visibility: hidden; }
.lanyard:not(.has-model) .lanyard-stage { visibility: hidden; }
.lanyard-static-band {
  position: absolute;
  top: var(--lanyard-anchor-y);
  left: var(--lanyard-anchor-x);
  width: var(--lanyard-band-width);
  height: max(0px, calc(var(--lanyard-card-y) - var(--lanyard-anchor-y) + 7px));
  transform: translateX(-50%);
  background: url("assets/lanyard-weave.webp") center / 100% auto repeat-y;
}
.lanyard-card {
  position: absolute;
  top: var(--lanyard-card-y);
  left: var(--lanyard-anchor-x);
  width: clamp(118px, 15.9vw, 300px);
  appearance: none;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  border: 0;
  padding: 0;
  background: none;
  filter: drop-shadow(3px 7px 7px #1919162b);
  user-select: none;
}
.lanyard-face {
  display: block;
  position: relative;
  width: 100%;
  margin-top: 13.7%;
  aspect-ratio: 5715 / 7973;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6% / 4.3%;
  /* Inline the slot shape so the card also renders in a file:// preview. */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 977'%3E%3Cpath fill-rule='evenodd' d='M0 0H700V977H0Z M289 43H409A15 15 0 0 1 409 73H289A15 15 0 0 1 289 43Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.lanyard-face img { width: 100%; height: 100%; object-fit: cover; }
.lanyard-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(121deg, #fff5, #fff0 31%);
  box-shadow: inset 1px 1px 2px #fff9, inset -1px -2px 2px #25242042;
  pointer-events: none;
}
.lanyard-hardware { position: absolute; top: 0; left: 50%; width: var(--clip-width); transform: translateX(-50%); filter: saturate(.6) contrast(.89); }
.lanyard-hardware-back { clip-path: polygon(50% 56%, 100% 56%, 100% 94%, 50% 94%); }
.lanyard-hardware-front { z-index: 1; clip-path: polygon(0 0, 100% 0, 100% 56%, 50% 56%, 50% 94%, 100% 94%, 100% 100%, 0 100%); }

.site-nav.over-work { background: transparent; color: #f6f4eb; }
.site-nav.over-work :is(.hero-identity, .nav-portfolio) { color: inherit; }
.site-nav.over-work :is(.nav-hi, .nav-face) { filter: invert(1); }
.site-nav.over-work .menu nav { color: var(--ink); }

.work {
  --work-rule: #ffffff38;
  --work-muted: #c5c2b8;
  --work-paper: #f6f4eb;
  color: var(--work-paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-height, 68px) + clamp(12px, 2vh, 24px)) var(--gutter) clamp(16px, 3vh, 32px);
  background: #000000;
}

.work-intro { position: relative; align-self: center; text-align: center; }
.work-motto {
  position: relative;
  width: clamp(220px, 32vw, 620px);
  max-width: 100%;
  aspect-ratio: 870 / 220;
  margin-inline: auto;
}
.work-motto > * { position: absolute; height: auto; }
.motto-mess, .motto-work { display: flex; }
.work-motto span img { height: auto; min-width: 0; transform-origin: center 75%; }
.motto-mess { top: 0; left: 7.5%; width: 85%; }
.motto-then { top: 9%; left: 28.5%; width: 47.5%; z-index: 1; }
.motto-work { z-index: 2; width: 100%; left: 0; bottom: 0; }
.work-intro p { margin-top: clamp(24px, 2.5vw, 48px); color: #999; font-size: clamp(13px, .9vw, 17px); line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) {
  .work-motto.motion-ready:not(.seen) > *,
  .work-motto.motion-ready:not(.seen) + p { opacity: 0; }
  .work-motto.seen .motto-mess { animation: motto-settle .65s ease-out backwards; }
  .work-motto.seen .motto-then { animation: motto-reveal .85s ease-in-out .36s backwards; }
  .work-motto.seen .motto-work { animation: motto-settle .7s ease-out 1s backwards; }
  .work-motto.seen span img { animation: motto-word-tilt .85s ease-in-out var(--beat, .3s) backwards; }
  .motto-work { --beat: 1.1s; }
  .work-motto span img:nth-child(2) { animation-delay: calc(var(--beat, .3s) + .12s); }
  .work-motto span img:nth-child(3) { animation-delay: calc(var(--beat, .3s) + .24s); }
  .work-motto.seen + p { animation: intro-copy-arrive .55s ease-out 1.05s backwards; }
}
@keyframes motto-word-tilt {
  0%, 100% { transform: rotate(0); }
  42% { transform: rotate(var(--tilt)); }
  74% { transform: rotate(calc(var(--tilt) * -.22)); }
}
@keyframes motto-settle {
  from { opacity: 0; transform: translateY(32%) rotate(-4deg) scale(.94); }
  70% { opacity: 1; transform: translateY(-5%) rotate(.8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-copy-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes motto-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

.carousel { display: flex; flex: 1; flex-direction: column; }
.carousel:not(.is-ready) .carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 16px;
  padding-block: 24px;
}
.work-controls[hidden], .carousel:not(.is-ready) .work-controls { display: none; }

.carousel-window { position: relative; }
.carousel.is-ready .carousel-window {
  --card-width: min(21vw, 39vh, 480px);
  --card-width: min(21vw, 39svh, 480px);
  --card-top: clamp(8px, 1.4vh, 18px);
  flex: 1;
  min-height: calc(var(--card-top) + 3 * var(--card-width));
  margin-inline: calc(-1 * var(--gutter));
  overflow-x: clip;
  overflow-y: visible;
  /* Allow tilted and lifted cards to paint into the space above the deck. */
  clip-path: inset(calc(-1 * var(--card-width)) 0 0);
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.carousel-window:focus-visible { outline: 1px solid var(--yellow); outline-offset: -3px; }
.carousel.is-ready .carousel-track { position: absolute; inset: 0; }

.work-card { position: relative; min-width: 0; aspect-ratio: 3 / 4; padding: 0; border: 0; }
.carousel.is-ready .work-card {
  position: absolute;
  left: 50%;
  top: var(--card-top);
  width: var(--card-width);
  perspective: 950px;
  color: var(--ink);
  background: transparent;
  transform: translate3d(calc(-50% + var(--card-x, 0px)), var(--card-y, 0px), 0) rotate(var(--card-tilt, 0deg)) scale(var(--card-scale, 1));
  visibility: hidden;
  cursor: grab;
  user-select: none;
}
.carousel-window.dragging, .carousel-window.dragging .work-card { cursor: grabbing; }

.work-pointer {
  position: absolute;
  z-index: 201;
  inset: 0 auto auto 0;
  display: none;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--yellow);
  color: var(--ink);
  font: 600 12px/1.15 var(--body);
  pointer-events: none;
}
@media (any-hover: hover) and (any-pointer: fine) {
  .carousel.is-ready .work-pointer { display: block; opacity: 0; transition: opacity 140ms ease; }
  .carousel.is-ready .work-pointer.is-visible { opacity: 1; }
  .carousel.is-ready .work-card { transition: translate 220ms cubic-bezier(.2,.75,.3,1); }
  .carousel.is-ready .carousel-window:not(.dragging):has(.work-pointer.is-visible) .work-card:hover {
    translate: 0 -8px;
  }
  .carousel-window.dragging .work-pointer { background: var(--work-paper); }
}

.work-card-front, .work-card-back {
  position: absolute;
  inset: 0;
  border-radius: clamp(14px, 1.4vw, 28px);
  backface-visibility: hidden;
  overflow: hidden;
}
.work-card-front {
  background: #292927;
  transform: rotateX(var(--card-pitch, 0deg)) rotateY(var(--card-flip, 0deg));
}
.work-card-title {
  position: absolute;
  inset: 0 0 auto;
  padding: 8% 8% 11%;
  color: white;
  background: linear-gradient(#000c, #000b 58%, transparent);
  text-align: left;
  font-size: clamp(15px, 1.7vw, 32px);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -.045em;
}
.work-card-front img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.work-card-back {
  display: grid;
  place-items: center;
  background: var(--card-back-color, var(--work-paper));
  transform: rotateX(var(--card-pitch, 0deg)) rotateY(calc(180deg + var(--card-flip, 0deg)));
}
.work-card-back::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid currentColor;
  border-radius: inherit;
}
.work-card-back img {
  width: 47%;
  filter: brightness(var(--spade-brightness, 1));
}
.work-card:focus-visible { outline-color: var(--yellow); }

.work-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--work-rule);
  padding-top: clamp(12px, 2vh, 20px);
}
.work-caption { display: flex; align-items: center; gap: 8px 16px; }
.work-caption strong { display: block; font-size: clamp(15px, 1.55vw, 25px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
.work-caption span, .work-caption small { font-size: 12px; color: var(--work-muted); }
.work-caption span { display: block; margin-top: 4px; }
.work-caption small { white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-drag-hint { color: var(--yellow); font-size: 13px; white-space: nowrap; }
.work-arrows { display: flex; justify-self: end; gap: 6px; }
.work-arrows button {
  display: grid;
  place-items: center;
  border: 1px solid var(--work-rule);
  width: clamp(44px, 4.6vw, 72px);
  height: 44px;
  border-radius: 22px;
  font: 400 23px/1 var(--condensed);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.work-arrows button:is(:hover, :focus-visible) { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.projects, .project-page {
  color: #f6f4eb;
  background: #000000;
}
.projects {
  scroll-margin-top: var(--nav-height, 68px);
  padding: clamp(40px, 4vw, 80px) var(--gutter) 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.35vw, 26px);
  max-width: 1600px;
  margin-inline: auto;
}
.project-cell { display: flex; min-width: 0; }
.project-index {
  --index-divider: #b8b8b8;
  margin: clamp(80px, 9.5vw, 180px) calc(-1 * var(--gutter)) 0;
  border-top: 1px solid var(--index-divider);
}
.project-index a {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr auto;
  align-items: center;
  padding: .42em var(--gutter);
  min-height: 54px;
  border-bottom: 1px solid var(--index-divider);
  font-size: clamp(17px, 1.95vw, 39px);
  line-height: 1.3;
}
.project-index strong { font-size: clamp(15px, 1.45vw, 28px); }
.project-index span { font-size: clamp(12px, 1.16vw, 22.4px); }
.project-index img {
  position: absolute;
  left: 30%;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  height: 150%;
  width: auto;
  visibility: hidden;
  pointer-events: none;
}
.project-index i {
  padding: 0 .5em;
  border: 1px solid;
  border-radius: 2em;
  font-style: normal;
  opacity: 0;
}
.project-index a:is(:hover, :focus-visible) { background: var(--yellow); color: #000; z-index: 1; }
.project-index a:is(:hover, :focus-visible) img { visibility: visible; }
.project-index a:is(:hover, :focus-visible) i { opacity: 1; }
@media (max-width: 640px) {
  .project-index a { grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .project-index img { display: none; }
  .project-index i { opacity: 1; }
}
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 432 / 577;
  width: 100%;
  border-radius: clamp(16px, 1.8vw, 34px);
  background: #222220;
  transition: scale 360ms cubic-bezier(.22, 1, .36, 1), transform 360ms cubic-bezier(.22, 1, .36, 1), box-shadow 360ms ease;
}
.project-category, .project-card-link { color: var(--project-accent, var(--yellow)); }
.project-category { font-size: clamp(13px, 1.13vw, 18px); font-weight: 650; }
.project-card .project-cover { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: inherit; }
.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(14px, 1.2vw, 22px);
  background: #323230;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--project-focus, 50%);
}
.project-card-link { font-size: clamp(13px, 1.05vw, 16px); }
.project-card { container-type: inline-size; }
.project-cover-title {
  position: absolute;
  right: 4%;
  bottom: 3%;
  color: white;
  font: 700 8cqw/1 var(--body);
  letter-spacing: -.045em;
}
.project-card-link span { display: inline-block; margin-left: .25ch; }
.project-card:focus-visible { outline-color: var(--project-accent, var(--yellow)); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-cell:hover { position: relative; z-index: 1; }
  .project-cell:hover .project-card {
    scale: var(--project-hover-scale, 1.09);
    transform: perspective(1100px) rotateX(calc(var(--project-rx, 0deg) * .5)) rotateY(calc(var(--project-ry, 0deg) * .5));
    box-shadow: 0 20px 38px #0006;
  }
  .project-grid:has(> .project-cell:hover) > .project-cell:not(:hover) .project-card { scale: .95; }
}
@media (prefers-reduced-motion: no-preference) {
  .project-cell.is-in-view { animation: project-card-enter 620ms cubic-bezier(.22, 1, .36, 1) var(--project-delay) both; }
}
@keyframes project-card-enter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.project-page { --detail-nav-height: clamp(52px, 4vw, 68px); min-height: 100vh; background: #000000; color: #fff; }
.project-page .site-nav { --nav-mark-opacity: 1; position: sticky; height: var(--detail-nav-height); background: inherit; }
.project-page .site-nav :is(.hero-identity, .nav-portfolio) { color: inherit; }
.project-page .site-nav .menu nav { color: var(--ink); }
.project-detail {
  --story-top-space: clamp(12px, 1.2vw, 24px);
  --cover-top: calc(var(--detail-nav-height) + var(--story-top-space));
  --story-gap: clamp(16px, calc(100vw - 1292px), 112px);
  padding-block: var(--story-top-space) clamp(54px, 7vw, 112px);
}
.project-story, .project-missing {
  width: min(calc(100% - 32px), calc(1260px + var(--story-gap)));
  margin-inline: auto;
}
.project-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--story-gap); align-items: start; }
@media (min-width: 761px) {
  .project-story {
    --cover-room: calc(100svh - var(--cover-top) - 10px);
    max-width: calc(2 * var(--cover-room) * var(--cover-ratio, .748) + var(--story-gap));
    margin-inline: auto;
  }
}
.project-detail-header { grid-column: 1; grid-row: 1; }
.project-detail-header h1 { margin: 0; font-size: clamp(32px, 3.1vw, 60px); line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }
.project-article-intro { margin-block: clamp(20px, 1.8vw, 32px) clamp(32px, 4vw, 72px); }
.project-byline { margin: 0; font-size: 14px; border-bottom: 1px solid #ffffff66; }
.project-byline div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ffffff66; padding-block: .7em; }
.project-byline dd { margin: 0; color: inherit; font-size: inherit; font-weight: 500; }
.project-detail-intro { margin-top: clamp(26px, 3.5vw, 64px); }
.project-summary { font-size: clamp(18px, 1.25vw, 24px); line-height: 1.55; font-weight: 600; }
.project-description { margin-top: 1.2em; font-size: clamp(15px, 1vw, 18px); line-height: 1.8; }
.project-detail-image { grid-column: 2; grid-row: 1 / 3; position: sticky; top: var(--cover-top); width: 100%; height: auto; }
.project-case-gallery:not([hidden]) { grid-column: 1; grid-row: 2; display: grid; gap: clamp(12px, 2vw, 28px); }
.project-case-gallery > :is(img, video) { width: 100%; height: auto; }
.project-case-gallery video { background: #161616; }
.project-missing { margin-top: 64px; }
@media (max-width: 760px) {
  .project-story, .project-missing { width: auto; margin-inline: 12px; }
  .project-story { display: flex; flex-direction: column; gap: 24px; }
  .project-detail-header, .project-case-gallery { width: 100%; }
  .project-article-intro { margin-bottom: 0; }
  .project-detail-image { position: static; height: auto; }
}

.related-projects { margin-top: clamp(80px, 9.5vw, 180px); padding-inline: var(--gutter); }
.related-projects h2 { font-size: clamp(22px, 2vw, 32px); margin-block: 0 1em; }
.related-projects .project-index { margin-top: 0; }
.related-all { display: inline-block; margin-top: 24px; padding-block: 8px; }
.related-all:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 930px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) {
  .project-grid {
    --project-hover-scale: 1.04;
    grid-template-columns: 1fr;
  }
}

.contact {
  position: relative;
  background: #000000;
  color: white;
  padding: clamp(64px, 8vw, 150px) 3% clamp(175px, 19.6vw, 380px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr .85fr 1.33fr .62fr;
  gap: 16px;
  font-size: clamp(13px, .8vw, 15px);
  line-height: 2;
}
.contact-grid h2 { margin-bottom: .45em; font-size: 1.08em; font-weight: 500; color: #858585; line-height: 1.4; }
.contact-grid a { color: inherit; text-underline-offset: .07em; }
.contact-email a { font-size: clamp(17px, 1.25vw, 24px); }
.contact-wechat img { width: clamp(112px, 7.1vw, 150px); height: auto; background: white; padding: 6px; }
.contact-grid a:is(:hover, :focus-visible) {
  color: #000000;
  background: var(--yellow);
  box-shadow: .18em 0 var(--yellow), -.18em 0 var(--yellow);
  text-decoration: underline;
}
.footer-art { --top-button-width: clamp(60px, 8.5vw, 170px); position: absolute; inset: auto 0 0; height: clamp(115px, 14vw, 280px); }
.project-page .footer-art { position: relative; }
.ground { position: absolute; width: 100%; height: 14%; left: 0; bottom: 5%; }
.footer-bird {
  --bird-width: clamp(34px, 8vw, 160px);
  --bird-start: calc(100% - var(--top-button-width) - 2.7% - var(--bird-width));
  position: absolute;
  left: 21%;
  bottom: 66%;
  width: var(--bird-width);
  aspect-ratio: 286 / 130;
  pointer-events: none;
}
.footer-bird::before {
  content: "";
  display: block;
  aspect-ratio: 286 / 174;
  background: url("assets/footer-bird-frames.webp") left top / 200% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .js .footer-art:not(.seen) .footer-bird { left: var(--bird-start); }
  .footer-art.seen .footer-bird { animation: footer-bird-flight 4.5s linear .35s both; }
  .footer-art.seen .footer-bird::before { animation: footer-wingbeat 1.5s steps(1, end) .35s 3; }
  .flower-note img { animation: footer-flower-sway 2.8s ease-in-out infinite alternate; }
}
@keyframes footer-wingbeat {
  0%, 18%, 42%, 100% { background-position-x: 0%; }
  9%, 30% { background-position-x: 100%; }
}
@keyframes footer-bird-flight {
  0% { left: var(--bird-start); transform: none; }
  36% { transform: translateY(-18%) rotate(2deg); }
  64% { transform: translateY(7%) rotate(-3deg); }
  100% { left: 21%; transform: none; opacity: 1; }
}
@keyframes footer-flower-sway {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}
.flower-note {
  --flower-width: clamp(43px, 6vw, 120px);
  position: absolute;
  /* The stem meets the soil 29% across the flower and 5.75% across the ground. */
  left: calc(5.75% - var(--flower-width) * .29);
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 32px);
  color: black;
}
.flower-note img { width: var(--flower-width); transform-origin: 29% 100%; }
.flower-note span { display: grid; justify-items: start; font-size: clamp(14px, 1.1vw, 21px); line-height: 1.2; }
.flower-note mark + mark { margin-left: 1.35em; }
.back-top { position: absolute; right: 0; bottom: 0; width: var(--top-button-width); }
.back-top:focus-visible { outline-offset: -5px; }

@media (max-width: 960px) {
  .contact { padding: 64px var(--gutter) 170px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
}
@media (max-width: 460px) {
  .contact-email { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { font-size: 12px; }
  .disciplines { top: 64%; }
  .intro { top: 47%; }
  .intro-more { top: 61%; font-size: 11px; }
  .hero-edge { font-size: 11px; }
  .about {
    --about-top-padding: 66px;
    min-height: max(500px, var(--viewport-height));
    padding-bottom: 32px;
  }
  .about h2 { margin-bottom: 22px; }
  .statement { font-size: clamp(15px, 4.65vw, 30px); line-height: 1.2; }
  .statement-line { margin-bottom: 4px; }
  .view-work { width: min(64%, 310px); }
  .doodle-emo { bottom: 18%; width: 14%; }
  .lanyard-guide { --attachment-x: 75%; --attachment-y: 60%; }
  .lanyard-card { width: 96px; }
  .lanyard-guide > span { width: 14px; }
  .carousel.is-ready .carousel-window { --card-width: min(42vw, 38svh, 280px); }
  .work-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .work-caption { flex-wrap: wrap; gap: 4px 10px; }
  .work-drag-hint { display: none; }
  .contact-email { min-width: 0; }
}
@media (forced-colors: active) {
  .js .hero :is(h1, .hero-end-type span, .hero-title-letter) { color: CanvasText; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .js .doodle { opacity: 1; }
  .js .hero-track { height: var(--hero-height); }
  .carousel.is-ready .carousel-window .work-card { translate: none !important; }
}

@media (min-width: 641px) {
  .work:has(.carousel.is-ready) {
    position: relative;
    --fan-card-width: min(24.45vw, 38.8svh);
    --fan-top: max(var(--nav-height, 68px), 12svh);
    padding-block: var(--fan-top) 0;
  }
  .carousel.is-ready .carousel-window {
    --card-width: var(--fan-card-width);
    --card-top: 0px;
    min-height: calc(2.27 * var(--card-width));
  }
  .work:has(.carousel.is-ready) .work-intro {
    margin-top: calc(-.25 * var(--fan-card-width));
  }
}

@media (min-width: 1280px) {
  .work:has(.carousel.is-ready) {
    --fan-card-width: min(26.7vw, 42.37svh);
  }
}


html:has(.directory[open]) { overflow: hidden; }
.directory {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font: 400 clamp(8.5px, .86vw, 16px)/1.2 var(--body);
  --edge: clamp(9px, 1.2vw, 24px);
}
.directory::backdrop { background: #4442; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.directory-sheet {
  position: absolute;
  inset: var(--edge) var(--edge) var(--edge) 50%;
  display: grid;
  grid-template-rows: auto minmax(90px, 1fr) auto;
  overflow: auto;
  border: 1.5px solid;
  background: white;
}
.directory-close {
  position: absolute;
  right: calc(50% + var(--edge));
  top: 6%;
  border: 1.5px solid;
  background: white;
  border-radius: 2em;
  padding: .16em .45em;
  cursor: pointer;
}
.directory-info { padding: clamp(16px, 1.6vw, 32px) clamp(16px, 1.6vw, 32px) clamp(22px, 3.4vw, 66px); border-bottom: 1.5px solid; }
.directory-arrow { display: inline-block; font-size: 1.6em; line-height: 1; }
.directory-links { display: grid; grid-template-columns: 1fr 1.9fr .68fr; align-items: start; gap: .35em; margin-top: clamp(16px, 2.4vw, 44px); }
.directory-links > div { display: grid; justify-items: start; gap: .55em; }
.directory-links a:hover { text-decoration: underline; }
.directory-mail { font-size: 1.5em; background: var(--yellow); overflow-wrap: anywhere; }
.directory-qr { width: 100%; align-self: end; }
.directory-slides { position: relative; }
.directory-slides img { position: absolute; inset: 0; margin: auto; width: 62%; height: 64%; object-fit: contain; opacity: 0; transition: opacity 220ms ease; }
.directory-slides img.is-current { opacity: 1; }
.directory-ticker { container-type: inline-size; overflow: hidden; padding-block: .4em .7em; }
.directory-ticker > div { display: flex; width: max-content; animation: directory-scroll 18s linear infinite; }
.directory-ticker span { min-width: 100cqw; white-space: nowrap; padding-right: 2em; }
@keyframes directory-scroll { to { transform: translateX(-50%); } }
@media (min-width: 1200px) {
  .directory-sheet { left: 55%; }
  .directory-close { right: calc(45% + var(--edge)); }
  .directory-links { grid-template-columns: max-content max-content 19%; column-gap: clamp(32px, 6vw, 120px); }
}
@media (max-width: 800px) {
  .directory-sheet { left: var(--edge); top: 56px; }
  .directory-close { top: 10px; right: var(--edge); }
}
@media (max-width: 450px) {
  .directory-links { grid-template-columns: auto 1fr; gap: 14px; }
  .directory-qr { grid-column: 2; width: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .directory-ticker > div { animation: none; width: auto; padding-inline: 1em; }
  .directory-ticker span { white-space: normal; }
  .directory-ticker span[aria-hidden] { display: none; }
  .directory-slides img { transition: none; }
}
