/* ==========================================================================
   The Seven kinds of support on the home page (v88.9.0), drawn by home-kinds.js.
   Each kind uses its world colours from cinema.css (--cn-emp-*, --cn-pc-* and the rest),
   so the dark and light looks and high contrast come with them. Since v88.9.1 the screen
   beside the panels plays the kinds' films.
   ========================================================================== */

.hk-k-employment { --hk-bg: var(--cn-emp-bg); --hk-glow: var(--cn-emp-glow); --hk-soft: var(--cn-emp-soft); }
.hk-k-personal-care { --hk-bg: var(--cn-pc-bg); --hk-glow: var(--cn-pc-glow); --hk-soft: var(--cn-pc-soft); }
.hk-k-transport { --hk-bg: var(--cn-tr-bg); --hk-glow: var(--cn-tr-glow); --hk-soft: var(--cn-tr-soft); }
.hk-k-daily-tasks { --hk-bg: var(--cn-dt-bg); --hk-glow: var(--cn-dt-glow); --hk-soft: var(--cn-dt-soft); }
.hk-k-household { --hk-bg: var(--cn-hh-bg); --hk-glow: var(--cn-hh-glow); --hk-soft: var(--cn-hh-soft); }
.hk-k-community { --hk-bg: var(--cn-co-bg); --hk-glow: var(--cn-co-glow); --hk-soft: var(--cn-co-soft); }
.hk-k-overnight { --hk-bg: var(--cn-on-bg); --hk-glow: var(--cn-on-glow); --hk-soft: var(--cn-on-soft); }
/* the light look has no overnight colours of its own: a pale night here */
@media (prefers-color-scheme: light) {
  html[data-look="cinema"]:not([data-cn-theme="dark"]):not(.high-contrast) .hk-k-overnight { --hk-bg: #E4E5F1; --hk-glow: #7A5A00; --hk-soft: #D2D5EA; }
}
html[data-look="cinema"][data-cn-theme="light"]:not(.high-contrast) .hk-k-overnight { --hk-bg: #E4E5F1; --hk-glow: #7A5A00; --hk-soft: #D2D5EA; }

/* the section takes the colour of the kind you are reading */
.hk-sec { transition: background-color .9s ease; }
.hk-sec.hk-live { background-color: var(--hk-bg); }
.hk { margin-top: clamp(24px, 3cqw, 48px); }

.hk-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: clamp(32px, 4.5cqw, 72px); }
.hk-steps { display: grid; }
.hk-step { min-height: 78vh; box-sizing: border-box; padding-block: 32px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hk-step > * { margin: 0; }
.hk-kind { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; color: var(--hk-glow); } /* v88.10.0: plain words ("Employment support, 1 of 7"), not the cut-short code in capitals */
.hk-ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--hk-glow); color: var(--hk-bg); }
.hk-ic .cn-ic { width: 15px; height: 15px; }
.hk-step h3 { font-size: clamp(2rem, 1.15rem + 2.3cqw, 3.3rem); }
.hk-step h3 em { font-style: italic; color: var(--hk-glow); }
.hk-lede { max-width: 34em; font-size: var(--cn-fs-lede); line-height: 1.5; color: var(--cn-ink-2); }
.hk-inc { list-style: none; padding: 0; display: grid; gap: 10px; }
.hk-inc li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; }
.hk-inc .cn-ic { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--hk-glow); stroke-width: 3; }
.hk-step .cn-link-arrow { align-self: flex-start; }
.hk-ph { display: none; }

/* the stage beside the panels: the picture, and the logo with the seven names */
.hk-side { position: relative; }
.hk-stage { position: sticky; top: calc(var(--cn-header-h) + 28px); display: grid; gap: 18px; padding-block: 24px; }
.hk-screen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--cn-r-xl); overflow: hidden; isolation: isolate; background: #05081C; box-shadow: 0 0 0 1px var(--cn-line), var(--cn-shadow-lg); }
.hk-poster { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hk-poster.is-on { opacity: 1; }
.hk-poster img, .hk-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* v88.9.1: the kind's film plays over its still once it has started (home-kinds.js); until then,
   on a phone and with reduced motion, the still is what shows */
.hk-media { position: absolute; inset: 0; }
.hk-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hk-poster.is-playing .hk-film { opacity: 1; }
.hk-play { position: absolute; left: 16px; bottom: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(8, 12, 36, .72); color: #F4EFE4; font: 700 .9375rem/1 var(--cn-body); cursor: pointer; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hk-play[hidden] { display: none; }
.hk-play:hover { background: rgba(8, 12, 36, .86); }
.hk-play:focus-visible { outline: 3px solid #F7D27A; outline-offset: 2px; }
.hk-play .cn-ic { width: 18px; height: 18px; }
.hk-chips { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .7s var(--cn-out); pointer-events: none; }
.hk-chips.is-on { opacity: 1; transform: none; }
.hk-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 999px; background: var(--hk-glow); color: var(--hk-bg); font-weight: 700; font-size: .95rem; box-shadow: var(--cn-shadow-md); }
.hk-chip .cn-ic { width: 16px; height: 16px; stroke-width: 2.6; }
.hk-chip-a { left: 5%; top: 8%; }
.hk-chip-b { right: 5%; bottom: 9%; }
.hk-reel { display: flex; align-items: center; gap: 22px; padding: 14px 18px; border-radius: var(--cn-r-xl); background: color-mix(in srgb, var(--cn-bg) 50%, transparent); box-shadow: inset 0 0 0 1px var(--cn-line); }
.hk-logo { width: 124px; flex: none; }
.hk-reel-r { display: grid; gap: 8px; flex: 1; min-width: 0; }
.hk-count { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cn-ink-2); }
.hk-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.hk-l { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: color-mix(in srgb, var(--cn-ink) 64%, transparent); font: 700 .875rem/1.2 var(--cn-body); text-align: left; cursor: pointer; transition: background-color .4s ease, color .4s ease; }
.hk-l:hover { background: color-mix(in srgb, var(--cn-ink) 7%, transparent); }
.hk-l.is-seen { color: color-mix(in srgb, var(--cn-ink) 86%, transparent); }
.hk-l.is-cur { color: var(--cn-ink); background: color-mix(in srgb, var(--cn-ink) 12%, transparent); }
.hk-l:focus-visible { outline: 3px solid var(--cn-focus); outline-offset: 2px; }
.hk-l .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--hk-glow); opacity: .5; transition: opacity .4s ease, box-shadow .4s ease; }
.hk-l.is-seen .dot, .hk-l.is-cur .dot { opacity: 1; }
.hk-l.is-cur .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hk-glow) 28%, transparent); }

/* ---------- the logo: each kind lights its part in its own colour ---------- */
.hk-art.hk-dim .cm-ln { opacity: .22; transition: opacity .6s ease, stroke .6s ease; }
.hk-art.hk-dim .cm-nd { opacity: .3; }
.hk-art.hk-dim .cm-hds { opacity: .3; }
.hk-art.hk-dim .cm-hp { opacity: .45; transition: opacity .6s ease; }
.hk-art .cm-nd, .hk-brand .cm-nd, .hk-art .cm-hd, .hk-brand .cm-hd { transition: fill .4s ease, opacity .4s ease; }
.hk-art .cm-gl { transition: opacity .6s ease; }
.hk-art .cm-rp-head { stroke: var(--cm-lit); stroke-width: 9px; }
:is(.hk-art, .hk-brand) .cm-lt-ll-head { stroke: var(--cn-emp-glow); }
:is(.hk-art, .hk-brand) .cm-lt-ul-head { stroke: var(--cn-pc-glow); }
:is(.hk-art, .hk-brand) .cm-lt-top-head { stroke: var(--cn-tr-glow); }
:is(.hk-art, .hk-brand) .cm-lt-ur-head { stroke: var(--cn-dt-glow); }
:is(.hk-art, .hk-brand) .cm-lt-lr-head { stroke: var(--cn-hh-glow); }
:is(.hk-art, .hk-brand):is(.hk-v-ll, .hk-c-ll) .cm-nd-ll { fill: var(--cn-emp-glow); opacity: 1; }
:is(.hk-art, .hk-brand):is(.hk-v-ul, .hk-c-ul) .cm-nd-ul { fill: var(--cn-pc-glow); opacity: 1; }
:is(.hk-art, .hk-brand):is(.hk-v-top, .hk-c-top) .cm-nd-top { fill: var(--cn-tr-glow); opacity: 1; }
:is(.hk-art, .hk-brand):is(.hk-v-ur, .hk-c-ur) .cm-nd-ur { fill: var(--cn-dt-glow); opacity: 1; }
:is(.hk-art, .hk-brand):is(.hk-v-lr, .hk-c-lr) .cm-nd-lr { fill: var(--cn-hh-glow); opacity: 1; }
:is(.hk-art, .hk-brand).hk-v-ll .cm-lt-ll-head, :is(.hk-art, .hk-brand).hk-v-ul .cm-lt-ul-head, :is(.hk-art, .hk-brand).hk-v-top .cm-lt-top-head,
:is(.hk-art, .hk-brand).hk-v-ur .cm-lt-ur-head, :is(.hk-art, .hk-brand).hk-v-lr .cm-lt-lr-head { stroke-dashoffset: 0; }
.hk-art.hk-v-ll .cm-gl-ll, .hk-art.hk-v-ul .cm-gl-ul, .hk-art.hk-v-top .cm-gl-top, .hk-art.hk-v-ur .cm-gl-ur, .hk-art.hk-v-lr .cm-gl-lr { opacity: .55; }
.hk-art.hk-c-ll .cm-gl-ll, .hk-art.hk-c-ul .cm-gl-ul, .hk-art.hk-c-top .cm-gl-top, .hk-art.hk-c-ur .cm-gl-ur, .hk-art.hk-c-lr .cm-gl-lr { animation: hk-breathe 1.5s ease-in-out infinite alternate; }
:is(.hk-art, .hk-brand):is(.hk-v-hands, .hk-c-hands) .cm-hd { fill: var(--cn-co-glow); }
.hk-art.hk-v-hands .cm-hds { opacity: 1; }
.hk-art.hk-v-hands :is(.cm-gl-hl, .cm-gl-hr) { opacity: .45; }
.hk-art.hk-c-hands :is(.cm-gl-hl, .cm-gl-hr) { animation: hk-breathe 1.5s ease-in-out infinite alternate; }
.hk-art:is(.hk-v-person, .hk-c-person) .cm-hp { opacity: 1; }
.hk-art.hk-v-person .cm-gl-head { opacity: .8; }
/* after the seventh: every line between the dots lights in gold */
:is(.hk-art, .hk-brand) :is(.cm-lt-top-ul, .cm-lt-top-ur, .cm-lt-top-ll, .cm-lt-top-lr, .cm-lt-ul-ur, .cm-lt-ul-ll, .cm-lt-ur-lr, .cm-lt-ul-base, .cm-lt-ur-base, .cm-lt-ll-base, .cm-lt-lr-base) { transition: stroke-dashoffset .9s cubic-bezier(.45, 0, .55, 1); }
:is(.hk-art, .hk-brand).hk-fin .cm-lt { stroke-dashoffset: 0; }
.hk-art.hk-fin .cm-ln { opacity: .9; }
.hk-art.hk-fin .cm-gl { opacity: .75; animation: none; }
.hk-art.hk-fin .cm-rp-head { animation: hk-rip 1.6s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes hk-breathe { from { opacity: .3; } to { opacity: 1; } }
@keyframes hk-rip { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }

/* ---------- a phone or a narrow window: a small bar with the logo stays under the header ---------- */
@media (max-width: 1023px) {
  .hk-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hk-side { order: -1; position: sticky; top: var(--cn-header-h); z-index: 3; align-self: start; margin-inline: calc(-1 * var(--cn-gutter)); }
  .hk-stage { position: static; gap: 0; padding: 8px var(--cn-gutter); background: var(--cn-bg); box-shadow: 0 1px 0 var(--cn-line); transition: background-color .9s ease; }
  .hk-sec.hk-live .hk-stage { background: var(--hk-bg); }
  .hk-screen, .hk-labels { display: none; }
  .hk-reel { padding: 0; gap: 12px; background: none; box-shadow: none; border-radius: 0; }
  .hk-logo { width: 56px; }
  .hk-step { min-height: 0; padding-block: 40px 8px; }
  .hk-ph { display: block; aspect-ratio: 16 / 9; border-radius: var(--cn-r-l); overflow: hidden; background: #05081C; }
}
/* v88.13.0 (P16): on a phone each kind is a heading, one line and Learn more: its picture a 72px square beside the
   heading, the lede's first sentence (.hk-line), then the link. The kind's name line, the rest of the lede and the
   three points are for wider screens; the bar under the header still says which kind you are reading. */
@media (max-width: 900px) {
  .hk-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: center; padding-block: 22px 4px; }
  .hk-ph { grid-column: 1; grid-row: 1; width: 72px; height: 72px; aspect-ratio: auto; border-radius: 18px; }
  .hk-step h3 { grid-column: 2; grid-row: 1; font-size: 1.6rem; }
  .hk-kind, .hk-inc, .hk-rest { display: none; }
  .hk-lede, .hk-step .cn-link-arrow { grid-column: 1 / -1; }
  .hk-lede { font-size: 1.02rem; }
  .hk-step .cn-link-arrow { justify-self: start; }
}
/* on the narrowest phones a heading's long italic phrase may wrap ("we will get you there" ran 12px past a 320px screen) */
@media (max-width: 374px) { .hk-step h3 em { white-space: normal; } }
@media (prefers-reduced-motion: reduce) {
  .hk-sec, .hk-sec *, .hk-brand * { animation: none !important; transition: none !important; }
}
