html.bar-only.work-feed,
.work-feed body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
html.bar-only.work-feed { scrollbar-gutter: stable; }
.work-feed.bar-only .page { height: auto; min-height: 100dvh; overflow: visible; }
.work-feed.bar-only .page,
.work-feed.bar-only .contact-overlay {
  --home-pill-expanded-height: max(24px, calc(100dvh - 48px));
  --contact-pill-height: max(96px, calc(min(160px, (100dvh - 84px) * 2 / 11) - 40px));
}
.work-feed.bar-only .rotator { position: fixed; z-index: 60; top: 24px; bottom: 24px; height: auto; }
.work-feed.bar-only .pill-stack { position: relative; gap: 8px; }
.work-feed .gallery {
  position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 16px 80px;
  width: 100%; height: auto; overflow: visible; touch-action: auto; filter: none;
}
.work-feed .gallery-item,
.work-feed .gallery-item.is-active {
  position: relative; inset: auto; display: block; align-self: center;
  width: var(--work-display-width, min(800px, 100%)); max-width: 100%; height: auto; opacity: 1; visibility: visible; transform: none;
  transition: none; pointer-events: auto; will-change: auto;
  content-visibility: visible;
}
.work-feed.bar-only .gallery-item .project-images {
  display: block; width: 100%; height: auto; aspect-ratio: var(--work-aspect);
  border: 0; border-radius: 40px; overflow: hidden; opacity: 0; background: transparent;
}
.work-feed.bar-only .gallery-item .project-images.is-media-ready { opacity: 1; }
.work-feed .gallery-item .project-image {
  opacity: 1; border-radius: 0; clip-path: none; animation: none; transform: none;
  will-change: auto; object-fit: contain;
}
.work-feed .gallery-item .project-images::after {
  inset: 0; border-radius: 40px; animation: none; transform: none;
  box-shadow: inset 0 0 0 1px rgb(34 34 34 / .04); will-change: auto;
}
.work-feed .video-play-button { display: none; }
.work-feed.bar-only .single-contact-pill,
.work-feed.bar-only .single-contact-pill:hover,
.work-feed.bar-only .single-contact-pill:active {
  background: #bbb;
  transform: none; transition: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.work-feed.bar-only .contact-pill,
.work-feed.bar-only .contact-pill:hover,
.work-feed.bar-only .contact-pill:active {
  border: 0;
  cursor: pointer;
  flex-basis: var(--contact-pill-height);
  margin-bottom: 0;
  transform: none;
  scale: 1;
  transform-origin: center;
  transition: scale 160ms cubic-bezier(.16, 1, .3, 1);
}
.work-feed.bar-only .contact-pill:active { scale: .95; }
@media (prefers-reduced-motion: reduce) {
  .work-feed.bar-only .contact-pill { transition: none; }
}

.contact-overlay {
  z-index: 50;
  --home-pill-expanded-height: max(24px, calc(100dvh - 80px));
  --contact-pill-height: min(160px, calc((var(--home-pill-expanded-height) - 4px) * 2 / 11));
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 224px 24px calc(24px + var(--contact-pill-height) - 40px);
  border: 0;
  background: transparent;
  color: #222;
}
.contact-overlay[open] { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.contact-overlay-shade {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgb(255 255 255 / .56);
  backdrop-filter: blur(200px);
  -webkit-backdrop-filter: blur(200px);
}
html:has(.contact-overlay[open]) .contact-overlay-shade { display: block; }
.contact-overlay::backdrop { background: transparent; }
@keyframes contact-backdrop-in {
  from { background: rgb(255 255 255 / 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
  to { background: rgb(255 255 255 / .56); backdrop-filter: blur(200px); -webkit-backdrop-filter: blur(200px); }
}
@keyframes contact-backdrop-out {
  from { background: rgb(255 255 255 / .56); backdrop-filter: blur(200px); -webkit-backdrop-filter: blur(200px); }
  to { background: rgb(255 255 255 / 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.contact-overlay[open]) .contact-overlay-shade { animation: contact-backdrop-in 400ms cubic-bezier(.16,1,.3,1) both; }
  html:has(.contact-overlay[open].is-closing) .contact-overlay-shade { animation: contact-backdrop-out var(--contact-close-duration, 400ms) cubic-bezier(.16,1,.3,1) both; }
}
.contact-overlay p {
  width: min(400px, 100%);
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-family: "Suisse Intl", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.18px;
  text-align: center;
}
.contact-previous-name { color: #555; }
.contact-previous-brand { display: inline-block; white-space: nowrap; }
.contact-previous-brand sup { font-size: .55em; line-height: 0; vertical-align: super; }
.contact-overlay-email { display: block; margin-top: 24px; color: #222; text-decoration: none; }
.contact-word { display: inline-block; transform-origin: left center; }
.contact-mobile-break { display: none; }
.work-feed.bar-only.is-about-open .home-pill { flex: 0 0 200px; height: 200px; background: #333; }
.work-feed.bar-only.is-about-open .contact-pill {
  flex-basis: calc(var(--contact-pill-height) - 40px);
  margin-top: auto;
  background: #00aeff;
}
.work-feed.bar-only .contact-pill.has-label-surfaces { background: transparent; }
.work-feed.bar-only .contact-pill.is-pointer-focused:focus-visible { outline: none; }
.pill-label-surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-color: rgba(77, 239, 36, .8);
}
.pill-label-surface[data-pill-label="work"] { opacity: 0; }
.is-about-open .pill-label-surface { background-color: #00aeff; }
.is-about-open .pill-label-surface[data-pill-label="about"] { opacity: 0; }
.is-about-open .pill-label-surface[data-pill-label="work"] { opacity: 1; }
html:has(.contact-overlay[open]) { overflow: hidden; }
@media (max-width: 720px) {
  .work-feed .gallery { gap: 40px; padding: 16px 80px; }
  .contact-mobile-break { display: initial; }
}

.work-feed .gallery:not(.is-work-loaded) { visibility: hidden; }
.work-feed .gallery-item[hidden] { display: none; }

.work-feed .gallery:not(.is-work-loaded) .gallery-item { visibility: hidden; }

.work-feed:not(.manage-view) .gallery {
  padding-top: var(--feed-top-space, 16px);
  padding-bottom: var(--feed-bottom-space, 16px);
}

/* Visible planes need unrestricted paint bounds for their projected corners. */
.work-feed:not(.manage-view) .gallery-item.is-gravity-visible {
  content-visibility: visible;
  perspective: 1800px;
  perspective-origin: 50% var(--gravity-origin-y, 50%);
}
.work-feed:not(.manage-view) .gallery-item .project-images {
  transform: var(--gravity-transform, none);
  transform-origin: center;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .work-feed:not(.manage-view) .gallery-item .project-images { transform: none; }
}

@keyframes work-load-entrance {
  from { opacity: 0; scale: .94; translate: 0 24px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .work-feed.bar-only:not(.manage-view) .pill-stack:not(.is-pill-intro-complete) > .home-pill,
  .work-feed.bar-only:not(.manage-view) .pill-stack:not(.is-pill-intro-complete) > .contact-pill {
    animation: work-load-entrance 700ms cubic-bezier(.22, 1, .36, 1) both;
    animation-play-state: paused;
  }
  .work-feed.bar-only:not(.manage-view) .pill-stack:not(.is-pill-intro-complete) > .contact-pill {
    animation-delay: 140ms;
  }
  .work-feed.bar-only:not(.manage-view) .pill-stack.is-pill-intro-started > .home-pill,
  .work-feed.bar-only:not(.manage-view) .pill-stack.is-pill-intro-started > .contact-pill {
    animation-play-state: running;
  }
  .work-feed.bar-only:not(.manage-view) .gallery-item.has-load-entrance {
    animation: work-load-entrance 700ms cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc((var(--work-intro-order, 0) + 2) * 140ms);
    animation-play-state: paused;
  }
  .work-feed.bar-only:not(.manage-view) .gallery.is-intro-ready .gallery-item.has-load-entrance:has(.is-media-ready) {
    animation-play-state: running;
  }
}


/* Native scroll effects run independently of JavaScript and native scroll velocity. */
.work-feed:not(.manage-view) .gallery.has-native-scroll .gallery-item {
  perspective: none;
  content-visibility: visible;
  contain: none;
  overflow: visible;
}
.work-feed:not(.manage-view) .gallery.has-native-scroll .project-images {
  visibility: hidden;
}
.work-feed:not(.manage-view) .gallery.has-native-scroll .project-images.is-media-ready {
  visibility: visible;
}

/* White mounts retain the artwork's proportions and any existing screen crop. */
.work-feed.bar-only .gallery-item .project-images.has-white-padding {
  padding: var(--work-padding, 80px);
  box-sizing: border-box;
  aspect-ratio: auto;
  background: #fff;
}
.work-image-content {
  position: relative;
  width: 100%;
  aspect-ratio: var(--work-aspect);
  overflow: hidden;
}

/* Pre-cropped responsive copies fit their reserved artwork area directly. */
.work-feed.bar-only .gallery-item .project-image.is-optimized-work {
  width: 100%; height: 100%; left: 0; top: 0; right: auto; bottom: auto;
  object-fit: contain;
}
.mobile-work-feed .gallery-item { overflow-anchor: none; }
.mobile-work-feed { overflow-anchor: none; }

.work-video-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; pointer-events: none; z-index: 1;
}
.work-feed .project-video-frame .project-image { opacity: 0; }
.work-feed .project-video-frame.has-video-frame .project-image { opacity: 1; }
.work-feed .project-video-frame.has-video-frame .work-video-preview { visibility: hidden; }

.work-feed:not(.manage-view) .gallery:not(.is-motion-ready) .gallery-item .project-images {
  visibility: hidden;
}
