/* =============================================================================
   Home page: light grey, deep plum and the logo's four colours in small doses. Five sections (the client's order, 13 November 2026):
   Hero on grey (small label, very large centred headline, the program summary, two buttons, one photo whose plain wall is the grey and whose
   bottom melts into the plum band) -> "How We Support Employers" on deep plum (five rounded tiles side by side on a computer, no sideways scrolling)
   -> "Explore Resources by Topic" (a white tile for each pathway, its steps on a thread of numbered discs) -> local supports (a white card with a
   list) -> the Employer Community (a white card with conversation starters).
   Scoped to the home page: the body carries .page-home (layouts/public.php).
   No autoplay. Motion: a small lift and an arrow nudge on hover, a reveal as blocks scroll into view (assets/js/home.js) and a slow drift inside the
   five tiles (CSS only). All of it is off under prefers-reduced-motion; without the script nothing is hidden and nothing moves.
   Colours (contrast): text #2A1733 / #34183F on grey 12:1+, #693A78 on grey 7:1, #FBF8F2 on plum 15:1, #D8C6DF on plum 9:1.
   Sizes: the one scale in theme.css, nowhere a size of its own. --fs-h1 the headline, --fs-h2 every section heading, --fs-h3 every card and item
   title (the five tiles, the pathways, the organizations), --fs-body every paragraph of reading text, --fs-small a short label, a number or a
   phone number. Only the pills, the buttons and the "Conversation starters" label keep their own small sizes.
   ============================================================================= */

.page-home{
  --hm-bg:#F3F4F6;        /* the page: light grey (the hero photo's wall is the same colour) */
  --hm-card:#FFFFFF;      /* white: the cards */
  --hm-deep:#34183F;      /* deep plum, derived from the logo's purple */
  --hm-plum:#693A78;      /* the logo's purple: buttons, links */
  --hm-plum-d:#4F2A5C;
  --hm-ink:#2A1733; --hm-soft:#4E4056;
  --hm-leaf:#96CB5B; --hm-amber:#F0AE5E; --hm-sky:#3EADE3;   /* the logo's other colours */
  --hm-green-t:#E9F2D6; --hm-orange-t:#FBEBD3; --hm-blue-t:#DDF0F9; --hm-lilac:#EFE6F2;   /* and their soft tints */
  --hm-line:rgba(105,58,120,.18);
  --hm-shadow-s:0 12px 28px -20px rgba(52,24,63,.38);
  --hm-display:'Lexend','Outfit','Noto Sans',system-ui,sans-serif;
  --hm-r:clamp(22px,2.4vw,34px);   /* big surfaces */
  --hm-rm:20px;                    /* cards */
  --hm-rs:14px;                    /* rows and small controls */
  background:var(--hm-bg);
}
.page-home .page{background:var(--hm-bg)}
.home{color:var(--hm-ink); overflow-x:clip}
.hm-in{max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter)}   /* the same width and side space as the navbar and the footer */

/* The navbar sits on the same grey as the page (its styles are in site.css; the footer has a look of its own there too) */
.page-home .hdr{background:var(--hm-bg); border-bottom-color:transparent}
.page-home .hdr.is-stuck{border-bottom-color:var(--hm-line)}
html:not(.js) .page-home .hdr-collapse{background:transparent}   /* no script: the links sit open under the logo, on the grey */

/* ---- Small outlined label ("pill") ------------------------------------------ */
.hm-pill{display:inline-flex; align-items:center; gap:9px; margin:0; padding:6px 15px 6px 12px; border:1.5px solid var(--tone); border-radius:999px; font:700 12.5px/1.2 'Noto Sans',sans-serif; letter-spacing:.11em; text-transform:uppercase; color:var(--hm-deep)}
.hm-pill span{width:8px; height:8px; flex:none; border-radius:50%; background:var(--tone)}
.hm-pill-leaf{--tone:var(--hm-leaf)} .hm-pill-amber{--tone:var(--hm-amber)} .hm-pill-sky{--tone:var(--hm-sky)} .hm-pill-plum{--tone:var(--hm-plum)}
.hm-support .hm-pill{color:#F3E6D0}

/* One logo colour at work in a block: --c the colour, --on the text on it, --t its soft tint */
.hm-t-leaf{--c:var(--hm-leaf); --on:#18260B; --t:var(--hm-green-t)}
.hm-t-amber{--c:var(--hm-amber); --on:#2B1604; --t:var(--hm-orange-t)}
.hm-t-sky{--c:var(--hm-sky); --on:#06222F; --t:var(--hm-blue-t)}
.hm-t-plum{--c:var(--hm-plum); --on:#FFFFFF; --t:var(--hm-lilac)}

/* ---- Buttons -------------------------------------------------------------------- */
.hm-btn{display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:14px 30px; text-align:center; text-wrap:balance; border:1.5px solid var(--hm-plum); border-radius:999px; font:600 16.5px/1.2 'Noto Sans',sans-serif; text-decoration:none; transition:background .2s,color .2s,border-color .2s,transform .25s var(--ease),box-shadow .2s}
.hm-btn:hover{transform:translateY(-2px)}
.hm-btn-solid{background:var(--hm-plum); color:#FFFFFF}
.hm-btn-solid:hover{background:var(--hm-plum-d); border-color:var(--hm-plum-d); color:#FFFFFF; box-shadow:0 14px 26px -14px rgba(52,24,63,.7)}
.hm-btn-line{background:transparent; color:var(--hm-deep)}
.hm-btn-line:hover{background:rgba(105,58,120,.09); color:var(--hm-deep)}
.hm-btn:focus-visible{outline:3px solid var(--hm-deep); outline-offset:3px; border-radius:999px}

/* ---- Hero ------------------------------------------------------------------------ */
.hm-hero{position:relative; background:var(--hm-bg); padding-top:clamp(32px,3vw,56px); overflow-x:clip}   /* clear air under the navbar, on phones too; the photo is tucked up behind the copy */
.hm-hero-copy{position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; gap:clamp(16px,1.7vw,24px); max-width:calc(1300px + 2 * var(--gutter)); margin:0 auto; padding:0 var(--gutter); text-align:center}
.hm-title{max-width:16em; font-family:var(--hm-display); font-size:var(--fs-h1); font-weight:300; line-height:1.06; letter-spacing:-.035em; color:var(--hm-deep); text-wrap:balance}
.hm-title > span{display:block}
.hm-title .hm-alt{color:var(--hm-plum)}
.hm-intro{max-width:78ch; margin:0; font-size:var(--fs-body); line-height:1.65; color:var(--hm-soft); text-wrap:pretty}   /* the program summary: four lines on a computer */
.hm-hero-copy:last-child{padding-bottom:clamp(40px,6vw,88px)}   /* no photo chosen: the plum band follows the buttons */
.hm-acts{display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:6px}

/* The photo: its plain wall is the page's grey and rises behind the buttons (no people there); the bottom fades into the plum band. */
.hm-photo{position:relative; z-index:1; margin:-15vw 0 0; pointer-events:none}
/* The shipped photo (assets/images/home/hero-1600.jpg) is measured: its first heads start 41.8% down (376 of 900 px), so on a wide screen they are
   23.5vw below the top of the picture. The picture is tucked up behind the copy by that much minus the space wanted between the buttons and the
   heads: 2.2vw (42 px at 1920 px, never under 24 px). A photo chosen in the panel keeps the roomier -15vw above (its people may start higher). */
.hm-photo-fit{margin-top:calc(max(2.2vw,24px) - 23.5vw)}
.hm-photo img{display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:50% 100%; -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%); mask-image:linear-gradient(to bottom,transparent 0,#000 16%)}
.hm-photo::before,.hm-photo::after{content:""; position:absolute; left:0; right:0; bottom:-1px}
.hm-photo::before{height:28%; background:linear-gradient(to bottom,#fff 0,#d9c7e0 35%,#8c6a9b 75%,#5a3469 100%); mix-blend-mode:multiply}   /* darkens toward plum without greying; short enough that every face stays clear of it */
.hm-photo::after{height:12%; background:linear-gradient(to bottom,rgba(52,24,63,0) 0,#34183F 100%)}   /* and the last bit is the band itself */

/* ---- Section heads ------------------------------------------------------------- */
.hm-head{display:flex; flex-direction:column; align-items:flex-start; gap:18px; margin-bottom:clamp(30px,4vw,56px)}
.hm-head-split{flex-direction:row; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:18px 48px}
.hm-head-split > div{display:flex; flex-direction:column; align-items:flex-start; gap:18px}
.hm-h2{max-width:17ch; margin:0; font-family:var(--hm-display); font-size:var(--fs-h2); font-weight:300; line-height:1.1; letter-spacing:-.028em; color:var(--hm-deep); text-wrap:balance}
.hm-h2-m{max-width:15ch}   /* inside a card: a shorter measure, the same size as every other section heading */
.hm-sub{max-width:36ch; margin:0 0 6px; font-size:var(--fs-body); line-height:1.6; color:var(--hm-soft)}

/* ---- "How We Support Employers": deep plum band, the five tiles side by side -------------------------------------------------------------------
   Five across from 1100 px, three from 768 px, two from 480 px and one on a phone; a row that is not full is centred, so 3 + 2 and 2 + 2 + 1 stay
   balanced. Nothing scrolls sideways (the client, 13 November 2026). Each tile is a short picture (a photo, or a logo colour with a line icon), its
   title and one line; room for two lines of title keeps the lines under them level across a row (a longer title takes a third line and drops its own). */
.hm-support{padding:clamp(14px,1.6vw,26px) 0 clamp(56px,7vw,104px); background:var(--hm-deep); color:var(--hm-card); border-radius:0 0 clamp(32px,5vw,72px) clamp(32px,5vw,72px)}
.hm-support .hm-h2{color:var(--hm-card)}
.hm-support .hm-head{margin-bottom:clamp(18px,2.2vw,32px)}   /* the heading sits close over its tiles */
.hm-tiles{--g:clamp(14px,1.6vw,24px); display:flex; flex-wrap:wrap; justify-content:center; gap:28px var(--g); margin:0; padding:0; list-style:none}
.hm-tiles li{display:flex; flex:0 0 calc((100% - 4 * var(--g)) / 5); min-width:0}   /* the list item holds still and the tile lifts inside it, so the hover does not flicker */
@media (max-width:1099px){ .hm-tiles li{flex-basis:calc((100% - 2 * var(--g)) / 3)} }
@media (max-width:767px){ .hm-tiles li{flex-basis:calc((100% - var(--g)) / 2)} }
@media (max-width:479px){
  .hm-tiles li{flex-basis:100%}
  .hm-support{border-radius:0}   /* a phone: the band runs square into the next section */
}
.hm-tile{display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto 1fr; column-gap:12px; width:100%; border-radius:var(--hm-rm); color:var(--hm-card); text-decoration:none; transition:transform .35s var(--ease)}
.hm-tile > .hm-vis{grid-column:1 / -1; grid-row:1; margin-bottom:14px}
.hm-tile > .hm-tile-t{grid-column:1; grid-row:2}
.hm-tile > .hm-tile-p{grid-column:1; grid-row:3; margin-top:4px}
.hm-tile > .hm-go{grid-column:2; grid-row:2 / span 2; align-self:start}   /* level with the first line of the title; it spans the description row too, so it never makes the title row taller than the title */
.hm-tile:hover{color:var(--hm-card)}
.hm-tile:focus-visible{outline:3px solid var(--hm-amber); outline-offset:8px; border-radius:var(--hm-rm)}

.hm-vis{position:relative; display:grid; place-items:center; aspect-ratio:16/10; overflow:hidden; border-radius:var(--hm-rm); transition:box-shadow .35s}   /* one shape for all five */
.hm-vis img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:scale .7s var(--ease)}
/* hover: the whole tile lifts 4 px, a shadow under the picture, the photo zooms a little inside its own clipped box; no size ever changes */
.hm-tiles li:hover .hm-tile{transform:translateY(-4px)}
.hm-tiles li:hover .hm-vis{box-shadow:0 22px 36px -22px rgba(0,0,0,.6)}
.hm-tiles li:hover .hm-vis img{scale:1.05}
/* a coloured tile: flat logo colour, a pale arch behind a simple line icon */
.hm-vis svg{position:relative; width:22%; height:auto}   /* a share of the tile, so the icon, the arch behind it and their drift keep their proportions at every tile width */
.hm-vis::before{content:""; position:absolute; left:50%; bottom:0; width:40%; max-width:180px; aspect-ratio:1/1.15; transform:translateX(-50%); border-radius:999px 999px 0 0; background:rgba(255,255,255,.3)}
.hm-vis-photo::before{display:none}
.hm-vis-leaf{background:var(--hm-leaf); color:#18260B}
.hm-vis-amber{background:var(--hm-amber); color:#2B1604}
.hm-vis-sky{background:var(--hm-sky); color:#06222F}
.hm-vis-plum{background:var(--hm-plum); color:#FFFFFF}   /* the fourth tone, for the tiles that used to carry a photo */

.hm-tile-t{min-height:3.75em; font-family:var(--hm-display); font-size:var(--fs-h3); font-weight:400; line-height:1.25; letter-spacing:-.02em}   /* room for three lines, the longest of the five titles at the shared title size, so the sentences under all five stay level */
.hm-tile-p{font-size:var(--fs-body); line-height:1.5; color:#D8C6DF}
.hm-go{display:grid; place-items:center; flex:none; width:38px; height:38px; border:1.5px solid currentColor; border-radius:50%; transition:background .25s,color .25s,transform .25s var(--ease)}
.hm-tiles li:hover .hm-go{background:var(--hm-amber); border-color:var(--hm-amber); color:var(--hm-deep)}
/* a phone: one tile per row, as a compact row (a small square picture, the title and its line, the arrow), so the five stay short */
@media (max-width:479px){
  .hm-tiles{row-gap:14px}
  .hm-tile{grid-template-columns:84px minmax(0,1fr) auto; grid-template-rows:auto 1fr; column-gap:14px}
  .hm-tile > .hm-vis{grid-column:1; grid-row:1 / span 2; align-self:start; aspect-ratio:1; margin-bottom:0}
  .hm-tile > .hm-tile-t{grid-column:2; grid-row:1; min-height:0; padding-top:4px}
  .hm-tile > .hm-tile-p{grid-column:2; grid-row:2}
  .hm-tile > .hm-go{grid-column:3; grid-row:1 / span 2; align-self:center}
  .hm-vis svg{width:44%}
  .hm-vis::before{width:66%}
}

/* a numbered disc in a logo colour (the steps of a pathway) */
.hm-disc{display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; background:var(--c); color:var(--on); font:600 14.5px/1 var(--hm-display)}

/* ---- "Follow the Pathway": a white tile for each pathway. The icon stands beside the title, the short text and a pill in the pathway's
   own colour follow under it, and the steps hang on a thread of numbered discs in a tinted panel beside them. On a wide screen the two
   sides are held level with each other's middle; on a phone they stack. ------------------------------------------------ */
.hm-paths{padding:clamp(56px,7vw,104px) 0 clamp(40px,5vw,72px)}
.hm-pathways{display:flex; flex-direction:column; gap:clamp(16px,2vw,28px); margin:0; padding:0; list-style:none}   /* one wide tile per pathway, one under the other (they stack as the page scrolls: see below) */
.hm-pathways > li{display:flex}   /* the list item holds still and the tile lifts inside it, so the hover does not flicker at the tile's edge */
.hm-path{position:relative; display:flex; flex-direction:column; gap:22px; width:100%; padding:clamp(24px,2.2vw,32px); background:var(--hm-card); border:1px solid var(--hm-line); border-radius:var(--hm-rm); transition:transform .35s var(--ease),box-shadow .35s}
.hm-pathways > li:hover .hm-path{transform:translateY(-5px); box-shadow:var(--hm-shadow-s)}
.hm-path-ic{display:grid; place-items:center; flex:none; width:52px; height:60px; border-radius:999px 999px 14px 14px; background:var(--c); color:var(--on)}
.hm-path-top{display:flex; align-items:center; gap:16px}   /* the icon stands beside the title, not in a column of its own with nothing under it */
.hm-path-deco{display:none}   /* a decoration only: it appears where there is room for it, on a wide screen */
.hm-path-hd{display:flex; flex-direction:column; align-items:flex-start; gap:12px}
.hm-path-t{margin:0; font-family:var(--hm-display); font-size:var(--fs-h3); font-weight:400; line-height:1.25; letter-spacing:-.02em; color:var(--hm-deep); text-wrap:balance}
.hm-path-p{margin:0; font-size:var(--fs-body); line-height:1.6; color:var(--hm-soft)}
.hm-path-panel{position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:center; gap:clamp(16px,4vw,26px); padding:clamp(20px,5vw,26px) clamp(18px,4.5vw,24px); border-radius:clamp(22px,5vw,28px); background:var(--c); color:var(--on)}   /* the panel in the pathway's own colour: the numbered steps of the topic */
.hm-steps{flex:1 1 180px; display:flex; flex-direction:column; gap:14px; margin:0; padding:0; list-style:none}
.hm-steps .hm-disc{background:var(--hm-card); color:var(--c); box-shadow:0 2px 8px -4px rgba(0,0,0,.4)}
.hm-steps .hm-step-t{color:var(--on); font-weight:600}
.hm-steps li:not(:last-child)::before{background:var(--on); opacity:.35}
.hm-steps li{position:relative; display:flex; align-items:flex-start; gap:14px}
.hm-steps li:not(:last-child)::before{content:""; position:absolute; left:16px; top:38px; bottom:-10px; width:2px; border-radius:2px; background:var(--c); opacity:.5}   /* the thread to the next disc */
.hm-step-t{padding-top:6px; font-size:var(--fs-small); line-height:1.4; color:var(--hm-ink)}   /* the name of a step: a short label beside its disc, not reading text */
/* the tile's one link: its ::after covers the tile, so the whole tile is clicked, and the focus ring goes round the tile */
.hm-path-go{display:inline-flex; align-items:center; gap:14px; margin-top:4px; padding:9px 9px 9px 22px; border:1.5px solid var(--c); border-radius:999px; font:600 var(--fs-body)/1.3 'Noto Sans',sans-serif; color:var(--hm-deep); text-decoration:none; transition:background-color .25s,color .25s}   /* a pill in the pathway's own colour, so each card ends on a clear invitation */
.hm-path-go:hover{background:var(--c); color:var(--on)}   /* the pill fills with the pathway's colour; --on is the text colour that reads on it */
.hm-path-go::after{content:""; position:absolute; inset:0; border-radius:var(--hm-rm)}
.hm-path-go:focus-visible{outline:none}
.hm-path-go:focus-visible::after{outline:3px solid var(--hm-deep); outline-offset:3px}
.hm-path-go .hm-go{width:42px; height:42px}
.hm-pathways > li:hover .hm-go{background:var(--c); border-color:var(--c); color:var(--on); transform:translateX(3px)}
/* A wide screen: each pathway is one wide tile in three columns (its badge; the name, the sentence and the link; the steps on a tint of its colour), with a band of
   its colour along the top. Where the window is tall enough the tiles stack as the page scrolls: each one is held under the header, a little lower than the one
   before (--i), and the next slides up over it, so the four end as a pile showing the top band of each. Not with "reduce motion", on paper or in forced colours. */
@media (min-width:900px){
  .hm-path{display:grid; grid-template-columns:minmax(300px,.95fr) minmax(0,1.25fr); column-gap:clamp(34px,4vw,76px); align-items:center; padding:clamp(18px,1.6vw,24px); border-top:0; border-radius:var(--hm-r)}   /* the steps panel on the left, the words on the right */
  .hm-path-hd{order:2; padding:clamp(10px,1.4vw,20px) clamp(14px,1.6vw,26px) clamp(10px,1.4vw,20px) 0}
  .hm-path-ic{width:56px; height:66px}
  .hm-path-ic svg{width:30px; height:30px}
  .hm-path-p{max-width:52ch}
  /* The panel of steps, in the pathway's own colour, with two softer copies of itself peeking out from behind its right edge, the way a
     stack of cards fans out. The panel is drawn first in the markup order and placed first here, so it reads before the words. */
  .hm-path{overflow:clip}   /* the drawing below is cut off at the card's rounded edge */
  .hm-path-deco{display:block; position:absolute; z-index:0; right:clamp(-20px,-1vw,-8px); bottom:clamp(-34px,-2vw,-18px); color:var(--c); opacity:.2; pointer-events:none; animation:hm-drift 9s ease-in-out infinite alternate}
  .hm-path-deco svg{display:block; width:clamp(150px,13vw,210px); height:auto}
  .hm-path-hd,.hm-path-panel{position:relative; z-index:1}
  .hm-path-panel{order:1; align-self:stretch; flex-wrap:nowrap; gap:clamp(20px,2.2vw,32px); padding:clamp(24px,2.2vw,34px); border-radius:clamp(26px,2.4vw,34px)}
  .hm-path-panel::before,.hm-path-panel::after{content:""; position:absolute; z-index:-1; top:7%; bottom:7%; left:45%; right:-16px; border-radius:clamp(26px,2.4vw,34px); background:var(--c); opacity:.5}
  .hm-path-panel::after{top:14%; bottom:14%; right:-32px; opacity:.26}
  .hm-path .hm-steps{gap:18px}
}
@media screen and (min-width:900px) and (min-height:700px) and (prefers-reduced-motion:no-preference) and (forced-colors:none){
  @supports (position:sticky){
    .hm-pathways{gap:clamp(28px,3vw,44px)}
    .hm-pathways > li{position:sticky; top:calc(var(--hdr-h,88px) + 20px + var(--i,0) * 22px)}
    .hm-path{box-shadow:0 -18px 44px -30px rgba(52,24,63,.45)}
    .hm-pathways > li:hover .hm-path{transform:none; box-shadow:0 -18px 44px -30px rgba(52,24,63,.45)}   /* no lift while stacked */
  }
}

/* ---- A big white card (local supports, the community) ------------------------------------------------------------- */
.hm-card{background:var(--hm-card); border:1px solid var(--hm-line); border-radius:var(--hm-r); padding:clamp(26px,4vw,56px)}

/* ---- Local supports: a white band the width of the screen, the head on the left and a list of organizations on the right ---- */
.hm-local{padding:clamp(40px,5vw,80px) 0; background:var(--hm-card)}   /* a section, not a card: the white runs from edge to edge and the words keep the page column */
.hm-local-card{display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:clamp(28px,4.4vw,72px); align-items:start}
.hm-local-head{display:flex; flex-direction:column; align-items:flex-start; gap:18px}
.hm-local-head .hm-sub{max-width:34ch; margin:0}
.hm-local-head .hm-btn{margin-top:6px}
.hm-sups{margin:0; padding:0; list-style:none}
.hm-sups li{border-top:1px solid var(--hm-line)}
.hm-sups li:first-child{border-top:0}
.hm-sup{display:grid; grid-template-columns:minmax(0,1fr) auto 42px; grid-template-areas:"main tel go"; align-items:center; gap:6px 24px; margin:0 -16px; padding:18px 16px; border-radius:var(--hm-rs); color:var(--hm-ink); text-decoration:none; transition:background-color .2s}
.hm-sup:hover{background:var(--hm-bg); color:var(--hm-ink)}
.hm-sup:focus-visible{outline:3px solid var(--hm-deep); outline-offset:-3px}
.hm-sup-main{grid-area:main; display:flex; flex-direction:column; gap:4px; min-width:0}
.hm-sup-org{font-family:var(--hm-display); font-size:var(--fs-h3); font-weight:400; line-height:1.3; letter-spacing:-.015em; color:var(--hm-deep); overflow-wrap:anywhere}
.hm-sup-fmt{font-size:var(--fs-small); line-height:1.45; color:var(--hm-soft); overflow-wrap:anywhere}   /* what kind of support it is: a label under the name */
.hm-sup-tel{grid-area:tel; display:inline-flex; align-items:center; gap:7px; font-size:var(--fs-small); font-weight:600; color:var(--hm-plum)}
.hm-sup .hm-go{grid-area:go; width:42px; height:42px}
.hm-sup:hover .hm-go{background:var(--hm-plum); border-color:var(--hm-plum); color:#FFFFFF; transform:translateX(3px)}

/* ---- The Employer Community: the description and the buttons, beside the team's conversation starters ------------------ */
.hm-comm{padding:clamp(24px,3vw,40px) 0 clamp(64px,8vw,120px)}
.hm-comm-card{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,4vw,64px); align-items:stretch}
.hm-comm-copy{display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:18px}
.hm-lede{max-width:52ch; margin:0; font-size:var(--fs-body); line-height:1.65; color:var(--hm-soft); text-wrap:pretty}
.hm-comm .hm-acts{justify-content:flex-start; margin-top:8px}
.hm-comm-talks{display:flex; flex-direction:column; align-items:flex-start; gap:16px; padding:clamp(20px,2.4vw,32px); background:var(--hm-bg); border-radius:var(--hm-rm)}
.hm-talks-h{margin:0; font:700 13px/1.2 'Noto Sans',sans-serif; letter-spacing:.09em; text-transform:uppercase; color:var(--hm-soft)}
.hm-talks{display:flex; flex-direction:column; gap:12px; width:100%; margin:0; padding:0; list-style:none}
.hm-talk{padding:16px 22px 17px; background:var(--t); border-radius:22px 22px 22px 6px; font-family:var(--hm-display); font-size:var(--fs-body); font-weight:400; line-height:1.45; letter-spacing:-.01em; color:var(--hm-deep)}   /* a speech bubble */
.hm-more{display:inline-flex; align-items:center; gap:8px; padding:8px 0; font-weight:600; color:var(--hm-plum); text-underline-offset:4px}
.hm-more:hover{color:var(--hm-plum-d)}
.hm-more svg{flex:none; transition:transform .25s var(--ease)}
.hm-more:hover svg{transform:translateX(3px)}

/* ---- Scroll effects: progressive enhancement, nothing moves unless the browser and the visitor allow it ----------------------
   1. Reveal. A block marked data-rv (assets/js/home.js) fades in and rises 24 px, from a scale of .98, once, as it scrolls into view; blocks side by
      side start 100 ms after one another. The five tiles of "How We Support Employers" (data-rv="strong") come in bigger: 60 px, from a scale of .94,
      70 ms apart. The hidden state only exists while html carries .hm-rv-on, which the script sets itself, so without the script (or with "reduce
      motion", or in print) everything is simply there, in place. Nothing is ever hidden with visibility or display, so keyboard focus always lands on
      a tile that is on the page (the script also shows a block at once when it gets focus).
   2. Drift. Inside each tile a photo, an arch and its icon move a little slower than the page while the row crosses the screen (CSS scroll-driven
      animation: animation-timeline; a browser without it shows the tiles still). Like the reveal it only starts once the script has set html.hm-rv-on,
      so without the script, or with "reduce motion", nothing moves. */
@media (prefers-reduced-motion:no-preference){
  html.hm-rv-on [data-rv]{transition:opacity .75s var(--ease),transform .85s var(--ease); transition-delay:calc(var(--rv-i,0) * 100ms)}
  html.hm-rv-on [data-rv]:not(.is-in){opacity:0; transform:translate3d(0,24px,0) scale(.98)}
  html.hm-rv-on [data-rv="soft"]:not(.is-in){transform:translate3d(0,16px,0)}   /* a big card or a heading: a smaller rise, no change of size */
  html.hm-rv-on [data-rv="strong"]{--rv-step:70ms; transition:opacity .9s var(--ease),transform 1.05s var(--ease); transition-delay:calc(var(--rv-i,0) * var(--rv-step))}
  html.hm-rv-on [data-rv="strong"]:not(.is-in){opacity:0; transform:translate3d(0,60px,0) scale(.94)}
  /* "Conversation starters" (data-rv="line"): the lines slide in from the right one after another */
  html.hm-rv-on [data-rv="line"].is-in{transition-delay:calc(var(--rv-i,0) * 220ms + 150ms)}   /* (the delays only on the way in: a block hidden as the page opens hides at once) */
  html.hm-rv-on [data-rv="line"]:not(.is-in){transform:translate3d(48px,0,0)}
  html.hm-rv-on [data-rv].is-now,html.hm-rv-on [data-rv].is-now .hm-vis::before,html.hm-rv-on [data-rv].is-now .hm-vis svg{transition:none}   /* a block that has the keyboard focus is complete at once */
  /* in a tile the arch and its icon rise into place a moment after the tile itself */
  .hm-vis::before,.hm-vis svg{transition:translate 1s var(--ease) calc(var(--rv-i,0) * var(--rv-step,100ms) + 160ms)}
  html.hm-rv-on [data-rv]:not(.is-in) .hm-vis::before,html.hm-rv-on [data-rv]:not(.is-in) .hm-vis svg{translate:0 22%}
}
@keyframes hm-drift{from{transform:translate3d(0,0,0) rotate(-4deg)} to{transform:translate3d(-14px,-16px,0) rotate(4deg)}}   /* the pale drawing in the corner of a topic card breathes slowly */
@keyframes hm-pan{from{translate:0 -13.8%} to{translate:0 0}}   /* the photo (116% tall) slides down inside its box: 16% of the box, over the first half of the crossing */
@keyframes hm-sink-arch{from{transform:translateX(-50%)} to{transform:translateX(-50%) translateY(26%)}}   /* the arch sinks by 26% of its own height */
@keyframes hm-sink-icon{from{transform:none} to{transform:translateY(55%)}}   /* the icon keeps to the arch */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    html.hm-rv-on .hm-tiles{view-timeline:--hm-row block}   /* the row crossing the window: one timeline for the five tiles, so they drift together */
    html.hm-rv-on .hm-vis-photo img{height:116%; animation:hm-pan linear both; animation-timeline:--hm-row; animation-range:cover 0% cover 55%}
    html.hm-rv-on .hm-vis::before{animation:hm-sink-arch linear both; animation-timeline:--hm-row; animation-range:cover 0% cover 55%}
    html.hm-rv-on .hm-vis svg{animation:hm-sink-icon linear both; animation-timeline:--hm-row; animation-range:cover 0% cover 55%}
  }
}
@media print{
  [data-rv]{opacity:1!important; transform:none!important; transition:none!important}
  .hm-vis img,.hm-vis::before,.hm-vis svg{translate:none!important; animation:none!important; transition:none!important}
}
/* A very long word (a web address in a title, a list of phone numbers) breaks where it must instead of widening the page. */
.hm-path-t,.hm-path-p,.hm-step-t,.hm-sup-org,.hm-sup-fmt,.hm-sup-tel,.hm-talk,.hm-lede,.hm-more,.hm-tile-t,.hm-tile-p{overflow-wrap:anywhere}

/* ---- Narrower screens ------------------------------------------------------------ */
@media (max-width:1099px){
  .hm-local-card{grid-template-columns:minmax(0,1fr)}
  .hm-local-head .hm-sub{max-width:52ch}
}
@media (max-width:899px){
  .hm-comm-card{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .hm-photo{margin-top:-14vw}
  .hm-photo img{aspect-ratio:4/3}
  .hm-photo-fit{margin-top:calc(max(4.5vw,18px) - 31.5vw)}   /* the 4:3 picture is taller for its width: the heads start 31.5vw down; leave 4.5vw (never under 18 px) */
}
@media (max-width:620px){
  .hm-acts{width:100%; flex-direction:column}
  .hm-btn{width:100%; padding:14px 20px}
  /* a local support: the name, then the format, then the phone number */
  .hm-card{padding:24px 20px}
  .hm-sup{grid-template-columns:minmax(0,1fr) 42px; grid-template-areas:"main go" "tel tel"; margin:0 -10px; padding:16px 10px}
  .hm-sup-tel{margin-top:2px}
  .hm-comm-talks{padding:18px 16px}
  .hm-talk{padding:14px 18px 15px}
}
@media (max-width:400px){
  .hm-pill{font-size:13.5px; font-weight:600; letter-spacing:.02em; text-transform:none}   /* sentence case: the longest label fits one line at 320 px */
}
@media (prefers-reduced-motion:reduce){
  .hm-path-deco{animation:none}
  .hm-btn,.hm-tile,.hm-vis,.hm-vis img,.hm-go,.hm-path,.hm-sup,.hm-more svg{transition:none}
  .hm-btn:hover,.hm-tiles li:hover .hm-tile,.hm-pathways > li:hover .hm-path,.hm-pathways > li:hover .hm-go,.hm-sup:hover .hm-go,.hm-more:hover svg{transform:none}
  .hm-tiles li:hover .hm-vis img{scale:none}   /* the photo does not zoom either */
}
