@font-face {
  font-family: 'Schoolbell';
  src: url('/assets/schoolbell-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'League Spartan';
  src: url('/assets/league-spartan.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('/assets/roboto-condensed.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #1b1b1b;
  --ink: #f4f0eb;
  --red: #ff4139;
  --muted: #b7aea7;
  --line: #4a4541;
  --nav-type: 'Trade Gothic', 'Trade Gothic LT Std', 'Roboto Condensed', sans-serif;
  --display-type: 'Futura Extra Bold', 'League Spartan', sans-serif;
  --display-size: clamp(1.425rem, 4.4vw, 4rem);
  --nav-gap: clamp(.58rem, 2vw, 1.35rem);
  color: var(--ink);
  background: var(--background);
  font: 700 10pt/1.45 var(--nav-type);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
a:hover, button:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header {
  position: relative;
  z-index: 10;
  padding: clamp(1.25rem, 4vw, 3.25rem) 1rem 0;
  text-align: center;
}
.wordmark {
  display: inline-block;
  color: var(--red);
  font: 900 var(--display-size)/.95 var(--display-type);
  white-space: nowrap;
  margin-inline: clamp(.12rem, .9vw, .8rem);
  letter-spacing: -.055em;
}
.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--nav-gap);
  margin: 0 auto;
  font: 700 clamp(.72rem, 1.45vw, .9rem)/1 var(--nav-type);
  letter-spacing: .07em;
}
.nav-side { display: flex; align-items: center; gap: var(--nav-gap); }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-link, .dropdown > button {
  display: block;
  padding: .7rem 0;
}
.nav-link[aria-current="page"] { color: var(--red); }
.dropdown { position: relative; }
.dropdown > button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
}
.dropdown > button:hover, .dropdown > button[aria-expanded="true"] { color: var(--red); }
.dropdown-panel {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 2rem);
  max-height: min(62svh, 31rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .5rem;
  text-align: left;
  font: inherit;
  line-height: 1.4;
  letter-spacing: 0;
  background: #252323;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px #0005;
}
.dropdown-panel ul { list-style: none; padding: 0; margin: 0; }
.dropdown-panel a, .dropdown-panel span { display: block; padding: .42rem .65rem; }
.dropdown-panel a:hover, .dropdown-panel a:focus-visible { background: #322d2b; }
.dropdown-panel a:focus-visible { outline-offset: -2px; }
.dropdown-panel span { color: var(--muted); }
.dropdown-panel small { font-size: .75rem; margin-left: .25rem; }
body:has(.home) {
  display: grid;
  grid-template-rows: auto minmax(15rem, 1fr);
}
.home {
  display: grid;
  container-type: size;
}
.hero-stage {
  position: relative;
  isolation: isolate;
  pointer-events: none;
  overflow: clip;
  display: grid;
  place-items: end center;
}
.buffalo-portrait {
  position: relative;
  width: min(100%, 104.48cqh);
}
.buffalo-portrait img { display: block; width: 100%; height: auto; }
.buffalo-portrait .motion-source { opacity: 0; }
.buffalo-portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.about-page, .project-page {
  width: min(100% - 2rem, 68rem);
  margin: clamp(2.5rem, 7vw, 5.25rem) auto 4rem;
}
.about-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: start;
  gap: clamp(1.5rem, 6vw, 6rem);
}
.intro { font-size: inherit; font-weight: 700; line-height: 1.25; }
.intro h1 { font: inherit; margin: 0 0 1.15em; }
.intro p { margin: 0 0 1.15em; }
.portrait { margin: 0; }
.portrait img, .case img, .case video { display: block; width: 100%; height: auto; }
.portrait figcaption { margin-top: .9rem; font-size: inherit; font-style: italic; font-weight: 700; }
.case h1 { font: 900 var(--display-size)/.95 var(--display-type); margin: .5rem 0 1rem; letter-spacing: -.055em; overflow-wrap: anywhere; }
.campaign-brand { color: var(--red); }
.case .main-media { margin: 1.75rem 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gallery img { aspect-ratio: 4/3; object-fit: contain; }
.under { text-decoration: underline; text-underline-offset: .18em; }
.case footer { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2rem; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { z-index: 11; top: .75rem; left: .75rem; width: auto; height: auto; clip-path: none; background: #252323; padding: .5rem; }
@media (max-width: 620px) {
  .about-layout { grid-template-columns: 1fr; }
  .portrait { max-width: 28rem; }
  .site-nav { position: relative; }
  .site-nav .dropdown { position: static; }
  .dropdown-panel { left: 0; transform: none; }
  .dropdown-panel { max-width: calc(100vw - 3rem); }
}
.nav-side > :last-child { position: relative; }
.nav-side > :last-child::before {
  content: '|';
  position: absolute;
  top: 50%;
  left: calc(var(--nav-gap) / -2);
  transform: translate(-50%, -50%);
  color: var(--muted);
  pointer-events: none;
}
@media (max-width: 620px) {
  .nav-left > :last-child { position: static; }
  .nav-left > :last-child::before { content: none; }
  .nav-left > :last-child > button { position: relative; }
  .nav-left > :last-child > button::before {
    content: '|';
    position: absolute;
    top: 50%;
    left: calc(var(--nav-gap) / -2);
    transform: translate(-50%, -50%);
    color: var(--muted);
    pointer-events: none;
  }
}
.campaign-credits { margin-top: 1.5rem; }
.campaign-credits summary { cursor: pointer; }
.credit-row { margin: .45rem 0 0; }
.project-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.project-media > :is(video, iframe) + :is(video, iframe) { margin-top: 1rem; }

.media-layout { display: grid; gap: clamp(.6rem, 2vw, 1.25rem); }
.media-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.3rem, 1.5vw, 1rem); }
.media-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vimeo-frame { display: block; width: 100%; }
.vimeo-frame.landscape { aspect-ratio: 16 / 9; }
.vimeo-frame.portrait { aspect-ratio: 9 / 16; }
.media-row-1 > .vimeo-frame.square { aspect-ratio: 1; width: min(100%, 36rem); justify-self: center; }
.media-divider { width: 100%; border: 0; border-top: 1px solid var(--line); margin: clamp(.5rem, 2vw, 1.5rem) 0; }
.media-assets h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.media-assets p { margin: 0; color: var(--muted); }
.media-assets .gallery { margin-top: .75rem; }

.campaign-awards { margin-block: 1em; }

.resume-page {
  width: min(100% - 2rem, 68rem);
  margin: clamp(2.5rem, 7vw, 5.25rem) auto 4rem;
}
.resume-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 5rem);
}
.resume-row + .resume-row {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 2rem;
}
.resume-section h2 {
  font: 900 clamp(1.35rem, 3vw, 2.3rem)/1 var(--display-type);
  letter-spacing: -.04em;
  margin: 0 0 1rem;
}
.resume-entry + .resume-entry { margin-top: 1rem; }
.resume-entry h3 { font: inherit; margin: 0 0 .2rem; }
.resume-entry p { margin: 0; }
.resume-list { list-style: none; margin: 0; padding: 0; }
.resume-list li + li { margin-top: .25rem; }
@media (max-width: 620px) {
  .resume-row { grid-template-columns: 1fr; }
}

.resume-section .resume-featured-heading {
  font-size: clamp(1.05rem, 2.6vw, 2.1rem);
  white-space: nowrap;
}

.campaign-image-rows {
  --image-gap: clamp(.3rem, 1.5vw, 1rem);
  display: grid;
  gap: var(--image-gap);
}
.campaign-image-rows .media-row { gap: var(--image-gap); }
.campaign-image-rows .media-row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.campaign-image-rows img { display: block; width: 100%; height: auto; }
.campaign-image-rows .photo-mosaic {
  aspect-ratio: 2 / 1;
  grid-template-rows: minmax(0, 1fr);
}
.campaign-image-rows .photo-mosaic-right { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.campaign-image-rows .photo-mosaic-left { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.campaign-image-rows .breds-pair { grid-template-columns: minmax(0, 1.80175439fr) minmax(0, .64735fr); }
.photo-stack {
  display: grid;
  gap: var(--image-gap);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.campaign-image-rows .photo-mosaic img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}


/* Clip the player edge without changing its layout or aspect ratio. */
.case :is(iframe, video) {
  border: 0;
  box-shadow: none;
  background: transparent;
  clip-path: inset(0 1px);
}
.case :is(iframe, video):focus-visible { outline-offset: -3px; }
main img {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.goldfish-icon-gallery {
  --icon-gap: clamp(.2rem, 1vw, .75rem);
  display: grid;
  gap: var(--icon-gap);
}
.goldfish-icon-row, .goldfish-goal-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--icon-gap);
}
.goldfish-goal-row { container-type: inline-size; }
.goldfish-goal-row > .goldfish-icon-tile {
  grid-column: 1 / -1;
  height: calc((100cqw - 6 * var(--icon-gap)) / 7);
  aspect-ratio: auto;
}
.goldfish-icon-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.goldfish-icon-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.goldfish-goal-row .goldfish-icon-tile img { object-fit: fill; }


.buffalo-portrait .buffalo-hoof {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .buffalo-dancing > :is(#portrait, #buffalo) {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 76%,
      29% 76%, 29% 100%, 0 100%);
  }
  .buffalo-dancing > .buffalo-hoof { display: block; }
  .buffalo-hoof-left {
    clip-path: inset(76% 58.5% 0 29%);
    transform-origin: 36% 76%;
    animation: buffalo-tap .48s ease-in-out infinite;
  }
  .buffalo-hoof-right {
    clip-path: inset(76% 45% 0 41.5%);
    transform-origin: 46% 76%;
    animation: buffalo-tap .48s .24s ease-in-out infinite;
  }
}
@keyframes buffalo-tap { 50% { transform: rotate(5deg) translateY(-1.5%); } }

.buffalo-speech {
  position: absolute;
  z-index: 4;
  inset: 13% auto auto 62%;
  max-width: min(23rem, 35vw);
  margin: 0;
  padding: .85em 1.05em;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  font: 400 clamp(1.4rem, 3.1vw, 2.65rem)/1.12 'Schoolbell', cursive;
  pointer-events: none;
  background: transparent;
}
.buffalo-speech::before {
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  border-radius: 43% 48% 33% 38% / 28% 32% 40% 34%;
  transform: rotate(-1deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 calc(57% + .57em),
    9% calc(57% + .57em), 9% 57%, 0 57%);
  content: '';
}
.buffalo-speech::after {
  position: absolute;
  top: 56%;
  right: 96%;
  width: .78em;
  height: .58em;
  background: #fff;
  clip-path: polygon(100% 0, 17% 77%, 100% 67%, 100% 82%, 0 100%, 0 82%, 100% 15%);
  content: '';
}
@media (max-width: 620px) {
  .buffalo-speech { inset: 6% 5% auto auto; max-width: min(17rem, 64vw); }
}
@media (prefers-reduced-motion: no-preference) {
  .buffalo-dancing { transition: translate .35s ease-out; }
  .buffalo-dancing[data-pose="flip"] { animation: buffalo-flip 1.45s cubic-bezier(.35, .08, .65, .92); }
  .buffalo-dancing[data-pose="splits"] { translate: 0 11%; }
  .buffalo-dancing:is([data-pose="splits"], [data-pose="kicks"]) > :is(#portrait, #buffalo) {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 72%,
      51% 66%, 30% 66%, 29% 75%, 29% 100%, 0 100%);
  }
  .buffalo-dancing[data-pose="splits"] .buffalo-hoof { animation: none; }
  .buffalo-dancing:is([data-pose="splits"], [data-pose="kicks"]) .buffalo-hoof-left {
    clip-path: polygon(30% 66%, 40.5% 66%, 41.5% 100%, 29% 100%, 29% 75%);
    transform-origin: 36% 66%;
    transform: rotate(68deg);
  }
  .buffalo-dancing:is([data-pose="splits"], [data-pose="kicks"]) .buffalo-hoof-right {
    clip-path: polygon(40.5% 66%, 51% 66%, 55% 72%, 55% 100%, 41.5% 100%);
    transform-origin: 46% 66%;
    transform: rotate(-68deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .buffalo-dancing[data-pose="kicks"] { animation: buffalo-kick-bounce .5s ease-in-out infinite; }
  .buffalo-dancing[data-pose="kicks"] .buffalo-hoof-left {
    --kick-angle: 60deg;
    animation: buffalo-kick 1s ease-in-out infinite;
  }
  .buffalo-dancing[data-pose="kicks"] .buffalo-hoof-right {
    --kick-angle: -60deg;
    animation: buffalo-kick 1s ease-in-out -.5s infinite;
  }
}
@keyframes buffalo-kick-bounce {
  50% { transform: translateY(3%); }
}
@keyframes buffalo-kick {
  0%, 50%, 100% { transform: rotate(0); }
  25% { transform: rotate(var(--kick-angle)); }
}
@keyframes buffalo-flip {
  0% { rotate: 0turn; translate: 0 0; scale: 1; }
  50% { translate: 0 -7%; scale: .88; }
  100% { rotate: 1turn; translate: 0 0; scale: 1; }
}

html[data-menu-open] .hero-stage * { animation-play-state: paused; }

@media (max-width: 620px) {
  body:has(.home) .site-header { padding: 1.35rem .75rem 0; }
  .site-nav {
    --nav-gap: clamp(.55rem, 2.2vw, .85rem);
    font-size: clamp(.68rem, 2.55vw, .85rem);
  }
  .site-nav .wordmark {
    position: relative;
    margin-inline: .2rem;
    font-size: clamp(1.35rem, 5.5vw, 2.1rem);
  }
  .site-nav .wordmark::before,
  .site-nav .wordmark::after {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    color: var(--muted);
    font: 700 .75rem/1 var(--nav-type);
    content: '|';
    pointer-events: none;
  }
  .site-nav .wordmark::before { right: calc(100% + var(--nav-gap) / 2); }
  .site-nav .wordmark::after { left: calc(100% + var(--nav-gap) / 2); }
  .site-nav :is(.dropdown > button, .nav-link) { min-height: 44px; }
  .site-nav .nav-link { display: grid; align-items: center; }
  .site-nav .dropdown-panel { max-height: min(65dvh, 31rem); }

  .home .hero-stage {
    --buffalo-floor: max(15cqh, 3rem);
    --buffalo-width: min(142vw, calc((100cqh - var(--buffalo-floor)) * 1.0448));
  }
  .home .buffalo-portrait {
    position: absolute;
    bottom: var(--buffalo-floor);
    left: 50%;
    width: var(--buffalo-width);
    translate: -50% 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .home .buffalo-dancing[data-pose="flip"] { animation-name: buffalo-flip-mobile; }
    .home .buffalo-dancing[data-pose="splits"] { translate: -50% 11%; }
  }
  .home .buffalo-speech {
    inset: 5% auto auto 50%;
    translate: -50% 0;
    width: max-content;
    max-width: 84vw;
    text-align: center;
  }
  .home .buffalo-speech::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 56% 100%, 56% 86%, 43% 86%, 43% 100%, 0 100%);
  }
  .home .buffalo-speech::after {
    inset: 98% auto auto 48%;
    transform: rotate(-80deg);
  }
}


.chicago-photos { --photo-gap: clamp(3px, .55vw, 8px); }
.chicago-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}
.chicago-jumps a { text-decoration: underline; text-underline-offset: .23em; }
.chicago-photos section + section {
  margin-top: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.chicago-photos section h2 {
  margin: 0 0 .8rem;
  font: 900 clamp(1.35rem, 3.35vw, 2.8rem)/1 var(--display-type);
  letter-spacing: -.04em;
}
.chicago-collage, .chicago-row, .chicago-stack {
  display: grid;
  gap: var(--photo-gap);
  align-items: start;
}
.chicago-stack { min-width: 0; }

.chicago-crop {
  position: relative;
  aspect-ratio: var(--crop-ratio);
  overflow: hidden;
}
.chicago-photos .chicago-crop img {
  position: absolute;
  top: var(--crop-top);
  left: var(--crop-left);
  width: var(--crop-width);
}

.campaign-image-rows .world-feature-pair {
  grid-template-columns: minmax(0, 1.714286fr) minmax(0, .75fr);
}
.campaign-image-rows .world-square-row img {
  aspect-ratio: 1;
  object-fit: contain;
}

.goods-gallery { --photo-gap: var(--image-gap); }
.goods-square-row img { aspect-ratio: 1; object-fit: contain; }
.goods-portrait-row img { width: min(100%, 34rem); justify-self: center; }

.stew-gallery { --photo-gap: clamp(4px, .65vw, 10px); }
.stew-row { grid-template-columns: var(--stew-tracks); }
.stew-gallery > .media-divider { margin-block: clamp(1.75rem, 5vw, 3.25rem); }
@media (max-width: 520px) {
  .stew-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep mobile's horizontal centering in place while the buffalo turns. */
@keyframes buffalo-flip-mobile {
  0% { transform: translateY(0) scale(1) rotate(0turn); }
  18% { transform: translateY(-5%) scale(.49) rotate(0turn); }
  82% { transform: translateY(-5%) scale(.49) rotate(1turn); }
  100% { transform: translateY(0) scale(1) rotate(1turn); }
}
