/* A project ribbon with crisp photo edges and a stationary focal area. */
.home-crawler {
  --ribbon-top: calc(var(--brand-lockup-top) + var(--brand-lockup-height) + var(--lockup-bottom-gap) - 104px);
  --ribbon-height: clamp(540px, 65svh, 740px);
  --photo-gap: 12px;
  position: relative;
  isolation: isolate;
  min-height: calc(var(--ribbon-top) + var(--ribbon-height) + 98px);
  padding: 0;
  display: block;
  overflow: hidden;
}
.crawler-window {
  position: absolute;
  left: 0;
  top: var(--ribbon-top);
  width: 83%;
  height: var(--ribbon-height);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #0009 13%, #000 24%, #000 52%, #000b 65%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 0%, #0009 13%, #000 24%, #000 52%, #000b 65%, transparent 96%);
}
.crawler-track, .crawler-group { display: flex; width: max-content; height: 100%; }
.crawler-track { will-change: transform; }
.crawler-group { gap: 0; padding: 0; flex-shrink: 0; }
.crawler-frame { margin: 0 var(--photo-gap) 0 0; flex: 0 0 auto; width: clamp(580px, 62vw, 1050px); height: 100%; }
.crawler-frame.portrait { width: clamp(340px, 36vw, 560px); }
.crawler-frame.compact { width: clamp(500px, 53vw, 830px); }
/* A small gutter separates photographs; the overall ribbon fade stays intact. */
/* Separate photo layers keep offscreen images painting when the ribbon is paused or stepped. */
.crawler-frame { transform: translateZ(0); }
.crawler-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.crawler-frame.portrait img { object-position: center 58%; }
.home-crawler .feature-identity {
  position: relative;
  z-index: 1;
  width: 25%;
  margin-left: 72%;
  padding-top: clamp(140px, 19svh, 210px);
  padding-bottom: 60px;
}
.home-crawler .feature-identity h1 { font-size: clamp(30px, 3vw, 46px); }
.home-crawler .feature-identity > p { max-width: 290px; }
.home-crawler .feature-recognition { margin-top: 36px; }
.crawler-toolbar {
  position: absolute;
  top: calc(var(--ribbon-top) + var(--ribbon-height) + 17px);
  left: var(--pad);
  max-width: calc(100% - 2 * var(--pad));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}
.crawler-current { background: transparent; color: var(--page-text); padding: 6px 0; text-align: left; display: flex; align-items: center; gap: 14px; font-size: 12px; width: 100%; }
.crawler-current > [data-crawler-name] { flex: 1; min-width: 0; }
.crawler-meta { display: flex; flex-direction: column; gap: 7px; order: 1; width: 240px; min-width: 0; }
.crawler-meta > .eyebrow { font-size: 8px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px 7px; }
.crawler-pagination { white-space: nowrap; }
[data-crawler-count] { display: inline-block; width: 2ch; font-variant-numeric: tabular-nums; }
.crawler-controls { display: flex; align-items: center; gap: 3px; order: 0; padding-right: 18px; border-right: 1px solid var(--rule); flex-shrink: 0; }
.crawler-controls button { display: grid; place-items: center; padding: 0; background: transparent; color: var(--page-text); width: 40px; height: 44px; }
.crawler-controls button:hover, .crawler-current:hover { color: var(--text-accent); }
.crawler-controls svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.crawler-play { display: none; }
[data-crawler-paused="true"] .crawler-play { display: block; }
[data-crawler-paused="true"] .crawler-pause { display: none; }
.crawler-controls[hidden] { display: none; }
.crawler-window:not([data-ready]) .crawler-group { transform: translateX(7vw); }
@media (max-width: 1000px) and (min-width: 701px) {
  .home-crawler { --ribbon-height: 540px; }
  .crawler-window { width: 80%; }
  .crawler-frame { width: 650px; }
  .crawler-frame.compact { width: 540px; }
  .crawler-frame.portrait { width: 350px; }
  .home-crawler .feature-identity { margin-left: 68%; width: 29%; padding-top: 155px; }
  .home-crawler .feature-identity h1 { font-size: 32px; }
  .home-crawler .feature-identity > p { font-size: 12px; }
}
@media (max-width: 700px) {
  .site-header.home-header { height: calc(var(--brand-lockup-top) + var(--brand-lockup-height) + var(--lockup-bottom-gap)); padding-top: var(--brand-lockup-top); }
  .home-crawler { --photo-gap: 10px; min-height: 0; display: flex; flex-direction: column; padding: 0 0 38px; gap: 0; }
  .crawler-window { position: relative; top: auto; width: 100%; height: clamp(320px, 94vw, 510px); order: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .crawler-frame, .crawler-frame.compact { width: 98vw; }
  .crawler-frame.portrait { width: 68vw; }
  .crawler-toolbar { position: static; order: 1; width: auto; max-width: none; margin: 16px 24px 0; gap: 16px; min-height: 57px; }
  .crawler-current { font-size: 11px; gap: 10px; }
  .crawler-controls { gap: 0; padding-right: 10px; }
  .crawler-controls button { width: 34px; }
  .crawler-meta { gap: 4px; width: auto; flex: 1; }
  .home-crawler .feature-identity { order: 2; margin: 0; padding: 39px 24px 0; width: 100%; }
  .home-crawler .feature-identity h1 { font-size: clamp(30px, 8.8vw, 42px); max-width: 450px; }
  .home-crawler .feature-identity > p { max-width: 340px; }
  .crawler-window:not([data-ready]) .crawler-group { transform: translateX(6vw); }
}
@media (prefers-reduced-motion: reduce) {
  .crawler-track { will-change: auto; }
}
