.collection-choices { --arrow-nudge: 3px; }
[dir="rtl"] .collection-choices { --arrow-nudge: -3px; }
.profile-intro .collection-choices a {
  border-radius: 6px; border-color: #be412b; font-weight: 600;
  text-decoration: none; transition: background-color 180ms, border-color 180ms, color 180ms;
}
.profile-intro .collection-choices a:not([aria-current]) {
  background: #be412b20; color: #f6f0e4; border-color: #be412b;
}
.profile-intro .collection-choices a[aria-current] {
  color: #f6f0e4; background: #be412b; border-color: #be412b;
}
.profile-intro .collection-choices a:hover { background: color-mix(in srgb, #be412b 85%, #142d30); border-color: #be412b; color: #f6f0e4; text-decoration: none; }
:root[data-theme="light"] .profile-intro .collection-choices a:not([aria-current]) {
  background: #be412b12; color: #be412b; border-color: #be412b;
}
:root[data-theme="light"] .profile-intro .collection-choices a:not([aria-current]):hover { background: #be412b; color: #f6f0e4; }
.collection-choices a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.collection-choices a:active { translate: none; border-color: var(--focus); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .collection-choices a::after { transition: translate 150ms ease-out; }
  .collection-choices a:not([aria-current]):hover::after { translate: var(--arrow-nudge) 0; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .film-card .project-frame img,
  .layered-grid .exhibit-shot .project-still {
    transition: scale 300ms ease-out;
  }
  .film-card:hover .project-frame img,
  .layered-grid .exhibit-shot:hover .project-still {
    scale: 1.015;
  }
  .film-card .play-circle,
  .layered-grid.portfolio-grid .exhibit-play {
    transition: filter 300ms ease-out, opacity 150ms ease;
  }
  .film-card:hover .play-circle,
  .layered-grid .exhibit-shot:hover .exhibit-play {
    filter: brightness(1.14);
  }
}

/* Reserve the existing search row while its controller initializes. */
@media (scripting: enabled) {
  .collection-bar .work-search[hidden] { display: block !important; visibility: hidden; }
}

@media (min-width: 801px) and (min-height: 601px), (min-width: 801px) and (pointer: fine), (min-width: 1025px) {
  #films .project-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #films .film-card { grid-column: span 2; }
  #films .project-list:not(:has(> [hidden])) > .film-card:nth-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 767px), (pointer: coarse) and (max-width: 1024px) and (max-height: 600px) {
  #films .project-list { grid-template-columns: minmax(0, 1fr); }
}
#films .collection-interlude {
  grid-column: 1 / -1;
  grid-row: 4;
  min-height: 40vh;
  min-height: 40svh;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--paper);
  font: 700 clamp(24px, 6.6vw, 82px)/1.35 var(--display);
  text-align: center;
}
html:lang(en) #films .collection-interlude, html:lang(es) #films .collection-interlude {
  font-size: clamp(16px, 4.9vw, 72px);
}
#films .project-list:has(> .film-card[hidden]) > .collection-interlude { display: none; }

/* Shared moving previews; individual work pages retain their existing players. */
.has-motion-carousel .hero-figure { aspect-ratio: auto; overflow: visible; background: none; }
.has-motion-carousel [data-hero-poster-link],
.has-motion-carousel [data-hero-toggle],
.has-motion-carousel .film-lead-caption { display: none !important; }
.has-motion-carousel .motion-stage {
  position: relative; width: 100%; aspect-ratio: 2 / 1; max-height: 520px; isolation: isolate;
  overflow: hidden; direction: ltr; touch-action: pan-y pinch-zoom;
}
.has-motion-carousel .motion-card {
  position: absolute; left: 50%; top: 50%; width: min(70%, calc(440px * var(--preview-ratio))); aspect-ratio: var(--preview-ratio);
  overflow: hidden; border-radius: 8px; background: #101719;
  box-shadow: 0 12px 32px #0003; opacity: 0; z-index: 0;
  transform: translate(-50%, -50%) scale(.78); pointer-events: none;
  transition: transform 600ms cubic-bezier(.22,.68,.2,1), opacity 450ms ease;
}
.has-motion-carousel .motion-card[data-position="-1"] { transform: translate(-121%, -50%) scale(.82); opacity: .48; z-index: 1; pointer-events: auto; }
.has-motion-carousel .motion-card[data-position="1"] { transform: translate(21%, -50%) scale(.82); opacity: .48; z-index: 1; pointer-events: auto; }
.has-motion-carousel .motion-card.is-active { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 2; pointer-events: auto; }
.has-motion-carousel .motion-card video { display: block; width: 100%; height: 100%; object-fit: contain; aspect-ratio: var(--preview-ratio); }
.has-motion-carousel .motion-select { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: transparent; }
.has-motion-carousel .motion-controls { position: absolute; inset-inline-end: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 3; direction: ltr; }
.has-motion-carousel .motion-control,
.has-motion-carousel .motion-nav {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  min-width: 44px; padding: 0; border: 1px solid #ffffff35; border-radius: 50%;
  color: #fff; background: #10282bdb; cursor: pointer; backdrop-filter: blur(8px);
}
.has-motion-carousel .motion-control:hover, .has-motion-carousel .motion-nav:hover { background: #142d30; }
.has-motion-carousel .motion-full { inset: auto; margin: 0; opacity: 1; transform: none; }
.has-motion-carousel .motion-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; }
.has-motion-carousel .motion-previous { left: 8px; }
.has-motion-carousel .motion-next { right: 8px; }
.has-motion-carousel .motion-pagination { display: flex; align-items: center; justify-content: center; direction: ltr; gap: 0; margin-top: 0; }
.has-motion-carousel .motion-dot { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.has-motion-carousel .motion-dot::after { content: ''; width: 6px; height: 6px; border-radius: 6px; background: currentColor; opacity: .28; transition: width 250ms, opacity 250ms; }
.has-motion-carousel .motion-dot[aria-current="true"]::after { width: 22px; opacity: 1; background: var(--rust, #b34530); }
.has-motion-carousel button:focus-visible, .has-motion-carousel .motion-control:focus-visible { outline: 2px solid var(--focus, #d58c71); outline-offset: 3px; }
.has-motion-carousel .motion-select:focus-visible { outline-offset: -4px; }
@media (max-width: 600px) {
  .has-motion-carousel .motion-stage { aspect-ratio: 1.65; }
  .has-motion-carousel .motion-card { width: 84%; border-radius: 6px; }
  .has-motion-carousel .motion-card[data-position="-1"] { transform: translate(-132%, -50%) scale(.86); }
  .has-motion-carousel .motion-card[data-position="1"] { transform: translate(32%, -50%) scale(.86); }
  .has-motion-carousel .motion-controls { bottom: 7px; inset-inline-end: 7px; gap: 4px; }
  .has-motion-carousel .motion-previous { left: 0; }
  .has-motion-carousel .motion-next { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .has-motion-carousel .motion-card, .has-motion-carousel .motion-dot::after { transition: none; }
}

.success-partners { margin-block: 24px 40px; padding: 24px clamp(24px, 3vw, 40px); background: #be412b; color: #fff; border: 1px solid #f6f0e430; border-radius: 8px; }
.success-partners .partners-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.success-partners h2 { margin: 0; color: #f6f0e4; font-family: var(--display); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.4; }
.success-partners .partners-viewport { position: relative; height: 96px; overflow: hidden; }
.success-partners .partners-batch { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.success-partners .partners-row { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-evenly; gap: 0; margin: 0; padding: 0; list-style: none; }
.success-partners .partners-row li { flex: 0 0 auto; display: grid; place-items: center; min-width: 0; }
.success-partners .partners-row img { display: block; width: 100%; height: 100%; object-fit: contain; }
.success-partners .partners-accessible-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
@media (max-width: 600px) {
  .success-partners { padding: 24px 16px; margin-bottom: 32px; }
  .success-partners .partners-heading { margin-bottom: 12px; }
}
@media (max-width: 767px) { .success-partners .partners-viewport { height: 184px; } }
