Live showcase: free design on the Core foundation

The hero section above is built with content_mode: "custom" and custom_content.media_layout: "inline". The composition is free-form HTML and scoped critical CSS, while Core still builds the page's only H1, the subtitle, the primary CTA and the responsive image with formats, srcset, sizes, dimensions, alt text and preload.

The background, split and inline modes use the same Core-owned language, tracking, media and accessibility flows wherever they apply.

This matters because the hero module often affects both the first impression and LCP more than any other module.

Option 1: standard, video and custom mode

Without the new fields, module-hero uses exactly its usual standard mode. A video is switched on with background_video.display and an extensionless src under /videos-optimized/; the existing background_image then acts as the poster and LCP fallback.

content_mode: "custom" opens up a free-form content composition in custom_content.html and custom_content.css. The four Core slots ccms-hero-logo, ccms-hero-title, ccms-hero-subtitle and ccms-hero-button are always required. When media_layout is inline, exactly one ccms-hero-image is also required, which Core fills with its optimised <picture>.

custom_content.media_layout can be background, media-left, media-right or inline. The three older modes work unchanged. Inline mode uses an active background_image as a content image and therefore cannot be combined with background_video.display: true.

Option 2: full height, alignment and image variants

A short hero has min-height: 50svh and full_height=true uses min-height: 100svh, both with a vh fallback. The height follows the content: a long heading, intro, button and inline image may make the hero taller instead of being cut off.

In inline mode, the custom layout decides whether the image sits to the right of, to the left of or below the text. Scoped CSS may control the slot's width and max-width as well as the Core image's object-fit, object-position, radius, clipping and shadow. Core still owns the image's sources, alt text, dimensions and loading attributes.

background_image.tall/wide provide orientation-based art direction. An explicit, injection-safe background_image.sizes should describe the real responsive layout; it must match both the image's <source> elements and the two AVIF preloads that Core builds.

An image-based full_height hero is quality-checked on every build: the mobile source must exist, be separate from the wide source and have a genuinely portrait manifest master. The codes HERO_MOBILE_IMAGE_MISSING, HERO_MOBILE_IMAGE_REUSED and HERO_MOBILE_IMAGE_NOT_PORTRAIT are non-blocking but come back until the image is fixed. HERO_SUBTITLE_MISSING likewise comes back whenever the rendered language variant's subtitle is empty. The showcase hero shows the passing case, with separate tall/wide images and a concrete subtitle.

Option 4: LCP poster, deferred video and critical CSS

In inline mode, Core renders a single <picture class="hero-inline-picture"> in the image slot. The portrait and landscape sources are preloaded responsively, the declared dimensions reserve space, and fetchpriority="high", loading="eager" and decoding="async" are part of Core's protected LCP contract.

In the background and split modes, video works as before: it is not preloaded; its sources are hydrated only after load, once the hero is visible and the poster is ready. play_on_mobile, prefers-reduced-motion, Save-Data and the Core-owned play/pause button still apply. An inline image and a hero video are never chosen at the same time.

The custom hero's scoped CSS is minified, size-limited and inlined in the critical head path; optional JS is validated and delivered as a hashed defer asset. The custom code may compose around the image slot but may not replace or mutate Core's image sources, semantics or loading attributes.

Option 5: SEO, schema and AI optimisation

Hero copy should be short and unambiguous: a clear positioning in title, a concrete benefit statement in subtitle and a precise action on the button.

For schema, an ImageObject for the hero/media can be combined with an action type that matches the CTA, such as ScheduleAction or SubscribeAction.

The visible CTA intent and the schema intent must match; otherwise the signals become weaker for both search and AI.