/* Shared editorial motion. Content is visible without JavaScript. */
.fl-motion-frame { overflow: hidden; overflow: clip; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fl-motion-photo { transition: scale 900ms cubic-bezier(.2,.65,.3,1); }
  .fl-motion-frame:hover .fl-motion-photo { scale: 1.035; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-motion-photo { scale: none !important; transition: none !important; }
  .section--animate { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
  .fl-motion-photo { scale: none !important; }
  .section--animate { opacity: 1 !important; transform: none !important; }
}
:root {
  --fl-media-radius: 20px;
  --fl-panel-radius: 20px;
}

/* The same soft corners as the approved lift-design page. */
:where(main, .layout__main) :is(
  .fl-motion-frame, .heroVisual, .heroImage, .hero__image,
  .catalog-teaser__image, .news-card__image, .product-card__image,
  .company-section__image, .banner__image, .buildingImage, .productPhoto,
  .driveVisual, .processPhoto, .briefPhoto, .drawingSheet
) {
  border-radius: var(--fl-media-radius);
  overflow: hidden;
  overflow: clip;
}

:where(main, .layout__main) :is(figure > img, figure > a > img, .fl-motion-photo) {
  border-radius: var(--fl-media-radius);
}

:where(main, .layout__main) :is(
  .solution, .product, .placement, .briefPaper, .briefPanel,
  .requestPanel, .formPanel, .timeline, .videoPlaceholder,
  .showroomVisit, .studyPanel, .driveGrid > article
) {
  border-radius: var(--fl-panel-radius);
}

/* Keep images within cards; form panels retain their original overflow. */
:where(main, .layout__main) :is(.solution, .product, .placement, .driveGrid > article) {
  overflow: hidden;
  overflow: clip;
}

:where(main, .layout__main) .index { border-radius: 8px; }

@media (max-width: 650px) {
  :root { --fl-media-radius: 16px; --fl-panel-radius: 16px; }
}

/* Buttons and small information plates share the softer photo treatment. */
:where(main, .layout__main) :is(
  a.button, button.button, a.primary, button.primary,
  a.outline, button.outline, .catalog-teaser__button,
  a.primaryButton, button.primaryButton, a.pano-button, button.pano-button
) { border-radius: 12px; }

/* Match the cottage CTAs in legacy content, footer and modal forms too.
   Header actions and city filters retain their existing pill treatment. */
body :is(a, button, input[type="submit"], input[type="button"]).btn:not(.header__button):not(.full-menu__button):not(.city-chip__link) {
  border-radius: 12px;
}

:where(main, .layout__main) :is(.briefPin, .step, .index, figcaption) {
  border-radius: 8px;
}
