/* Keep normal page flow and the existing hover-only wheel controls. */
.horizontal-section { scroll-margin-top: calc(var(--header) + 16px); }
.horizontal-viewport { scroll-margin-top: calc(var(--header) + 88px); }
.horizontal-track > * { scroll-margin-top: calc(var(--header) + 100px); }
@media (hover: hover) and (pointer: fine) {
  .horizontal-viewport { scroll-snap-type: none; }
}

/* Original overlapping, uncropped portraits; diffuse backlight replaces arches. */
.horizontal-viewport .department-portraits {
  background: radial-gradient(ellipse at 47% 57%, rgb(114 210 232 / 25%) 0%, rgb(114 210 232 / 12%) 38%, transparent 70%);
  border-radius: 0;
}
.horizontal-viewport .portrait-rule { display: none; }

/* Restore the viewport-height desktop presentation without pinning the page.
   Reserve the fixed header's space so the whole card remains reachable. */
@media (min-width: 1100px) and (min-height: 700px) and (hover: hover) and (pointer: fine) {
  .horizontal-section {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-top: calc(var(--header) + 20px);
    scroll-margin-top: 0;
  }
  .horizontal-viewport { min-height: 0; height: 100%; }
  .horizontal-track { height: 100%; }
  .horizontal-track > .department,
  .horizontal-track > .service-story {
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  .horizontal-viewport .department-portraits,
  .horizontal-viewport .team-cutout,
  .horizontal-viewport .service-photo { height: 100%; min-height: 0; }
}
@media (max-width: 760px) {
  .horizontal-hint { max-width: 28ch; }
}
