/* Audience morph spike (lab only). Loaded after styles.css.

   Theme values arrive as --t-* custom properties generated by morph-boot.js
   from themes/<id>.js and scoped to html[data-audience="<id>"].
   Every override below is itself scoped to html[data-audience], so the default
   Hive theme is literally the untouched styles.css (identical by construction).
   Only the most visible of styles.css's ~350 literals are routed through theme
   tokens. */

/* Registered so theme-to-theme changes interpolate in the no-View-Transition
   fallback (the VT wipe covers the swap everywhere else). */
@property --t-bg { syntax: '<color>'; inherits: true; initial-value: #070c12; }
@property --t-surface { syntax: '<color>'; inherits: true; initial-value: #0b121a; }
@property --t-raised { syntax: '<color>'; inherits: true; initial-value: #111c28; }
@property --t-border { syntax: '<color>'; inherits: true; initial-value: #22303e; }
@property --t-ink { syntax: '<color>'; inherits: true; initial-value: #eff4f9; }
@property --t-muted { syntax: '<color>'; inherits: true; initial-value: #9caab8; }
@property --t-accent { syntax: '<color>'; inherits: true; initial-value: #60c8ff; }
@property --t-accent-strong { syntax: '<color>'; inherits: true; initial-value: #24a9f5; }
@property --t-accent-soft { syntax: '<color>'; inherits: true; initial-value: #163d58; }
@property --t-emphasis { syntax: '<color>'; inherits: true; initial-value: #8bd7fe; }
@property --t-cta { syntax: '<color>'; inherits: true; initial-value: #1475ae; }
@property --t-cta-ink { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --t-cta-glow { syntax: '<color>'; inherits: true; initial-value: #0388d312; }
@property --t-hero-glow1 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --t-hero-glow2 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --t-texture-opacity { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --t-hero-video-opacity { syntax: '<number>'; inherits: true; initial-value: 1; }
/* Footage bloom radius for the particle-to-video match cut (morph.js). */
@property --m-bloom { syntax: '<length>'; inherits: true; initial-value: 0px; }

/* ---------- Theme overrides (never active for the default Hive theme) ---------- */
html[data-audience] {
  .ca-design {
    --ca-color-canvas: var(--t-bg);
    --ca-color-text: var(--t-ink);
    --ca-accent: var(--t-accent);
    --ca-focus-ring: 2px solid var(--t-accent);
    --blue: var(--t-accent);
    --muted: var(--t-muted);
    --border: var(--t-border);
  }
  ::selection { background: color-mix(in oklab, var(--t-accent) 40%, transparent); }

  /* Texture: one seamless single-colour SVG tile per theme, masked so it takes --t-accent. */
  :is(.hero, .section, .promise-strip) { position: relative; }
  /* "Felt more than seen": capped opacity, and a second mask layer keeps the
     tile away from section edges and (in the hero) the header and copy column. */
  :is(.hero, .section, .promise-strip)::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-color: var(--t-accent);
    -webkit-mask: var(--t-texture) repeat, linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    -webkit-mask-composite: source-in;
    mask: var(--t-texture) repeat, linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask-composite: intersect;
    opacity: min(var(--t-texture-opacity), .045);
  }
  .hero::before {
    -webkit-mask: var(--t-texture) repeat, radial-gradient(ellipse 48% 55% at 74% 56%, #000 20%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask: var(--t-texture) repeat, radial-gradient(ellipse 48% 55% at 74% 56%, #000 20%, transparent 100%);
    mask-composite: intersect;
  }
  :is(.section, .promise-strip) > .container { position: relative; }

  /* Hero: background, art treatment, glows. */
  .hero { background: var(--t-bg); }
  .hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen;
    background: radial-gradient(ellipse 30% 36% at 74% 50%, color-mix(in oklab, var(--t-hero-glow1) 35%, transparent), transparent 70%),
                radial-gradient(ellipse 38% 40% at 12% 88%, color-mix(in oklab, var(--t-hero-glow2) 40%, transparent), transparent 70%);
  }
  .hero-art::after { background: linear-gradient(180deg, var(--t-bg) 0%, transparent 12%, transparent 82%, var(--t-bg) 100%), linear-gradient(90deg, var(--t-bg) 0%, color-mix(in srgb, var(--t-bg) var(--t-hero-scrim, 60%), transparent) 26%, transparent var(--t-hero-scrim-end, 55%)); }
  #hero-video { filter: var(--t-hero-filter); opacity: var(--t-hero-video-opacity); }
  .hero-orbit, .hero-orbit::before { border-color: color-mix(in oklab, var(--t-accent) 8%, transparent); }
  .hero-eyebrow { color: color-mix(in oklab, var(--t-ink) 70%, var(--t-muted)); }
  .hero-description { color: var(--t-muted); }
  .hero-bottom, .navigation { border-color: color-mix(in oklab, var(--t-ink) 8%, transparent); }
  .desktop-nav a:hover { color: var(--t-accent); }

  /* Type language. */
  h1, h2 { font-weight: var(--t-heading-weight); letter-spacing: var(--t-heading-tracking); }
  :is(h1, h2) em { color: var(--t-emphasis); font-style: var(--t-em-style); font-family: var(--t-em-family); font-weight: var(--t-em-weight); }
  .eyebrow { text-transform: var(--t-eyebrow-transform); letter-spacing: var(--t-eyebrow-tracking); }
  .status-dot { background: var(--t-accent); box-shadow: 0 0 12px color-mix(in oklab, var(--t-accent) 40%, transparent); }

  /* Buttons and chips: CTA colour pair + button radius. */
  .button { border-radius: var(--t-button-radius); }
  .button:not(.button-primary) { background: var(--t-raised); border-color: var(--t-border); color: var(--t-ink); }
  .button:not(.button-primary):hover { border-color: var(--t-accent); }
  .button-primary, .contact-panel .button-primary {
    background: var(--t-cta); color: var(--t-cta-ink);
    border-color: color-mix(in oklab, var(--t-cta), white 22%);
    box-shadow: inset 0 1px 0 #ffffff26, 0 6px 26px color-mix(in oklab, var(--t-cta-glow) 30%, transparent);
  }
  :is(.button-primary, .contact-panel .button-primary):hover { background: color-mix(in oklab, var(--t-cta), white 10%); border-color: color-mix(in oklab, var(--t-cta), white 35%); box-shadow: 0 8px 30px color-mix(in oklab, var(--t-cta-glow) 45%, transparent); }

  /* Bands and sections. */
  .promise-strip { background: var(--t-surface); border-color: var(--t-border); }
  .promise-inner p, .promise-inner p em, .promise-inner > span { color: var(--t-ink); }
  .promise-inner .icon { color: var(--t-accent); }
  .plans-section, .connected-section { background: var(--t-surface); border-color: var(--t-border); }
  .contact-section { background: radial-gradient(ellipse at 12% 90%, color-mix(in oklab, var(--t-accent) 14%, transparent), transparent 65%), var(--t-surface); border-color: var(--t-border); }
  .site-footer { background: color-mix(in oklab, var(--t-bg), black 25%); }
  .steps li { border-color: var(--t-border); }
  .steps li::before { background: var(--t-accent); box-shadow: 0 0 10px color-mix(in oklab, var(--t-accent) 30%, transparent); }
  .step-number { color: var(--t-emphasis); }
  .direct-contact { color: var(--t-accent) !important; }
  .hero-note { color: var(--t-muted); }
  .promise-inner p a { text-decoration-color: color-mix(in oklab, var(--t-accent) 45%, transparent); }
  .example-panel { border: var(--t-border-width) solid var(--t-border); border-radius: var(--t-radius-lg); background: var(--t-raised); }
  .example-panel small { color: var(--t-emphasis); }
  .example-panel p { color: var(--t-ink); }
  .founding-banner { color: var(--t-ink); border-color: color-mix(in oklab, var(--t-accent) 45%, var(--t-border)); border-radius: var(--t-radius); background: color-mix(in oklab, var(--t-accent) 12%, var(--t-raised)); }
  .offer-note { color: var(--t-ink); border-color: var(--t-accent); }
  .workflow-explainer dt { color: var(--t-ink); }
  .sample-audit summary, .sample-audit-body li { color: var(--t-ink); }
  .sample-audit-body strong { color: var(--t-emphasis); }
  .faq-aside > .text-link { color: var(--t-muted); }
  .mobile-nav a.mobile-nav-cta { background: var(--t-cta); border-color: var(--t-cta); color: var(--t-cta-ink); }
  .mobile-nav a.mobile-nav-cta span { color: inherit; }

  /* Cards: shape language (radius, border weight) and a single theme tone. */
  .outcome-card {
    --outcome: var(--t-accent);
    border: var(--t-border-width) solid var(--t-border);
    border-radius: var(--t-radius-lg);
    background: linear-gradient(145deg, color-mix(in oklab, var(--t-accent) 10%, var(--t-raised)), var(--t-surface));
  }
  .outcome-card:nth-child(2) { --outcome: var(--t-emphasis); background: linear-gradient(145deg, color-mix(in oklab, var(--t-accent) 18%, var(--t-raised)), var(--t-surface)); border-color: color-mix(in oklab, var(--t-accent) 35%, var(--t-border)); }
  .outcome-card:nth-child(3) { --outcome: var(--t-accent-soft); }
  .pricing-card {
    border: var(--t-border-width) solid var(--t-border);
    border-radius: var(--t-radius-lg);
    background: linear-gradient(150deg, color-mix(in oklab, var(--t-accent) 6%, transparent), transparent 65%), var(--t-raised);
  }
  .pricing-card.featured { border-color: var(--t-accent); border-top-left-radius: 0; border-top-right-radius: 0; }
  .pricing-card.plan-highlight { border-color: var(--t-accent); box-shadow: 0 0 30px color-mix(in oklab, var(--t-accent) 20%, transparent); }
  .pricing-card :is(.plan-heading .icon, .plan-heading > span) { color: var(--t-accent); }
  .pricing-card .plan-features li::before { color: var(--t-accent); }
  .pricing-card .plan-features { border-color: var(--t-border); }
  .pricing-card .button-outline { background: var(--t-surface); border-color: var(--t-border); color: var(--t-ink); }
  .recommended { background: var(--t-cta); border-color: var(--t-cta); color: var(--t-cta-ink); border-radius: var(--t-radius-lg) var(--t-radius-lg) 0 0; }
  .plan-description, .price-caption, .price .period { color: var(--t-muted); }

  /* Enquiry panel. */
  .contact-panel {
    --ca-focus-ring: 2px solid var(--t-accent);
    border: var(--t-border-width) solid color-mix(in oklab, var(--t-accent) 45%, var(--t-border));
    border-radius: var(--t-radius-lg);
    background: radial-gradient(ellipse at 100% 0%, color-mix(in oklab, var(--t-accent) 20%, transparent), transparent 65%), linear-gradient(145deg, var(--t-raised), var(--t-surface));
  }
  .contact-panel > p, .form-note { color: var(--t-muted); }
  #enquiry-form label { color: var(--t-ink); }
  #enquiry-form :is(input, select, textarea) { background: var(--t-bg); border-color: var(--t-border); color: var(--t-ink); border-radius: var(--t-radius); }
  #enquiry-form :is(input, select, textarea):hover { border-color: color-mix(in oklab, var(--t-accent) 60%, var(--t-border)); }
  #enquiry-form :is(input, select, textarea):focus-visible { border-color: var(--t-accent); }
  #enquiry-form :is(input, textarea)::placeholder { color: var(--t-muted); }
  .form-result { background: var(--t-raised); border-color: var(--t-border); }
}
html[data-audience] .morph-art-video { object-position: var(--t-hero-position); transform: scale(var(--t-hero-scale)); transform-origin: var(--t-hero-position); }
/* Soft edges for themed footage: brighter clips (physio's mist, the café cup)
   otherwise show the art box as a hard rectangle. A radial falloff plus a
   top/bottom fade, intersected; a theme can replace it with art.heroMask. */
html[data-audience] .hero-art {
  -webkit-mask-image: var(--t-hero-mask, radial-gradient(ellipse 58% 64% at 62% 52%, #000 42%, transparent 100%), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent));
  mask-image: var(--t-hero-mask, radial-gradient(ellipse 58% 64% at 62% 52%, #000 42%, transparent 100%), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@media (max-width: 700px) {
  html[data-audience] .hero-art::after { background: linear-gradient(180deg, var(--t-bg) 0%, color-mix(in srgb, var(--t-bg) 44%, transparent) 25%, transparent 65%, var(--t-bg) 100%); }
  html[data-audience] .hero-art {
    -webkit-mask-image: var(--t-hero-mask, radial-gradient(ellipse 62% 66% at 58% 56%, #000 45%, transparent 100%), linear-gradient(180deg, transparent, #000 27%, #000 86%, transparent));
    mask-image: var(--t-hero-mask, radial-gradient(ellipse 62% 66% at 58% 56%, #000 45%, transparent 100%), linear-gradient(180deg, transparent, #000 27%, #000 86%, transparent));
  }
}
/* Audience headlines run longer than "Less admin.", so they use a slightly
   smaller display size; the italic line is nowrap in styles.css. */
html[data-audience] .hero h1 { font-size: clamp(52px, 5.1vw, 74px); }
@media (max-width: 700px) {
  html[data-audience] .hero h1 { font-size: clamp(34px, 10.4vw, 56px); }
}

/* ---------- Audience wheel ---------- */
/* The wheel floats over the art, then docks above it before the theme reveal.
   fixed across themes; only its palette follows the rest of the site. */
.morph-picker {
  --dial-size: 310px;
  --stop-width: 126px;
  --dial-ease: cubic-bezier(.4, 0, .2, 1);
  position: absolute; right: 0; top: 110px; margin: 0;
  width: 440px; max-width: 100%; padding-block: 44px 26px;
  color: var(--t-ink); text-align: center;
}
.morph-picker[hidden] { display: none; }
.morph-dock {
  position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--t-accent); border-radius: 999px;
  background: var(--t-surface); color: var(--t-ink); font-size: 13px; cursor: pointer;
  box-shadow: 0 4px 24px #00000026;
}
.morph-dock[hidden] { display: none; }
.morph-dock span { color: var(--t-accent); font-size: 21px; line-height: 1; }
.morph-dock:hover { background: var(--t-raised); }
.morph-picker[data-state="collapsed"] .morph-dial { visibility: hidden; opacity: 0; }
/* Opening starts invisible until its animation supplies the first frame. */
.morph-picker[data-state="expanding"] .morph-dial { opacity: 0; }
.morph-picker[data-state="collapsing"] .morph-chips,
.morph-picker[data-state="collapsing"] .morph-chip { transition-duration: var(--dial-confirm-duration, .28s); }
.morph-dial {
  position: relative; width: var(--dial-size); height: var(--dial-size);
  margin: 0 auto; display: grid; place-items: center;
  isolation: isolate;
  will-change: transform, opacity;
}
.morph-dial::before {
  content: ''; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--t-accent) 12%, transparent);
  background: radial-gradient(circle, color-mix(in oklab, var(--t-bg) 92%, transparent) 32%, color-mix(in oklab, var(--t-bg) 65%, transparent) 65%, transparent 72%);
  box-shadow: 0 0 65px color-mix(in oklab, var(--t-accent) 7%, transparent);
  pointer-events: none; z-index: -1;
}
.morph-pointer {
  position: absolute; top: -43px; left: calc(50% - 4px);
  width: 8px; height: 8px; rotate: 45deg;
  background: var(--t-accent); box-shadow: 0 0 14px color-mix(in oklab, var(--t-accent) 65%, transparent);
}
.morph-chips {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--t-accent) 30%, var(--t-border));
  rotate: var(--dial-rotation, 0deg);
  transition: rotate var(--dial-turn-duration, .8s) var(--dial-ease);
}
.morph-stop {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  translate: calc(var(--stop-x) * var(--dial-size) / 2) calc(var(--stop-y) * var(--dial-size) / 2);
}
.morph-chip {
  pointer-events: auto; width: var(--stop-width); min-height: 50px; padding: 9px 12px;
  border: 1px solid color-mix(in oklab, var(--t-accent) 20%, var(--t-border));
  border-radius: 14px; background: var(--t-surface); color: var(--t-ink);
  font-size: 12px; line-height: 1.35; font-weight: 500; cursor: pointer;
  rotate: calc(-1 * var(--dial-rotation, 0deg));
  transition: rotate var(--dial-turn-duration, .8s) var(--dial-ease), background-color .25s, border-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.morph-chip:hover { border-color: var(--t-accent); background: var(--t-raised); }
.morph-chip[aria-pressed="true"] {
  border-color: var(--t-accent); color: var(--t-ink);
  background: color-mix(in oklab, var(--t-accent) 20%, var(--t-surface));
  box-shadow: 0 0 24px color-mix(in oklab, var(--t-accent) 15%, transparent), inset 0 1px 0 #ffffff16;
}
.morph-dial-face {
  position: relative; width: 188px; height: 188px; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  background: radial-gradient(circle at 35% 20%, var(--t-raised), var(--t-bg));
  border: 1px solid color-mix(in oklab, var(--t-accent) 30%, var(--t-border));
  box-shadow: inset 0 1px 0 #ffffff12, 0 12px 35px #00000026;
}
.morph-picker-label { max-width: 150px; font-family: var(--display); font-size: 26px; line-height: 1.15; font-style: italic; font-weight: 300; color: var(--t-emphasis); text-wrap: balance; }
.morph-dial-controls { display: flex; gap: 10px; }
.morph-dial-controls button {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--t-border); border-radius: 50%; background: var(--t-surface);
  color: var(--t-ink); font-size: 20px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.morph-dial-controls button:hover { border-color: var(--t-accent); background: var(--t-raised); }
.morph-picker button:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 4px; }
@media (min-width: 1200px) {
  .hero-copy { max-width: calc(100% - 455px); }
}
@media (max-width: 1199px) {
  .morph-picker { position: relative; top: auto; right: auto; margin: 60px auto 0; }
  .hero-inner { padding-bottom: 80px; }
}
@media (max-width: 700px) {
  .morph-picker { --dial-size: 240px; --stop-width: 98px; width: 344px; margin-top: 52px; }
  /* Keep the dial's space when docked: the video is revealed without a jump. */
  .morph-dial-face { width: 146px; height: 146px; gap: 3px; }
  .morph-picker-label { max-width: 112px; font-size: 22px; }
  .morph-chip { min-height: 46px; padding: 7px; font-size: 11px; border-radius: 12px; }
  .morph-dial::before { inset: -15px; }
  .morph-pointer { top: -38px; }
}
@media (max-width: 360px) {
  .morph-picker { --dial-size: 206px; --stop-width: 88px; }
  .morph-dial-face { width: 132px; height: 132px; }
  .morph-chip { font-size: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .morph-picker { animation: morph-dial-enter 1.1s .25s both; }
  @keyframes morph-dial-enter { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .morph-picker, .morph-picker * { animation: none !important; transition: none !important; }
}
/* Keep the wheel live while the surrounding page changes. */
html.morph-vt .morph-picker { view-transition-name: morph-picker; }
::view-transition-old(morph-picker) { display: none; }
::view-transition-new(morph-picker), ::view-transition-group(morph-picker) { animation: none; }

/* ---------- Choreography helpers ---------- */
/* Only the hero canvas, headline and lede render live during the wipe (see
   morph.js); everything else, CTA and chips included, is revealed by the wipe
   itself, so no new style lands before the wipe front reaches it. */
html.morph-vt .hero-particles { view-transition-name: morph-particles; }
/* WebKit (morph-wk): the headline and lede stay in the page and morph inside
   the wipe (their timing already follows the wipe front), so the copy never
   depends on WebKit painting a live layer. */
html.morph-vt:not(.morph-wk) .hero h1 { view-transition-name: morph-h1; }
html.morph-vt:not(.morph-wk) .hero-description { view-transition-name: morph-lede; }
.morph-ring { view-transition-name: morph-ring; }
::view-transition-old(morph-particles) { display: none; }
/* Safety net (WebKit): the old headline/lede snapshots fade out instead of
   vanishing, so the copy is never blank if a live layer fails to paint. The
   live layers start on the same old words, so the handover is invisible. */
::view-transition-old(morph-h1),
::view-transition-old(morph-lede) { animation: m-vt-out 180ms ease-out both; }
@keyframes m-vt-out { to { opacity: 0; } }
::view-transition-new(morph-particles),
::view-transition-new(morph-h1),
::view-transition-new(morph-lede),
::view-transition-new(morph-ring),
::view-transition-group(morph-particles),
::view-transition-group(morph-h1),
::view-transition-group(morph-lede),
::view-transition-group(morph-ring) { animation: none; }
/* Luminous edge riding the wipe, in the incoming accent. It starts as the
   pressed chip's own outline and grows into the wipe circle (morph.js). */
.morph-ring {
  position: fixed; z-index: 60; left: 0; top: 0; width: 0; height: 0; pointer-events: none; border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--t-accent), white 35%);
  box-shadow: 0 0 18px 2px color-mix(in oklab, var(--t-accent) 70%, transparent),
              inset 0 0 26px 2px color-mix(in oklab, var(--t-accent) 45%, transparent);
  box-sizing: border-box;
}
/* Measuring every theme's hero block (morph.js) must not start transitions. */
html.morph-measure *, html.morph-measure *::before, html.morph-measure *::after { transition: none !important; }
/* The root wipe is driven from JS (clip-path circle); switch off the default fade. */
html.morph-vt:not(.morph-rm)::view-transition-old(root),
html.morph-vt:not(.morph-rm)::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Hold the first mask before JS starts the wipe, including snapshot setup. */
html.morph-vt:not(.morph-rm)::view-transition-new(root) { clip-path: var(--m-wipe-start, none); }
/* Reduced motion: keep only a short cross-fade. */
html.morph-rm::view-transition-old(root),
html.morph-rm::view-transition-new(root) { animation-duration: 180ms; }

/* No View Transitions: registered tokens interpolate between themes instead. */
html.morph-tween {
  transition-property: --t-bg, --t-surface, --t-raised, --t-border, --t-ink, --t-muted, --t-accent, --t-accent-strong, --t-accent-soft, --t-emphasis, --t-cta, --t-cta-ink, --t-cta-glow, --t-hero-glow1, --t-hero-glow2, --t-texture-opacity, --t-hero-video-opacity;
  transition-duration: var(--m-tween, .7s);
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

/* Masked line rise for headings. Padding keeps descenders and italic overhang
   inside the mask; the negative margin cancels it in layout. */
.m-stack { display: block; position: relative; }
.m-stack > span { display: block; }
.m-stack > .m-old { position: absolute; inset: 0 0 auto; }
.m-line { display: block; overflow: clip; overflow-clip-margin: .04em; padding-block: .02em .1em; margin-block: -.02em -.1em; }
.m-line > span { display: inline-block; }
.m-word { display: inline-block; }
/* Word morph (headings, eyebrows): the new sentence is in flow; the outgoing
   one sits on top, absolutely positioned, in its own frozen typography. */
.m-wm { display: block; position: relative; }
.m-wm-inline { display: inline-block; position: relative; }
.m-wm-old { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
.m-w { display: inline-block; will-change: transform, opacity; }
.m-wm-old .m-w.m-kept { visibility: hidden; }
/* Crossfade stack for short labels (CTA) and body copy. */
.m-xf { display: inline-grid; justify-items: start; white-space: nowrap; }
.m-xf > span { grid-area: 1 / 1; }
.m-xb { display: block; position: relative; }
.m-xb > .m-old { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
/* Hero art: crystal video plus two theme slots (A/B), stacked and cross-faded.
   They share the crystal's .hero-art sizing, blend mode and scrim (::after). */
.hero-art video { transition: opacity .65s ease; }
.morph-art-video { position: absolute; inset: 0; opacity: 0; }
.morph-art-video.is-active { opacity: 1; }
html[data-audience] .morph-art-video.is-active { filter: var(--t-hero-filter); opacity: var(--t-hero-video-opacity); }
#hero-video.is-hidden { opacity: 0 !important; }
/* While particles hold the motif, the footage steps back to 30%; when they
   release, it blooms from the subject's point outwards (the match cut), as
   part of the same event. --m-bloom and --m-subject-x/y come from morph.js. */
html.morph-bloom .hero-art video {
  -webkit-mask-image: radial-gradient(circle at var(--m-subject-x, 70%) var(--m-subject-y, 50%), #000 calc(var(--m-bloom) * .5), rgb(0 0 0 / .3) var(--m-bloom));
  mask-image: radial-gradient(circle at var(--m-subject-x, 70%) var(--m-subject-y, 50%), #000 calc(var(--m-bloom) * .5), rgb(0 0 0 / .3) var(--m-bloom));
}
