/* =============================================================================
   Hero  ·  Trupanion AU theme  ·  v0.1.0
   ============================================================================ */

.tru-hero {
  --hero-blue: var(--tru-blue, #3A5DAE);
  --hero-deep: var(--tru-hero-blue, #28396F);
  --hero-ink: var(--tru-web-copy, #222725);
  --hero-white: var(--tru-white, #FFFFFF);
  --hero-tint: var(--tru-blue-tint-90, #EBEFF7);
  --hero-canary: var(--tru-canary-yellow, #FBD872);
  --hero-canary-light: var(--tru-canary-yellow-tint-50, #FFE3AC);
  --hero-catnip: var(--tru-catnip-green, #A1D884);
  --hero-font-heading: var(--tru-font-heading, 'Mont', 'Montserrat', 'Helvetica Neue', Arial, sans-serif);
  --hero-font-body: var(--tru-font-body, 'Mulish', 'Helvetica Neue', Arial, sans-serif);
  --hero-gutter: var(--tru-gutter, clamp(20px, 5vw, 40px));
  --hero-radius: var(--tru-radius-card, 16px);

  --hero-surface: var(--hero-deep);
  --hero-text: var(--hero-white);
  --hero-accent: var(--hero-canary);
  --hero-max: var(--tru-width-standard, 1200px);
  --hero-copy-max: 40rem;
  --hero-min: 60vh;
  --hero-pad-top: clamp(56px, 9vw, 112px);
  --hero-pad-bottom: clamp(56px, 9vw, 112px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: var(--hero-font-body);
  color: var(--hero-text);
  background: var(--hero-surface);
}
.tru-hero *, .tru-hero *::before, .tru-hero *::after { box-sizing: border-box; }

.tru-hero[data-bg="light"] { --hero-surface: var(--hero-white); }
.tru-hero[data-bg="muted"] { --hero-surface: var(--hero-tint); }
.tru-hero[data-bg="catnip"] { --hero-surface: var(--tru-catnip-green, #A1D884); }
.tru-hero[data-bg="brand"] { --hero-surface: var(--hero-blue); }
.tru-hero[data-bg="gradient"] { background-image: linear-gradient(135deg, var(--hero-deep) 0%, var(--hero-blue) 100%); }
.tru-hero[data-scheme="light"] { --hero-text: var(--hero-ink); --hero-accent: var(--hero-blue); }
.tru-hero[data-bg="brand"][data-scheme="dark"] { --hero-accent: var(--hero-canary-light); }

.tru-hero[data-width="wide"] { --hero-max: var(--tru-width-wide, 1440px); }
.tru-hero[data-copy-width="narrow"] { --hero-copy-max: 32rem; }
.tru-hero[data-copy-width="wide"]   { --hero-copy-max: 48rem; }

.tru-hero[data-height="auto"]   { --hero-min: 0; }
.tru-hero[data-height="medium"] { --hero-min: 60vh; }
.tru-hero[data-height="tall"]   { --hero-min: 78vh; }
.tru-hero[data-height="full"]   { --hero-min: 100svh; }

.tru-hero[data-space-top="small"]  { --hero-pad-top: clamp(32px, 5vw, 48px); }
.tru-hero[data-space-top="medium"] { --hero-pad-top: clamp(44px, 7vw, 80px); }
.tru-hero[data-space-top="xlarge"] { --hero-pad-top: clamp(72px, 12vw, 160px); }
.tru-hero[data-space-bottom="small"]  { --hero-pad-bottom: clamp(32px, 5vw, 48px); }
.tru-hero[data-space-bottom="medium"] { --hero-pad-bottom: clamp(44px, 7vw, 80px); }
.tru-hero[data-space-bottom="xlarge"] { --hero-pad-bottom: clamp(72px, 12vw, 160px); }

/* --- Inner ---------------------------------------------------------------- */
.tru-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-inline-size: var(--hero-max);
  min-block-size: var(--hero-min);
  margin-inline: auto;
  padding-block: var(--hero-pad-top) var(--hero-pad-bottom);
  padding-inline: var(--hero-gutter);
}
.tru-hero__copy { max-inline-size: var(--hero-copy-max); }
.tru-hero[data-align="center"] .tru-hero__copy { margin-inline: auto; text-align: center; }

.tru-hero__eyebrow {
  margin: 0 0 12px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hero-accent);
}
.tru-hero__heading {
  margin: 0 0 0.4em;
  font-family: var(--hero-font-heading); font-weight: 800; letter-spacing: -0.015em;
  font-size: var(--tru-fs-h1, clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem)); line-height: 1.06;
  overflow-wrap: anywhere; text-wrap: balance;
}
.tru-hero__sub { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; max-inline-size: 36rem; }
.tru-hero[data-align="center"] .tru-hero__sub { margin-inline: auto; }
.tru-hero__sub p { margin: 0 0 0.6em; }
.tru-hero__sub a { color: inherit; }

.tru-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }
.tru-hero[data-align="center"] .tru-hero__actions { justify-content: center; }
.tru-hero__footnote { margin: 12px 0 0; font-size: 0.875rem; opacity: 0.85; }

.tru-hero__proof { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.tru-hero[data-align="center"] .tru-hero__proof { justify-content: center; }
.tru-hero__proof-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem; }
.tru-hero__proof-item svg { flex: 0 0 auto; color: var(--hero-catnip); }
.tru-hero[data-tick-shape="circle"] .tru-hero__proof-item svg { border: 2px solid currentColor; border-radius: 50%; padding: 3px; inline-size: 24px; block-size: 24px; }
.tru-hero[data-scheme="light"] .tru-hero__proof-item svg { color: var(--tru-catnip-green-plus, #74AA50); }

/* --- Media: background ---------------------------------------------------- */
.tru-hero__media { position: relative; }
.tru-hero[data-position="background"] .tru-hero__media { position: absolute; inset: 0; z-index: 0; }
.tru-hero[data-position="background"] .tru-hero__image,
.tru-hero[data-position="background"] .tru-hero__video {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--hero-focal, center);
}
.tru-hero[data-focal="top"]    { --hero-focal: center top; }
.tru-hero[data-focal="bottom"] { --hero-focal: center bottom; }
.tru-hero[data-focal="left"]   { --hero-focal: left center; }
.tru-hero[data-focal="right"]  { --hero-focal: right center; }
.tru-hero[data-fit="contain"] .tru-hero__image, .tru-hero[data-fit="contain"] .tru-hero__video { object-fit: contain; }
.tru-hero[data-position="background"][data-fit="contain"] .tru-hero__image { padding: clamp(16px, 4vw, 48px); }
@media (min-width: 64em) {
  /* A contained cut out shares the width with left aligned copy. */
  .tru-hero[data-position="background"][data-fit="contain"][data-align="start"] .tru-hero__image { inset-inline-start: 48%; inline-size: 52%; }
}

/* The video sits over the poster image and is transparent until it plays. */
.tru-hero__video { opacity: 0; transition: opacity 400ms ease; }
.tru-hero__video.is-playing { opacity: 1; }

/* Wash. The tint colour is an RGB triplet so strength is just the alpha. */
.tru-hero { --hero-tint: 17, 28, 52; }
.tru-hero[data-overlay-tint="blue"]   { --hero-tint: 44, 86, 151; }
.tru-hero[data-overlay-tint="purple"] { --hero-tint: 33, 23, 71; }
.tru-hero[data-overlay-tint="black"]  { --hero-tint: 0, 0, 0; }
.tru-hero__wash { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tru-hero[data-overlay="light"]  .tru-hero__wash { background: rgba(var(--hero-tint), 0.25); }
.tru-hero[data-overlay="medium"] .tru-hero__wash { background: rgba(var(--hero-tint), 0.45); }
.tru-hero[data-overlay="strong"] .tru-hero__wash { background: rgba(var(--hero-tint), 0.65); }
.tru-hero[data-overlay="gradient"] .tru-hero__wash { background: linear-gradient(90deg, rgba(var(--hero-tint), 0.78) 0%, rgba(var(--hero-tint), 0.45) 55%, rgba(var(--hero-tint), 0.15) 100%); }
.tru-hero[data-overlay="gradient"][data-align="center"] .tru-hero__wash { background: rgba(var(--hero-tint), 0.45); }
.tru-hero[data-overlay="gradient_up"] .tru-hero__wash { background: linear-gradient(0deg, rgba(var(--hero-tint), 0.8) 0%, rgba(var(--hero-tint), 0.35) 60%, rgba(var(--hero-tint), 0.1) 100%); }
.tru-hero[data-overlay="gradient_down"] .tru-hero__wash { background: linear-gradient(180deg, rgba(var(--hero-tint), 0.8) 0%, rgba(var(--hero-tint), 0.35) 60%, rgba(var(--hero-tint), 0.1) 100%); }

/* Bottom fade into the hero surface or into the next (white) section. */
.tru-hero__fade { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 28%; z-index: 1; pointer-events: none; }
.tru-hero[data-fade="surface"] .tru-hero__fade { background: linear-gradient(180deg, transparent, var(--hero-surface)); }
.tru-hero[data-fade="next"] .tru-hero__fade { background: linear-gradient(180deg, transparent, var(--hero-white)); }

/* Parallax. CSS scroll driven where supported (no main thread work); the
   media gets vertical slack so the movement never exposes an edge. */
.tru-hero[data-parallax="true"] .tru-hero__image,
.tru-hero[data-parallax="true"] .tru-hero__video { inset-block: -14% -14%; block-size: 128%; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tru-hero[data-parallax="true"] .tru-hero__image,
    .tru-hero[data-parallax="true"] .tru-hero__video {
      animation: tru-hero-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes tru-hero-parallax { from { transform: translateY(-9%); } to { transform: translateY(9%); } }
  }
}

.tru-hero__video-toggle {
  position: absolute; z-index: 3; inset-block-end: 16px; inset-inline-end: 16px;
  inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); color: var(--hero-deep); cursor: pointer;
}
.tru-hero__video-toggle[hidden] { display: none; }
.tru-hero__video-toggle .tru-hero__icon-play { display: none; }
.tru-hero__video-toggle[aria-pressed="true"] .tru-hero__icon-play { display: block; }
.tru-hero__video-toggle[aria-pressed="true"] .tru-hero__icon-pause { display: none; }

/* --- Media: beside ---------------------------------------------------------- */
.tru-hero[data-position="start"] .tru-hero__media,
.tru-hero[data-position="end"] .tru-hero__media {
  position: relative; z-index: 2;
  max-inline-size: var(--hero-max);
  margin-inline: auto;
  padding-inline: var(--hero-gutter);
  aspect-ratio: 16 / 10;
}
.tru-hero[data-position="start"] .tru-hero__image, .tru-hero[data-position="end"] .tru-hero__image,
.tru-hero[data-position="start"] .tru-hero__video, .tru-hero[data-position="end"] .tru-hero__video {
  inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--hero-focal, center);
  border-radius: var(--hero-radius);
}
.tru-hero[data-position="start"] .tru-hero__video, .tru-hero[data-position="end"] .tru-hero__video { position: absolute; inset: 0; padding-inline: inherit; }
.tru-hero[data-media-shape="square"] .tru-hero__image, .tru-hero[data-media-shape="square"] .tru-hero__video { border-radius: 0; }

/* On mobile side media stacks under the copy. Its bottom padding is removed so
   the image becomes the natural end of the section. */
.tru-hero[data-position="start"] .tru-hero__inner,
.tru-hero[data-position="end"] .tru-hero__inner { padding-block-end: 0; }
.tru-hero[data-position="start"] .tru-hero__media,
.tru-hero[data-position="end"] .tru-hero__media { margin-block-end: var(--hero-pad-bottom); margin-block-start: 8px; }

@media (min-width: 64em) {
  .tru-hero[data-position="start"], .tru-hero[data-position="end"] {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  }
  .tru-hero[data-position="start"] .tru-hero__inner, .tru-hero[data-position="end"] .tru-hero__inner {
    padding-block-end: var(--hero-pad-bottom);
    max-inline-size: calc(var(--hero-max) / 2);
  }
  .tru-hero[data-position="end"] .tru-hero__inner { margin-inline: auto 0; padding-inline-end: clamp(24px, 3vw, 48px); }
  .tru-hero[data-position="start"] .tru-hero__inner { margin-inline: 0 auto; padding-inline-start: clamp(24px, 3vw, 48px); order: 2; }
  .tru-hero[data-position="start"] .tru-hero__media, .tru-hero[data-position="end"] .tru-hero__media {
    margin: 0; aspect-ratio: auto; min-block-size: var(--hero-min);
    padding-block: var(--hero-pad-top) var(--hero-pad-bottom);
    max-inline-size: calc(var(--hero-max) / 2);
  }
  .tru-hero[data-position="end"] .tru-hero__media { margin-inline: 0 auto; padding-inline-start: 0; }
  .tru-hero[data-position="start"] .tru-hero__media { margin-inline: auto 0; padding-inline-end: 0; order: 1; }
  .tru-hero[data-position="start"] .tru-hero__image, .tru-hero[data-position="end"] .tru-hero__image { min-block-size: 100%; }
  .tru-hero[data-media-shape="bleed"][data-position="end"] .tru-hero__media { padding: 0; max-inline-size: none; }
  .tru-hero[data-media-shape="bleed"][data-position="start"] .tru-hero__media { padding: 0; max-inline-size: none; }
  .tru-hero[data-media-shape="bleed"] .tru-hero__image, .tru-hero[data-media-shape="bleed"] .tru-hero__video { border-radius: 0; }
}

/* --- Ambient motion: Ken Burns and gradient drift ---------------------------
   Both are opt in, both are off by default, and both are paused by the same
   control the background video uses, because each of them keeps moving for
   longer than five seconds (WCAG 2.2.2). Parallax wins over Ken Burns; the
   HubL resolves that before either attribute is written. */
@media (prefers-reduced-motion: no-preference) {
  .tru-hero:not([data-kenburns="off"]) .tru-hero__image,
  .tru-hero:not([data-kenburns="off"]) .tru-hero__video {
    animation: var(--hero-kb, none) 32s ease-in-out both;
    will-change: transform;
  }
  .tru-hero[data-kenburns="in"]     { --hero-kb: tru-hero-kb-in; }
  .tru-hero[data-kenburns="out"]    { --hero-kb: tru-hero-kb-out; }
  .tru-hero[data-kenburns="in_pan"] { --hero-kb: tru-hero-kb-pan; }

  @keyframes tru-hero-kb-in  { from { transform: scale(1); }    to { transform: scale(1.12); } }
  @keyframes tru-hero-kb-out { from { transform: scale(1.12); } to { transform: scale(1); } }
  @keyframes tru-hero-kb-pan { from { transform: scale(1.06) translate3d(-1.5%, 0, 0); } to { transform: scale(1.16) translate3d(1.5%, 0, 0); } }

  /* The wash is a gradient, so it drifts by moving an oversized background. */
  .tru-hero[data-overlay-drift="true"] .tru-hero__wash {
    background-size: 165% 165%;
    animation: tru-hero-drift 26s ease-in-out infinite alternate;
  }
  .tru-hero[data-overlay-drift="true"][data-overlay="gradient_up"] .tru-hero__wash,
  .tru-hero[data-overlay-drift="true"][data-overlay="gradient_down"] .tru-hero__wash { animation-name: tru-hero-drift-y; }
  @keyframes tru-hero-drift   { from { background-position: 0% 50%; }  to { background-position: 100% 50%; } }
  @keyframes tru-hero-drift-y { from { background-position: 50% 0%; }  to { background-position: 50% 100%; } }

  /* One control stops all of it. Each selector mirrors the rule that starts
     the animation and adds the class, so it always outranks the `animation`
     shorthand rather than relying on source order. */
  .tru-hero.is-motion-paused:not([data-kenburns="off"]) .tru-hero__image,
  .tru-hero.is-motion-paused:not([data-kenburns="off"]) .tru-hero__video,
  .tru-hero.is-motion-paused[data-overlay-drift="true"] .tru-hero__wash { animation-play-state: paused; }
}

/* --- Heading arrival, word by word ------------------------------------------
   The heading is server rendered whole. module.js wraps each word only after
   it has read the text out of the DOM, so the copy is never blanked and the
   LCP element is never empty. Without the script nothing here applies. */
@media (prefers-reduced-motion: no-preference) {
  .tru-hero[data-heading-reveal="words"][data-words-ready] .tru-hero__heading { animation: none; opacity: 1; transform: none; }
  .tru-hero[data-heading-reveal="words"][data-words-ready] .tru-hero__word {
    display: inline-block;
    animation: tru-hero-word 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--w, 0) * 60ms);
  }
  @keyframes tru-hero-word { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
}

/* --- Entrance ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .tru-hero[data-entrance="fade"] .tru-hero__copy > * { animation: tru-hero-fade 600ms ease both; animation-delay: calc(var(--i, 0) * 90ms); }
  .tru-hero[data-entrance="rise"] .tru-hero__copy > * { animation: tru-hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes tru-hero-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes tru-hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Rating line: typed in stars or a pasted review widget */
.tru-hero__rating { --hero-star: var(--tru-canary-yellow, #FBD872); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block-start: 24px; font-size: 0.9375rem; }
.tru-hero[data-align="center"] .tru-hero__rating { justify-content: center; }
.tru-hero__rating[data-stars="catnip"] { --hero-star: var(--tru-catnip-green, #A1D884); }
.tru-hero__rating[data-stars="white"]  { --hero-star: #FFFFFF; }
.tru-hero__rating[data-stars="text"]   { --hero-star: currentColor; }
.tru-hero[data-scheme="light"] .tru-hero__rating[data-stars="canary"] { --hero-star: #E3B93B; }
.tru-hero__stars { display: inline-flex; gap: 2px; color: var(--hero-star); }
.tru-hero__rating-text { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.tru-hero__rating-text strong { font-weight: 800; }
.tru-hero__rating-text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.tru-hero__rating--embed { display: block; max-inline-size: 100%; overflow: hidden; }
.tru-hero__rating--embed iframe { max-inline-size: 100%; }

/* --- Mobile layout for background media ---------------------------------- */
@media (max-width: 63.99em) {
  .tru-hero[data-mobile="stack_above"], .tru-hero[data-mobile="stack_fade"], .tru-hero[data-mobile="stack_below"] { display: flex; flex-direction: column; min-block-size: 0; }
  .tru-hero[data-mobile="stack_above"] .tru-hero__media, .tru-hero[data-mobile="stack_fade"] .tru-hero__media, .tru-hero[data-mobile="stack_below"] .tru-hero__media { position: relative; inset: auto; z-index: 0; inline-size: 100%; aspect-ratio: 4 / 3; }
  .tru-hero[data-mobile-ratio="16x9"] .tru-hero__media { aspect-ratio: 16 / 9; }
  .tru-hero[data-mobile-ratio="1x1"] .tru-hero__media { aspect-ratio: 1; }
  .tru-hero[data-mobile-ratio="4x5"] .tru-hero__media { aspect-ratio: 4 / 5; }
  .tru-hero[data-mobile="stack_above"] .tru-hero__wash, .tru-hero[data-mobile="stack_fade"] .tru-hero__wash, .tru-hero[data-mobile="stack_below"] .tru-hero__wash,
  .tru-hero[data-mobile="stack_above"] .tru-hero__fade, .tru-hero[data-mobile="stack_fade"] .tru-hero__fade, .tru-hero[data-mobile="stack_below"] .tru-hero__fade { display: none; }
  .tru-hero[data-mobile="stack_above"] .tru-hero__inner, .tru-hero[data-mobile="stack_fade"] .tru-hero__inner, .tru-hero[data-mobile="stack_below"] .tru-hero__inner { min-block-size: 0; padding-block: clamp(28px, 6vw, 40px); }
  .tru-hero[data-mobile="stack_below"] .tru-hero__media { order: 2; }
  .tru-hero[data-mobile="stack_above"] .tru-hero__video-toggle, .tru-hero[data-mobile="stack_fade"] .tru-hero__video-toggle, .tru-hero[data-mobile="stack_below"] .tru-hero__video-toggle { inset-block-end: 12px; }
  /* Fading stack: the bottom quarter of the image dissolves into whatever
     colour sits behind the copy, so the text never touches the photo and the
     desktop fade has a faithful mobile counterpart. */
  .tru-hero[data-mobile="stack_fade"] .tru-hero__media { -webkit-mask-image: linear-gradient(#000 72%, transparent 100%); mask-image: linear-gradient(#000 72%, transparent 100%); }
  .tru-hero[data-mobile="stack_fade"] .tru-hero__inner { margin-block-start: -14vw; }
  /* Phone overlay strength when the image stays behind the text */
  .tru-hero[data-mobile="background"][data-mobile-overlay="none"] .tru-hero__wash { background: none; }
  .tru-hero[data-mobile="background"][data-mobile-overlay="medium"] .tru-hero__wash { background: rgba(var(--hero-tint), 0.45); }
  .tru-hero[data-mobile="background"][data-mobile-overlay="strong"] .tru-hero__wash { background: rgba(var(--hero-tint), 0.7); }
  .tru-hero[data-mobile="background"][data-mobile-overlay="gradient_up"] .tru-hero__wash { background: linear-gradient(0deg, rgba(var(--hero-tint), 0.85) 0%, rgba(var(--hero-tint), 0.4) 55%, rgba(var(--hero-tint), 0.05) 100%); }
  .tru-hero[data-mobile="background"][data-mobile-overlay="gradient_up"] .tru-hero__inner { justify-content: flex-end; }
}

/* Text colour and size overrides (23 Aug) */
.tru-hero[data-heading-colour="white"] .tru-hero__heading { color: #FFFFFF; }
.tru-hero[data-heading-colour="ink"] .tru-hero__heading { color: var(--hero-ink, #222725); }
.tru-hero[data-heading-colour="blue"] .tru-hero__heading { color: var(--hero-blue, #3A5DAE); }
.tru-hero[data-heading-colour="deep"] .tru-hero__heading { color: var(--tru-hero-blue, #28396F); }
.tru-hero[data-heading-colour="purple"] .tru-hero__heading { color: var(--tru-purrfect-purple, #403A60); }
.tru-hero[data-heading-colour="canary"] .tru-hero__heading { color: var(--tru-canary-yellow, #FBD872); }
.tru-hero[data-heading-colour="catnip"] .tru-hero__heading { color: var(--tru-catnip-green, #A1D884); }
.tru-hero[data-heading-colour="custom"] .tru-hero__heading { color: var(--hero-hcol, inherit); }
.tru-hero[data-sub-colour="white"] .tru-hero__sub { color: #FFFFFF; }
.tru-hero[data-sub-colour="ink"] .tru-hero__sub { color: var(--hero-ink, #222725); }
.tru-hero[data-sub-colour="blue"] .tru-hero__sub { color: var(--hero-blue, #3A5DAE); }
.tru-hero[data-sub-colour="canary"] .tru-hero__sub { color: var(--tru-canary-yellow, #FBD872); }
.tru-hero[data-sub-colour="custom"] .tru-hero__sub { color: var(--hero-scol, inherit); }
.tru-hero[data-sub-size="small"] .tru-hero__sub { font-size: 1rem; }
.tru-hero[data-sub-size="large"] .tru-hero__sub { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem); }
.tru-hero[data-proof-size="small"] .tru-hero__proof-item { font-size: 0.8125rem; } .tru-hero[data-proof-size="small"] .tru-hero__proof-item svg { inline-size: 14px; block-size: 14px; }
.tru-hero[data-proof-size="large"] .tru-hero__proof-item { font-size: 1.0625rem; } .tru-hero[data-proof-size="large"] .tru-hero__proof-item svg { inline-size: 22px; block-size: 22px; }
.tru-hero[data-proof-colour="canary"] .tru-hero__proof-item svg { color: var(--tru-canary-yellow, #FBD872); }
.tru-hero[data-proof-colour="white"] .tru-hero__proof-item svg { color: #FFFFFF; }
.tru-hero[data-proof-colour="blue"] .tru-hero__proof-item svg { color: var(--hero-blue, #3A5DAE); }
.tru-hero[data-proof-colour="text"] .tru-hero__proof-item svg { color: currentColor; }

/* Eyebrow colour (30 Sept 2026). Purple Alt is the default; Automatic keeps
   the original accent that follows the background. */
.tru-hero[data-eyebrow-colour="purple_alt"] .tru-hero__eyebrow { color: var(--tru-purrfect-purple-alt, #AB87FF); }
.tru-hero[data-eyebrow-colour="canary"] .tru-hero__eyebrow { color: var(--tru-canary-yellow, #FBD872); }
.tru-hero[data-eyebrow-colour="catnip"] .tru-hero__eyebrow { color: var(--tru-catnip-green, #A1D884); }
.tru-hero[data-eyebrow-colour="white"] .tru-hero__eyebrow { color: #FFFFFF; }
.tru-hero[data-eyebrow-colour="blue"] .tru-hero__eyebrow { color: var(--tru-blue, #3A5DAE); }
.tru-hero[data-eyebrow-colour="purple"] .tru-hero__eyebrow { color: var(--tru-purrfect-purple, #403A60); }
.tru-hero[data-eyebrow-colour="custom"] .tru-hero__eyebrow { color: var(--hero-ecol, inherit); }

/* Hero buttons on phones (2 Dec 2026). The primary button already ran full
   width below 480px; the second one kept its own width, so the pair looked
   uneven. Both are full width now (a text link style second button stays a
   link). */
@media (max-width: 29.99em) {
  .tru-hero__actions .tru-btn:not(.tru-btn--text) { inline-size: 100%; }
}

/* Phones: tighter hero (2 Dec 2026). Seen live on /who-we-are/: Large space
   gave 56px above the eyebrow and Medium height asked for 60% of the screen,
   so the hero spent most of the first screen on space. Below 640px each
   space setting is roughly halved and the Medium and Tall heights let the
   words set the height (Tall keeps half the screen). Full screen is left. */
@media (max-width: 39.99em) {
  .tru-hero { --hero-pad-top: 32px; --hero-pad-bottom: 32px; }
  .tru-hero[data-space-top="small"]  { --hero-pad-top: 20px; }
  .tru-hero[data-space-top="medium"] { --hero-pad-top: 26px; }
  .tru-hero[data-space-top="xlarge"] { --hero-pad-top: 44px; }
  .tru-hero[data-space-bottom="small"]  { --hero-pad-bottom: 20px; }
  .tru-hero[data-space-bottom="medium"] { --hero-pad-bottom: 26px; }
  .tru-hero[data-space-bottom="xlarge"] { --hero-pad-bottom: 44px; }
  .tru-hero[data-height="medium"] { --hero-min: 0; }
  .tru-hero[data-height="tall"]   { --hero-min: 50svh; }
}
