
  halo-hero {
    --halo-hero-edge: clamp(0.5rem, 0.9vw, 1rem);
    --halo-hero-top-offset: 0px;
    --halo-hero-viewport-height: 100dvh;
    --halo-hero-content-width: 47.5rem;
    --halo-hero-body-width: 40ch;
    --halo-hero-corner: var(--halo-radius-lg);
    --halo-hero-white: var(--halo-color-surface-pure);
    --halo-hero-dark: var(--halo-color-media-scrim);
    display: block;
    padding-top: var(--halo-hero-top-offset);
    background: var(--halo-color-surface-pure);
  }
  .halo-hero { padding: 0 var(--halo-hero-edge) var(--halo-hero-edge); }
  .halo-hero__panel {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: calc(var(--halo-hero-viewport-height) - var(--halo-hero-top-offset) - var(--halo-hero-edge));
    overflow: hidden;
    border-radius: 0 0 var(--halo-hero-corner) var(--halo-hero-corner);
    background: var(--halo-color-surface-strong);
  }
  .halo-hero__picture, .halo-hero__picture img, .halo-hero__video, .halo-hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
  .halo-hero__picture img, .halo-hero__video { object-fit: cover; }
  .halo-hero__video { opacity: 0; }
  halo-hero.is-playing .halo-hero__video { opacity: 1; }
  .halo-hero__scrim {
    background: radial-gradient(ellipse 62% 48% at 50% 50%, color-mix(in srgb, var(--halo-hero-dark) 46%, transparent), color-mix(in srgb, var(--halo-hero-dark) 22%, transparent) 55%, transparent), linear-gradient(to bottom, color-mix(in srgb, var(--halo-hero-dark) 16%, transparent), color-mix(in srgb, var(--halo-hero-dark) 6%, transparent) 40%, color-mix(in srgb, var(--halo-hero-dark) 44%, transparent));
  }
  .halo-hero__layout { position: relative; padding-block: var(--halo-space-32); }
  .halo-hero__content { max-width: var(--halo-hero-content-width); margin-inline: auto; text-align: center; color: var(--halo-hero-white); }
  .halo-hero-heading { margin: 0 0 var(--halo-space-4); color: inherit; text-wrap: initial; }
  .halo-hero-heading > span { display: block; }
  .halo-hero-heading sup { position: relative; top: -0.4em; margin-left: 2px; vertical-align: super; font-size: var(--halo-text-body-sm-size); font-weight: var(--halo-font-weight-regular); line-height: 0; letter-spacing: 0; }
  .halo-hero-body { max-width: var(--halo-hero-body-width); margin: 0 auto var(--halo-space-6); color: color-mix(in srgb, var(--halo-hero-white) 80%, transparent); }
  .halo-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--halo-space-3); }
  .halo-hero__play-icon { width: 22px; height: 22px; padding-left: 2px; display: grid; place-items: center; border-radius: var(--halo-radius-pill); background: color-mix(in srgb, var(--halo-hero-white) 92%, transparent); color: var(--halo-color-heading); }
  .halo-hero__play-icon svg { width: 10px; height: 12px; }
  .halo-hero__motion { position: absolute; bottom: var(--halo-space-4); right: var(--halo-space-4); }
  .halo-hero__motion[hidden] { display: none; }
  .halo-hero__motion svg { width: 16px; height: 16px; }
  .halo-hero__dialog { width: min(70rem, 92vw); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; overflow: visible; background: transparent; color: var(--halo-hero-white); }
  .halo-hero__dialog::backdrop { background: color-mix(in srgb, var(--halo-hero-dark) 84%, transparent); backdrop-filter: blur(6px); }
  .halo-hero__film { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--halo-radius-lg); background: var(--halo-hero-dark); }
  .halo-hero__film iframe { width: 100%; height: 100%; display: block; border: 0; }
  .halo-hero__close { position: absolute; top: -46px; right: 0; }
  @media (max-width: 53.75rem) {
    halo-hero { --halo-hero-edge: 0px; --halo-hero-corner: 0px; }
    .halo-hero__panel { align-items: end; }
    .halo-hero__layout { padding: var(--halo-space-32) var(--halo-space-4) var(--halo-space-8); }
    .halo-hero__content { max-width: 30rem; margin-inline: 0; text-align: left; }
    .halo-hero-body { margin-inline: 0; }
    .halo-hero__actions { flex-direction: column; align-items: stretch; }
    .halo-hero__scrim { background: linear-gradient(to bottom, color-mix(in srgb, var(--halo-hero-dark) 16%, transparent), color-mix(in srgb, var(--halo-hero-dark) 8%, transparent) 38%, color-mix(in srgb, var(--halo-hero-dark) 66%, transparent)); }
    .halo-hero__motion { top: var(--halo-space-24); bottom: auto; }
  }
  @media (max-width: 40rem) {
    .halo-hero__dialog[open] { width: 100%; height: 100dvh; display: flex; align-items: center; background: var(--halo-hero-dark); }
    .halo-hero__film { border-radius: 0; }
    .halo-hero__close { top: max(var(--halo-space-3), env(safe-area-inset-top)); right: var(--halo-space-3); }
  }
  @media (prefers-reduced-motion: reduce) { .halo-hero__video { display: none; } .halo-hero__motion { display: none; } }



  halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) {
    --halo-hero-content-width: 47.5rem;
    --halo-hero-preview-width: 22.5rem;
    --halo-hero-preview-play-size: 3.5rem;
  }
  halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero__panel { align-items: end; }
  halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--halo-hero-preview-width);
    align-items: end;
    gap: var(--halo-space-8);
    padding-bottom: var(--halo-space-12);
  }
  halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero__content { margin: 0; text-align: left; }
  halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero-body { margin-inline: 0; }
  halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero__actions { justify-content: start; }
  halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero__scrim {
    background: linear-gradient(to bottom, color-mix(in srgb, var(--halo-hero-dark) 16%, transparent), transparent 30%, color-mix(in srgb, var(--halo-hero-dark) 66%, transparent));
  }
  .halo-hero__video-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--halo-radius-lg);
    background: var(--halo-hero-dark);
    box-shadow: var(--halo-shadow-mid);
  }
  .halo-hero__preview-video { width: 100%; height: 100%; display: block; object-fit: cover; }
  .halo-hero__preview-play { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .halo-hero__preview-play .halo-hero__play-icon { width: var(--halo-hero-preview-play-size); height: var(--halo-hero-preview-play-size); transition: transform var(--halo-duration-fast) var(--halo-ease-out); }
  .halo-hero__preview-play .halo-hero__play-icon svg { width: var(--halo-space-4); height: var(--halo-space-4); }
  .halo-hero__preview-play:hover .halo-hero__play-icon { transform: scale(1.08); }
  .halo-hero__preview-play:focus-visible { outline: 3px solid var(--halo-color-focus); outline-offset: -4px; }
  .halo-hero__video-preview .halo-hero__motion { top: auto; bottom: var(--halo-space-2); right: var(--halo-space-2); }
  @media (max-width: 64rem) {
    halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero__layout { grid-template-columns: 1fr; gap: var(--halo-space-6); }
    .halo-hero__video-preview { width: min(100%, var(--halo-hero-preview-width)); }
  }
  @media (max-width: 53.75rem) {
    halo-hero:is([variant="image-preview"], [variant="image-preview-compact"], [variant="image-full-bleed"]) .halo-hero__layout { padding-bottom: var(--halo-space-8); }
    .halo-hero__video-preview { width: 100%; max-width: 30rem; }
  }
  @media (prefers-reduced-motion: reduce) { .halo-hero__preview-play .halo-hero__play-icon { transition: none; } }



  halo-hero[variant="image-preview-compact"] {
    --halo-hero-compact-height: clamp(36rem, 90vh, 56rem);
    --halo-hero-image-position: center top;
    --halo-hero-corner: var(--halo-radius-lg);
  }
  halo-hero[variant="image-preview-compact"] .halo-hero__panel {
    min-height: var(--halo-hero-compact-height);
    border-radius: var(--halo-hero-corner);
  }
  halo-hero[variant="image-preview-compact"] .halo-hero__picture img { object-position: var(--halo-hero-image-position); }
  halo-hero[variant="image-preview-compact"] .halo-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--halo-space-32);
    padding-bottom: var(--halo-space-8);
  }



 .halo-hero[data-corners="square"] .halo-hero__panel {border-radius:0}
 .halo-hero[data-corners="bottom"] .halo-hero__panel {border-radius:0 0 var(--halo-hero-corner) var(--halo-hero-corner)}
 .halo-hero[data-corners="rounded"] .halo-hero__panel {border-radius:var(--halo-hero-corner)}



 @media(max-width:48rem) {
  .halo-hero[data-corners="square-mobile"] .halo-hero__panel {border-radius:0}
 }


/* Internal page hero: full viewport width, compact height, no card framing. */

 halo-hero[variant="image-full-bleed"] {
  --halo-hero-edge:0px;
  --halo-hero-corner:0px;
  --halo-hero-internal-height:clamp(30rem,65svh,40rem);
  --halo-hero-image-position:center;
 }
 halo-hero[variant="image-full-bleed"] .halo-hero__panel {
  min-height:var(--halo-hero-internal-height);
  border-radius:0;
 }
 halo-hero[variant="image-full-bleed"] .halo-hero__layout {
  grid-template-columns:minmax(0,1fr);
  padding-top:var(--halo-space-12);
  padding-bottom:var(--halo-space-12);
 }
 halo-hero[variant="image-full-bleed"] .halo-hero__picture img {object-position:var(--halo-hero-image-position)}
 @media(max-width:48rem) {
  halo-hero[variant="image-full-bleed"] .halo-hero__layout {padding-bottom:var(--halo-space-8)}
 }



  halo-hero[variant="image-split"] {--halo-hero-top-offset:0px;--halo-hero-edge:0px}
  halo-hero[variant="image-split"] .halo-hero {padding:0}
  halo-hero[variant="image-split"] .halo-hero__panel {min-height:0;border-radius:0;background:var(--halo-color-surface-pure);overflow:visible}
  halo-hero[variant="image-split"] .halo-hero__layout {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--halo-space-12);align-items:center;padding-block:var(--halo-space-16)}
  halo-hero[variant="image-split"] .halo-hero__content {max-width:none;min-width:0;margin:0;text-align:left;color:var(--halo-color-heading);display:grid;gap:var(--halo-space-6)}
  halo-hero[variant="image-split"] .halo-hero-heading {margin:0;font-size:var(--halo-text-h1-size);font-weight:var(--halo-text-h1-weight);line-height:var(--halo-text-h1-leading);letter-spacing:var(--halo-text-h1-tracking)}
  halo-hero[variant="image-split"] .halo-hero__picture {position:static;width:100%;height:auto;display:block;border-radius:var(--halo-radius-lg);overflow:hidden}
  halo-hero[variant="image-split"] .halo-hero__picture img {display:block;position:static;width:100%;height:auto;object-fit:contain}
  .halo-hero__description,.halo-hero__meta {color:var(--halo-color-text-subtle)}
  .halo-hero__eyebrow {text-transform:uppercase}
  halo-hero[variant="image-split"] .halo-hero__eyebrow {justify-self:start;margin:0;padding:var(--halo-space-1) calc(var(--halo-space-2) + 0.125rem);border:var(--halo-border-width) solid var(--halo-color-border);border-radius:var(--halo-radius-xs);background:var(--halo-color-surface-pure);color:var(--halo-color-text)}
  /* Feature page template: set by content (template: 'feature'), not by a page class. */
  halo-hero[variant="image-split"] .halo-hero[data-template="feature"] .halo-hero-heading {font-size:var(--halo-text-feature-title-size);font-weight:var(--halo-text-feature-title-weight);line-height:var(--halo-text-feature-title-leading);letter-spacing:var(--halo-text-feature-title-tracking)}
  /* Breadcrumb: live greys its links (#a3a3a3, 2.5:1) and yellows the current page (1.5:1);
     both stay in the same places here at AA contrast. */
  .halo-hero__breadcrumb {padding-top:var(--halo-space-16);color:var(--halo-color-text-subtle)}
  halo-hero[variant="image-split"] .halo-hero__breadcrumb + .halo-hero__layout {padding-top:var(--halo-space-6)}
  .halo-hero__breadcrumb ol {display:flex;flex-wrap:wrap;gap:var(--halo-space-2);margin:0;padding:0;list-style:none}
  .halo-hero__breadcrumb li + li::before {content:'/' / '';margin-right:var(--halo-space-2)}
  .halo-hero__breadcrumb a {color:inherit;text-decoration:underline;text-decoration-color:var(--halo-color-border);text-underline-offset:0.2em}
  .halo-hero__breadcrumb a:hover {text-decoration-color:currentColor}
  .halo-hero__breadcrumb a:focus-visible {outline:var(--halo-focus-ring-width) solid var(--halo-color-focus);outline-offset:var(--halo-focus-ring-offset);border-radius:var(--halo-radius-xs)}
  .halo-hero__breadcrumb [aria-current] {color:var(--halo-color-heading);font-weight:var(--halo-font-weight-medium)}
  halo-hero[variant="image-split"] .halo-hero__actions {justify-content:flex-start}
  .halo-hero__rating {display:flex;flex-wrap:wrap;align-items:center;gap:var(--halo-space-2);color:var(--halo-color-text-subtle)}
  .halo-hero__rating img {width:var(--halo-space-24);height:auto}
  .halo-hero__rating a {color:var(--halo-color-text);text-decoration:underline;text-underline-offset:var(--halo-space-1)}
  .halo-hero__rating a:focus-visible {outline:var(--halo-focus-ring-width) solid var(--halo-color-focus);outline-offset:var(--halo-focus-ring-offset)}
  @media(max-width:64rem){
    halo-hero[variant="image-split"] .halo-hero__layout {gap:var(--halo-space-6)}
  }
  @media(max-width:48rem){
    halo-hero[variant="image-split"] .halo-hero__layout {grid-template-columns:1fr;padding-block:var(--halo-space-8)}
    .halo-hero__breadcrumb {padding-top:var(--halo-space-6)}
    halo-hero[variant="image-split"] .halo-hero__breadcrumb + .halo-hero__layout {padding-top:var(--halo-space-4)}
    halo-hero[variant="image-split"] .halo-hero__content {gap:var(--halo-space-5)}
    halo-hero[variant="image-split"] .halo-hero__actions {align-items:stretch}
  }



  /* Campaign hero — a promotion panel. Colours come from content as custom
     properties; without them it is Halo blue with inverse copy. */
  halo-hero[variant="campaign"] {--halo-hero-top-offset:0px;--halo-hero-edge:0px;display:block;padding-block:var(--halo-space-6)}
  halo-hero[variant="campaign"] .halo-hero {padding:0;--halo-hero-campaign-surface:var(--halo-hero-campaign-background,var(--halo-blue-500));--halo-hero-campaign-ink:var(--halo-hero-campaign-foreground,var(--halo-color-text-inverse))}
  halo-hero[variant="campaign"] .halo-hero__panel {min-height:0;overflow:hidden;border-radius:var(--halo-radius-xl);background:radial-gradient(75.91% 82.76% at 80.94% 13.17%,var(--halo-hero-campaign-surface) 0%,var(--halo-hero-campaign-background-end,var(--halo-hero-campaign-surface)) 100%);color:var(--halo-hero-campaign-ink)}
  halo-hero[variant="campaign"] .halo-hero__layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:var(--halo-space-8);align-items:center;padding:var(--halo-space-12) var(--halo-space-12)}
  halo-hero[variant="campaign"] .halo-hero__content {max-width:none;min-width:0;margin:0;text-align:left;color:inherit;display:grid;gap:var(--halo-space-8);justify-items:start}
  halo-hero[variant="campaign"] .halo-hero__eyebrow {margin:0;color:inherit;text-transform:none;font-size:var(--halo-text-h3-size);font-weight:var(--halo-font-weight-semibold);line-height:var(--halo-text-h3-leading);letter-spacing:var(--halo-text-h3-tracking)}
  halo-hero[variant="campaign"] .halo-hero-heading {margin:0;padding-bottom:0;color:inherit;display:grid;font-family:var(--halo-font-sans);font-weight:var(--halo-text-h1-weight);font-size:var(--halo-text-h1-size);line-height:var(--halo-text-h1-leading);letter-spacing:var(--halo-text-h1-tracking)}
  halo-hero[variant="campaign"] .halo-hero__description {margin:0;color:inherit}
  halo-hero[variant="campaign"] .halo-hero__lead {margin:0;color:inherit}
  @media(max-width:47.99rem){halo-hero[variant="campaign"] .halo-hero__break {display:none}}
  halo-hero[variant="campaign"] .halo-hero__actions {justify-content:flex-start}
  halo-hero[variant="campaign"] .halo-hero__actions .halo-button--outline {--halo-button-color:var(--halo-hero-campaign-ink);--halo-button-border:var(--halo-hero-campaign-ink);--halo-button-background-hover:color-mix(in srgb,var(--halo-hero-campaign-ink) 14%,transparent);--halo-button-background-active:color-mix(in srgb,var(--halo-hero-campaign-ink) 24%,transparent)}
  halo-hero[variant="campaign"] .halo-hero__picture {position:static;width:100%;height:auto;display:block}
  halo-hero[variant="campaign"] .halo-hero__picture img {display:block;position:static;width:100%;height:auto;object-fit:contain}
  @media(max-width:64rem){
    halo-hero[variant="campaign"] .halo-hero__layout {padding:var(--halo-space-8);gap:var(--halo-space-6)}
    halo-hero[variant="campaign"] .halo-hero__content {gap:var(--halo-space-6)}
  }
  @media(max-width:40rem){
    halo-hero[variant="campaign"] {padding-block:var(--halo-space-4)}
    halo-hero[variant="campaign"] .halo-hero__layout {grid-template-columns:1fr;padding:var(--halo-space-6)}
    halo-hero[variant="campaign"] .halo-hero__content {gap:var(--halo-space-5)}
    halo-hero[variant="campaign"] .halo-hero__picture {order:-1}
  }



  /* Campaign hero, homepage size (template: 'home'): a taller desktop panel on
     the legacy page rail, a single column on tablet, and larger matched buttons. */
  halo-hero[variant="campaign"] [data-template="home"] .halo-hero__actions {display:flex;gap:var(--halo-space-3);flex-wrap:wrap}
  halo-hero[variant="campaign"] [data-template="home"] .halo-hero__actions > :is(a,button) {min-width:14rem;min-height:3.5rem;font-size:var(--halo-text-body-size);padding-block:var(--halo-space-3)}
  @media(min-width:48.001rem){
    halo-hero[variant="campaign"] [data-template="home"] .halo-container {width:100%;max-width:var(--halo-legacy-container);padding-inline:var(--halo-legacy-gutter)}
  }
  @media(min-width:64.001rem){
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__layout {grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:clamp(34rem,42vw,42rem);padding-block:var(--halo-space-16)}
  }
  @media(max-width:48rem){
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__picture {height:clamp(12rem,53vw,19rem);overflow:hidden}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__picture img {width:100%;height:100%;object-fit:contain;max-width:100%;margin-inline:0;transform:none}
  }
  @media(min-width:40.001rem) and (max-width:64rem){
    halo-hero[variant="campaign"] [data-template="home"] .halo-container {width:100%;padding-inline:var(--halo-space-8)}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__layout {grid-template-columns:minmax(0,1fr);gap:var(--halo-space-8);padding:var(--halo-space-8)}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__picture {order:-1;height:15rem;width:min(100%,32rem);justify-self:center;overflow:visible}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__picture img {width:100%;height:100%;max-width:100%;margin:0;object-fit:contain}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__content {gap:var(--halo-space-6)}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__actions {width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__actions > :is(a,button) {min-width:0;width:100%}
  }
  @media(max-width:40rem){
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__layout {gap:var(--halo-space-8);padding-block:var(--halo-space-8)}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__content {gap:var(--halo-space-6)}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__actions {width:100%}
    halo-hero[variant="campaign"] [data-template="home"] .halo-hero__actions > :is(a,button) {width:100%}
  }



  /* Campaign hero, Deals page header (template: 'deals'): copy on a 1.2fr / 1fr
     split, body-size description and actions in a row. */
  halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__layout {grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:var(--halo-space-8)}
  halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__content {gap:var(--halo-space-5)}
  @media(min-width:48.001rem){
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__layout {min-height:0;padding-block:var(--halo-space-16);align-items:center}
  }
  halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__description {font-size:var(--halo-text-body-size)}
  halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__actions {flex-direction:row;flex-wrap:wrap;gap:var(--halo-space-3)}
  @media(max-width:48rem){
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__layout {grid-template-columns:minmax(0,1fr)}
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__picture {order:0;max-width:26rem;justify-self:center}
  }
  @media(min-width:48rem) and (max-width:1097px){
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__layout {grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);padding:var(--halo-space-10) var(--halo-space-8);gap:var(--halo-space-6);min-height:0}
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__picture {order:0;max-width:none}
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero-heading {font-size:clamp(2.25rem,4.4vw,3rem);line-height:1.08}
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__content {gap:var(--halo-space-4)}
  }
  @media(max-width:40rem){
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__layout {padding:var(--halo-space-6);gap:var(--halo-space-6)}
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__content {gap:var(--halo-space-4)}
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__actions {flex-direction:column;align-items:stretch;width:100%}
    halo-hero[variant="campaign"] [data-template="deals"] .halo-hero__actions .halo-button {width:100%}
  }
  /* Campaign panel lower on a page (template: 'panel'): space above, none below. */
  halo-hero[variant="campaign"]:has([data-template="panel"]) {display:block;padding-block:var(--halo-space-16) 0}

  /* Legacy hero — the ecomlanders-v3 treatment, tokenized.
     A full-bleed still under a vertical gradient, with copy and an
     autoplaying video preview anchored along the bottom. */
  halo-hero .halo-hero--legacy {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(100vh - 2rem);
    overflow: hidden;
    background: var(--halo-color-surface-strong-deep);
    color: var(--halo-color-text-inverse);
  }
  halo-hero .halo-hero__legacy-bg { position: absolute; inset: 0; }
  halo-hero .halo-hero__legacy-bg .halo-hero__picture,
  halo-hero .halo-hero__legacy-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  halo-hero .halo-hero__legacy-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--halo-color-scrim) 0%, transparent 45%, var(--halo-color-scrim) 100%); }

  halo-hero .halo-hero__legacy-bottom {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--halo-space-8);
    width: 100%;
    /* The source caps its bottom bar at 1400px with a flat 6rem gutter and
       sits 3rem clear of the viewport edge. */
    max-width: var(--halo-legacy-container);
    margin-inline: auto;
    padding-inline: var(--halo-legacy-gutter);
    padding-block-end: var(--halo-space-12);
  }
  /* 528px, live's measured width: at 480px "now everywhere®" broke onto a third line. */
  halo-hero .halo-hero__legacy-content { flex: 1; max-width: 33rem; text-align: left; }
  /* The live hero is 64px/700 on desktop and 40px/700 on a phone, where the
     shared hero role is 76px/400. */
  halo-hero .halo-hero__legacy-title {
    margin: 0 0 var(--halo-space-4);
    overflow: hidden;
    color: inherit;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  /* The source staggered the title lines in with an anime.js timeline. The
     reveal is CSS, so it costs no dependency and stops under reduced motion. */
  halo-hero .halo-hero__legacy-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: halo-hero-legacy-rise var(--halo-duration-slow) var(--halo-ease-out) forwards;
    animation-delay: calc(var(--halo-hero-line, 0) * 150ms);
  }
  halo-hero .halo-hero__legacy-line sup { font-size: 0.875rem; font-weight: 400; vertical-align: super; margin-inline-start: 0.125rem; }
  halo-hero .halo-hero__legacy-subtitle {
    max-width: 31.25rem;
    margin: 0 0 var(--halo-space-6);
    color: var(--halo-color-text-inverse-subtle);
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0;
    animation: halo-hero-legacy-fade var(--halo-duration-slow) var(--halo-ease-out) 300ms forwards;
  }
  halo-hero .halo-hero__legacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--halo-space-4);
    opacity: 0;
    animation: halo-hero-legacy-fade var(--halo-duration-slow) var(--halo-ease-out) 450ms forwards;
  }

  halo-hero .halo-hero__legacy-preview {
    position: relative;
    flex-shrink: 0;
    /* 360px in the source; 220px read as visibly smaller. */
    width: 22.5rem;
    aspect-ratio: 16 / 9;
    border-radius: var(--halo-radius-lg);
    overflow: hidden;
    background: var(--halo-color-surface-strong);
    transition: transform var(--halo-duration-base) var(--halo-ease-out);
  }
  halo-hero .halo-hero__legacy-preview:hover { transform: translateY(-0.25rem); }
  halo-hero .halo-hero__legacy-preview:focus-visible { outline: var(--halo-focus-ring-width) solid var(--halo-color-focus); outline-offset: var(--halo-focus-ring-offset); }
  halo-hero .halo-hero__legacy-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* The source link had no accessible name at all: it wrapped a bare video. */
  halo-hero .halo-hero__legacy-preview-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Live centres a 40px white disc with a blue play mark on the preview. */
  halo-hero .halo-hero__legacy-preview-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--halo-color-surface-pure);
    color: var(--halo-color-link);
  }
  halo-hero .halo-hero__legacy-preview-icon svg { width: 1rem; height: 1rem; }

  @keyframes halo-hero-legacy-rise { to { opacity: 1; transform: translateY(0); } }
  @keyframes halo-hero-legacy-fade { to { opacity: 1; } }

  @media (prefers-reduced-motion: reduce) {
    halo-hero :is(.halo-hero__legacy-line, .halo-hero__legacy-subtitle, .halo-hero__legacy-actions) { opacity: 1; transform: none; animation: none; }
    halo-hero .halo-hero__legacy-preview { transition: none; }
    halo-hero .halo-hero__legacy-preview:hover { transform: none; }
  }

  @media (max-width: 48rem) {
    halo-hero .halo-hero__legacy-bottom { flex-direction: column; align-items: stretch; gap: var(--halo-space-4); padding-inline: var(--halo-legacy-gutter-mobile); padding-block-end: var(--halo-space-6); }
    halo-hero .halo-hero__legacy-content { max-width: 100%; }
    halo-hero .halo-hero__legacy-actions { width: 100%; }
    halo-hero .halo-hero__legacy-actions .halo-button { width: 100%; }
    /* The live hero stacks the preview under the copy at the full content
       width -- 373px of a 436px viewport -- not as a small thumbnail. */
    halo-hero .halo-hero__legacy-preview { width: 100%; max-width: none; border-radius: var(--halo-radius-md); }
    /* The mobile hero type is smaller and heavier than the desktop roles:
       40px/700 against 48px/400, with a 16px subtitle. */
    halo-hero .halo-hero__legacy-title { font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
    halo-hero .halo-hero__legacy-subtitle { font-size: 1rem; line-height: 1.5; }
  }


  /* Legacy hero content options, for the interior pages live still runs on
     this template: Main Shop, Financing and GPS Accuracy. Measured at 1440px:
     a box 5vw in from each edge (85rem cap), 20px corners, 432-500px tall,
     64px padding, ~59px/700 titles. Home sets none of these. */
  halo-hero .halo-hero--legacy[data-layout="contained"] {
    width: min(100% - 10vw, 85rem);
    min-height: 27rem;
    margin: var(--halo-space-8) auto 0;
    padding: 0;
    align-items: center;
    border-radius: var(--halo-legacy-radius-card);
  }
  halo-hero [data-layout="contained"] .halo-hero__legacy-bottom { max-width: none; align-items: center; padding: var(--halo-space-16); }
  halo-hero [data-layout="contained"] .halo-hero__legacy-content { max-width: 44rem; }
  halo-hero [data-layout="contained"] .halo-hero__legacy-title { font-size: clamp(1.875rem, 4.1vw, 3.75rem); line-height: 1; }
  halo-hero [data-layout="contained"] .halo-hero__legacy-subtitle { margin-block-end: var(--halo-space-10); }
  halo-hero .halo-hero__legacy-actions { align-items: center; }
  halo-hero .halo-hero__legacy-logo { display: block; width: auto; height: 2.8125rem; }

  /* Light tone: dark copy on Halo yellow, with no scrim over the image. */
  halo-hero .halo-hero--legacy[data-tone="light"] { background: var(--halo-color-action-primary); color: var(--halo-color-heading); }
  halo-hero [data-tone="light"] .halo-hero__legacy-gradient { display: none; }
  halo-hero [data-tone="light"] .halo-hero__legacy-subtitle { color: var(--halo-color-heading); }

  @media (max-width: 48rem) {
    /* Live's phone box is ~530px with the copy at the top, over the sky of a
       portrait image, and a logo or button pinned to the bottom. */
    halo-hero .halo-hero--legacy[data-layout="contained"] { width: calc(100% - 6vw); min-height: 33rem; align-items: stretch; }
    halo-hero [data-layout="contained"] .halo-hero__legacy-bottom { padding: var(--halo-space-8); }
    halo-hero [data-layout="contained"] .halo-hero__legacy-content { display: flex; flex-direction: column; }
    halo-hero [data-layout="contained"] .halo-hero__legacy-actions { margin-block-start: auto; }
    halo-hero [data-layout="contained"] .halo-hero__legacy-actions .halo-button { width: auto; }
  }

