/* Shosty: bottom-aligned ticker, natural image ratios, captions above on hover. */
.shosty-home .home-first-screen {
  position: relative; display: flex; flex-direction: column;
  height: auto; min-height: 100svh; padding-top: 128px;
}
.shosty-home.black-home .home-hero {
  position: relative; inset: auto; flex: none; height: auto;
  padding: 0 24px 64px;
}
.shosty-home.black-home.home-page .home-title {
  width: auto; height: auto; max-width: 100%;
  font-size: clamp(64px, 6.5vw, 94px);
}
.home-projects, .home-work-grid {
  --project-spring: linear(0,.034456,.114522,.215170,.321054,.423226,.516895,.599905,.671716,.732726,.783839,.826183,.860943,.889260,.912181,.930632,.945414,.957206,.966579,.974005,.979871,.984492,.988124,.990973,.993202,.994944,.996303,.997361,.998184,.998823,.999319,.999703,1);
}
.home-projects {
  --project-gap: 14px;
  --project-width: calc((100vw - 28px) / 5);
  position: relative; width: 100%; padding: 0 14px 14px;
  margin-top: auto; overflow: hidden; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.home-project-track, .home-project-group {
  display: flex; flex-direction: row; align-items: flex-end;
  gap: var(--project-gap); width: max-content; margin: 0; padding: 0;
}
.home-project-track { will-change: transform; }
.home-project-group { flex: none; list-style: none; }
.home-project-item { flex: none; width: var(--project-width); }
.home-project-card {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  transition: opacity .5s var(--project-spring) .1s;
  -webkit-user-drag: none;
}
.home-project-caption {
  padding-bottom: 7px; opacity: 0;
  transition: opacity .5s var(--project-spring) .1s;
}
.home-project-caption :is(h2, p), .home-work-caption :is(h3, p) {
  margin: 0; font: 400 var(--project-caption-size, 14px)/1.42857143 'Test Untitled Sans', Arial, sans-serif;
  letter-spacing: 0;
}
.home-project-caption h2, .home-work-caption h3 {
  font-family: 'Work Untitled Sans', 'Test Untitled Sans', Arial, sans-serif;
  font-weight: 500;
}
.home-project-caption p, .home-work-caption p { color: var(--muted); }
.home-project-image { position: relative; width: 100%; overflow: hidden; border-radius: 0; }
.home-project-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; pointer-events: none; -webkit-user-drag: none;
  transition: filter .5s var(--project-spring) .1s, opacity .5s var(--project-spring);
}
.home-project-hover { position: absolute; inset: 0; opacity: 0; }
.home-project-fallback { filter: grayscale(1); }
.home-project-card:is(.is-project-hovered, :focus-visible) .home-project-hover { opacity: 1; }
.home-project-card:is(.is-project-hovered, :focus-visible) .home-project-fallback { filter: none; }
.home-project-card.is-project-hovered .home-project-caption,
.home-project-card:focus-visible .home-project-caption { opacity: 1; }
.home-project-card:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.home-grid-lens {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  transition: filter .5s var(--project-spring) .1s;
}
.home-project-image .home-grid-lens {
  opacity: 0;
  transition: opacity .5s var(--project-spring);
}
.home-project-card.is-project-hovered .home-grid-lens { opacity: 1; }
@media (hover:hover) and (pointer:fine) {
  .home-project-card .home-project-image { cursor: default; }
}
@media (min-width:810px) and (max-width:1199.98px) {
  .home-projects { --project-width: calc((100vw - 28px) * .4); }
}
@media (max-width:809.98px) {
  .shosty-home .home-first-screen { min-height: 100svh; padding-top: 112px; }
  .shosty-home.black-home .home-hero { padding: 0 20px 64px; }
  .shosty-home.black-home.home-page .home-title { font-size: clamp(34px, 10.7vw, 51px); }
  .home-projects { margin-top: 0; touch-action: auto; user-select: auto; }
  .home-project-track, .home-project-group { display: flex; flex-direction: column; width: 100%; gap: 14px; }
  .home-project-track { transform: none !important; will-change: auto; }
  .home-project-item { width: 100%; }
  .home-project-group[data-carousel-clone] { display: none; }
  .home-project-caption { order: 1; padding: 7px 0 0; opacity: 1; }
}
@media (prefers-reduced-motion:reduce) {
  .home-projects { overflow-x: auto; scrollbar-width: thin; }
  .home-project-track { transform: none !important; will-change: auto; }
  .home-project-group[data-carousel-clone] { display: none; }
  .home-project-caption { opacity: 1; }
  .home-project-card, .home-project-caption, .home-project-image img { transition: none; }
}
