.handovers {
  --handover-gap: 18px;
  background: var(--brown);
  color: #fff;
  padding: clamp(54px, 6vw, 94px) 0 clamp(58px, 6vw, 92px);
  overflow: hidden;
  font-family: Montserrat, Arial, sans-serif;
}

.handovers-heading {
  width: calc(100% - 88px);
  max-width: 1640px;
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.handovers-heading h2 {
  max-width: 1380px;
  margin: 0;
  font-family: inherit;
  font-size: clamp(32px, 3.8vw, 66px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.handovers-motion {
  flex: none;
  min-width: 110px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 100px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 700 13px Montserrat, Arial, sans-serif;
  transition: background .2s, border-color .2s;
}

.handovers-motion:hover { background: var(--copper); border-color: var(--copper); }
.handovers-motion-icon { width: 12px; height: 14px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.handovers-motion[aria-pressed="true"] .handovers-motion-icon { width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }

.handovers-window { width: 100%; overflow: hidden; }
.handovers-track { display: flex; width: max-content; animation: handovers-move 112s linear infinite; will-change: transform; }
.handovers-group { display: flex; flex: none; gap: var(--handover-gap); padding-right: var(--handover-gap); }
.handovers-window:hover .handovers-track,
.handovers-window:focus-within .handovers-track,
.handovers.is-paused .handovers-track { animation-play-state: paused; }
@keyframes handovers-move { to { transform: translate3d(-50%, 0, 0); } }

.handover-photo {
  flex: none;
  display: block;
  width: clamp(260px, 22vw, 340px);
  height: clamp(360px, 30vw, 460px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  background: #e4dfdb;
  cursor: zoom-in;
}
.handover-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.handover-photo:hover img { transform: scale(1.025); }
.handover-photo img { transition: transform .3s ease; }
.handovers-noscript { max-width: 1640px; margin: 20px auto; padding: 0 44px; }
.handovers :focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.handovers-dialog {
  position: fixed;
  inset: 0;
  width: min(1000px, calc(100% - 28px));
  max-width: 1000px;
  max-height: min(94svh, 1100px);
  padding: 54px 18px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  background: #262320;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.handovers-dialog::backdrop { background: rgba(19,16,14,.85); }
.handovers-dialog > img { display: block; max-width: 100%; width: auto; height: auto; max-height: calc(94svh - 135px); margin: 0 auto; object-fit: contain; border-radius: 6px; }
.handovers-dialog-close { position: absolute; top: 8px; right: 12px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; font: 32px/1 Montserrat, Arial, sans-serif; }
.handovers-dialog-bar { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 12px; font: 700 13px Montserrat, Arial, sans-serif; }
.handovers-dialog-bar button { width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 21px; }
.handovers-dialog button:hover { background: var(--copper); }
.handovers-dialog :focus-visible { outline: 3px solid #ef995d; outline-offset: 3px; }

@media (max-width: 700px) {
  .handovers { --handover-gap: 12px; padding: 54px 0 64px; }
  .handovers-heading { width: calc(100% - 32px); display: block; margin-bottom: 24px; }
  .handovers-heading h2 { font-size: clamp(29px, 7.5vw, 44px); line-height: 1.07; }
  .handovers-motion { margin-top: 22px; }
  .handover-photo { width: 230px; height: 315px; border-radius: 14px; }
  .handovers-track { animation-duration: 100s; }
}

@media (prefers-reduced-motion: reduce) {
  .handovers-track { animation: none; will-change: auto; }
  .handovers-window { overflow-x: auto; overscroll-behavior-x: contain; }
  .handovers-motion { display: none; }
  .handover-photo img { transition: none; }
}
