/* The homepage, chalk-led (Kyle, 27 October 2026). src/views/Home.astro. The shared look (corners, buttons, hovers) is in
   look.css; this is the page's own layout, its moving hero (wl.js) and its text animations (home.js). */
.hm { background: var(--chalk); color: var(--ink); }
/* low specificity, so the shared closing card keeps its own chalk heading on navy */
:where(.hm) h2 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.04; --serif-size: clamp(2.5rem, 4.8vw, 4.25rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.hm .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm-arr { width: 15px; height: 15px; flex: none; fill: currentColor; stroke: none; transition: transform .4s ease, color .4s ease, opacity .4s ease; }
.btn:hover .hm-arr { transform: translate(2px, -2px); }
.btn.ghost.dark:hover .hm-arr { color: var(--brick-accent); }
.hm-icopy .btn.ghost:hover .hm-arr, .hm-icopy .btn.solid:hover .hm-arr { color: var(--navy); }
/* the status line: a small trim square, or an outline one when not open */
.hm-st { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--ink); }
.hm-st i, .rs i { width: 7px; height: 7px; flex: none; box-sizing: border-box; background: var(--brick); }
.hm-st i.out, .rs i.out { background: transparent; border: 1px solid var(--navy); }

/* ---------- 1. the hero ---------- */
.hm-hero { position: relative; display: flex; flex-direction: column; }
.hm-hin { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }
.hm-h1 { margin: 0; font-family: var(--serif); font-weight: 400; --serif-size: clamp(2.75rem, min(7.2vw, 12.5vh), 7rem); --serif-ls: -.025em; --serif-ws: -.05em; font-size: var(--serif-fit); line-height: .96; color: var(--navy); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.hm-h1 .ln { display: block; }
.hm-h1 em { font-style: italic; color: var(--brick-word); }
.hm-h1 .stop { color: inherit; }   /* the strapline's stop takes the turn's brick (Kyle, 27 October 2026) */
.hm-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hm-sf { max-width: 34em; font-size: var(--t-body); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
/* the second line cycles: the phrases share one place; without motion only the first shows */
.cyc { display: inline-grid; vertical-align: bottom; }
.cyc > em { grid-area: 1 / 1; white-space: nowrap; }
.cyc > em:not(.c1) { visibility: hidden; }
@media (max-width: 860px) { .cyc { display: grid; } .cyc > em { white-space: normal; } }

/* the hero on chalk, its field behind the words (First light, Veil): left-aligned, the whole first screen */
.hv-field { min-height: calc(100svh - var(--rh, 34px) - var(--hh, 72px) - 1px); }
.hv-field .hm-hin { gap: clamp(2.5rem, 7vh, 6rem); padding-block: clamp(3rem, 13vh, 9.5rem) clamp(2rem, 6vh, 4rem); }
.hv-field .hm-sub { margin-top: auto; }
.wl-field { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wl-field canvas, .wl-field .wl-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wl-field .wl-still { object-fit: cover; object-position: right center; opacity: 0; transition: opacity 1.2s ease; }
.hv-field.no-gl .wl-still { opacity: 1; }
.hv-field.no-gl canvas { display: none; }

/* Window light, after Bridge: a band of slow colour hung from the menu, fading into the page; the words centred under it */
html.wl-top .hm-hero { z-index: 1; }
.wl-band { position: absolute; z-index: 0; left: 0; right: 0; top: calc(-1 * var(--hh, 72px) - 1px); height: calc(var(--hh, 72px) + var(--bandh)); --bandh: clamp(230px, 36vh, 330px); background: linear-gradient(var(--navy), #2C4670 60%, var(--chalk)); }
.hm-hero.gl-on .wl-band { background: var(--chalk); }
.wl-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wl-fade { position: absolute; left: 0; right: 0; bottom: 0; height: min(130px, 45%); background: linear-gradient(rgba(250, 248, 244, 0), var(--chalk)); }
.hv-band { --bandh: clamp(230px, 36vh, 330px); }
.hv-band .hm-hin { align-items: center; text-align: center; gap: clamp(2rem, 4.5vh, 3rem); padding-block: calc(var(--bandh) - clamp(2.25rem, 6vh, 3.75rem)) clamp(3rem, 8vh, 5.5rem); }
.hv-band .cyc, .hv-screen .cyc { justify-items: center; }
.hv-band .hm-sub, .hv-screen .hm-sub { flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.75rem; }
.hv-band .hm-sf, .hv-screen .hm-sf { max-width: 31em; }

/* Window light, after Sequence: the whole first screen is the field, on navy */
.hv-screen { min-height: calc(100svh - var(--rh, 34px) - var(--hh, 72px) - 1px); color: var(--chalk); }
.wl-screen { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; top: calc(-1 * var(--hh, 72px) - 1px); background: var(--navy); }
.wl-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hv-screen .hm-hin { align-items: center; justify-content: center; text-align: center; gap: clamp(2rem, 4.5vh, 3rem); padding-block: 3rem 4.5rem; }
.hv-screen .hm-h1 { color: var(--chalk); }
.hv-screen .hm-h1 em { color: var(--brick-accent); }
.hv-screen .hm-sf { color: var(--chalk); }
.hv-screen .btn.solid { background: var(--chalk); border-color: var(--chalk); color: var(--navy); }
.hv-screen .btn.solid:hover { background: transparent; color: var(--chalk); }

/* the menu over the band: see-through, chalk type and the reversed logo, until you scroll past or open a menu */
html.wl-top .head { transition: transform .5s var(--ease), background-color .45s ease, border-color .45s ease; }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) { background: transparent; border-bottom-color: transparent; }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) :is(.mnav > a, .dd > button) { color: var(--chalk); }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) :is(.mnav > a, .dd > button):hover { color: var(--brick-accent); }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) .dd.open > button { color: var(--brick-accent); }   /* the bars stay as they are while a menu is open */
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) :is(.portal, .wrap > .audsw) { color: var(--chalk); border-color: var(--chalk); }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) :is(.portal, .wrap > .audsw) svg { color: var(--brick-accent); }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) :is(.portal, .wrap > .audsw):hover { background: var(--navy-deep); border-color: var(--chalk); color: var(--chalk); }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) .portal:hover svg { color: var(--brick-accent); }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) .mbtn { border-color: #8E9BB3; }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) .mbtn i { background: var(--chalk); }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) .logo .lg-n { opacity: 0; }
html.wl-top .head:not(.solid):not(:has(.mbtn[aria-expanded="true"])) .logo .lg-r { opacity: 1; }
html.wl-top .head .dd > button svg { color: inherit; }
/* over the moving field the header is navy, not see-through, so the logo never sits on a light shape and an open menu
   hangs from a solid bar; the navy runs on a little below it and fades, so the field comes in softly rather than at a
   hard edge (Kyle, 6 November 2026: "the nav bar when I'm at the top of the homepage is a problem") */
/* wl.js sets html.wl-top .head.on-field while the header is over the field, and --veil, how much of the fade fits above the
   field's foot (4.5rem, down to nothing as the foot comes up), so it is the same whether the header is at rest or has
   come back down as you scroll up: never a hard-edged navy block over the field (Kyle, 6 November 2026) */
html.wl-top .head.on-field::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(100% + var(--veil, 4.5rem)); z-index: -1; pointer-events: none;
  background: linear-gradient(var(--navy), var(--navy)) top / 100% calc(100% - var(--veil, 4.5rem)) no-repeat, linear-gradient(to bottom, var(--navy), rgb(23 42 74 / .6) 40%, rgb(23 42 74 / 0)) bottom / 100% 4.5rem no-repeat; }

/* ---------- the text animation, after Joule (public/assets/home.js) ----------
   Each character rises 60% of its height as it fades in, 15ms apart in the hero, 18ms further down.
   The rest rises and fades in; the rules between sections draw in from the left. Only under html.hm-anim. */
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.hm-anim .hm-hero .ch, .hm-anim .hm-sp .ch { opacity: 0; transform: translateY(60%); }
.hm-anim .hm-hero.go .ln[data-split] .ch, .hm-anim .cyc > em.go .ch, .hm-anim .hm-sp.go .ch {
  opacity: 1; transform: none; transition: opacity .75s cubic-bezier(.25,.46,.45,.94) calc(var(--ci, 0) * 15ms), transform .75s cubic-bezier(.25,.46,.45,.94) calc(var(--ci, 0) * 15ms); }
.hm-anim .hm-sp.go .ch { transition-duration: .9s; transition-delay: calc(var(--ci, 0) * 18ms); }
.hm-anim .cyc > em { visibility: visible; }
.hm-anim .cyc > em.out .ch { opacity: 0; transform: translateY(-45%); transition: opacity .45s cubic-bezier(.55,.06,.68,.19) calc(var(--ci, 0) * 12ms), transform .55s cubic-bezier(.55,.06,.68,.19) calc(var(--ci, 0) * 12ms); }
.hm-anim .cyc > em.snap .ch { transition: none !important; }
/* the line and the button rise out of a soft blur, as Sequence's do */
.hm-anim .hm-hero .hm-rise { opacity: 0; transform: translateY(1.5em); filter: blur(6px); }
.hm-anim .hm-hero.go .hm-rise { opacity: 1; transform: none; filter: blur(0); transition: opacity 1s cubic-bezier(.215,.61,.355,1) .6s, transform 1s cubic-bezier(.215,.61,.355,1) .6s, filter 1s cubic-bezier(.215,.61,.355,1) .6s; }
.hm-anim .hm .rvf { opacity: 0; transform: translateY(2em); }
/* once in, a revealed card keeps easing its colours on hover (Kyle, 29 October 2026: the Why Seneca boxes took their outline
   at once, because this transition had replaced the card's own) */
.hm-anim .hm .rvf.go { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.215,.61,.355,1) var(--d, 0s), transform .9s cubic-bezier(.215,.61,.355,1) var(--d, 0s), border-color var(--fill), background-color var(--fill), color var(--fill); }
/* behind the gate the menu over the field waits, hidden; as the gate leaves it fades in once, after the words have begun
   (it used to show through the fading gate, vanish, then fade back: Kyle, 27 October 2026) */
/* the adviser's move (a view transition, vt-gate-out) holds the header back too, so the gate fades off and the logo and menu
   fade in after it exactly as they do for the investor (Kyle, 9 November 2026: "have it match the investor one") */
.hm-anim.wl-top:not(.gate-arrive):not(.aud-set):has(#gate) .head, .hm-anim.wl-top:is(.gate-cover, .vt-gate-out):not(.gate-arrive) .head { opacity: 0; }
.hm-anim.wl-top .head { transition: transform .5s var(--ease), background-color .45s ease, border-color .45s ease, opacity .8s ease .25s; }
/* the rules under the sections */
.hm-line { position: relative; }
.hm-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); transform-origin: left center; }
.hm-anim .hm-line::after { transform: scaleX(0); }
.hm-anim .hm-line.go::after, .hm-anim .hm-line.drawn::after { transform: none; transition: transform 1.6s cubic-bezier(.215,.61,.355,1) .1s; }

/* ---------- 2. the sentence about Seneca, its words filling in as you scroll to it (after Artificial Societies) ----------
   Left aligned. Its last line, "We stick to what we know.", reads as one more line of it, the same size; then it travels
   down with the page on its own (held on screen in its track) and comes to rest above the four ways to invest, where it
   becomes their heading (Kyle, 27 and 28 October 2026). */
.hm-say { --say: clamp(2.125rem, 4.4vw, 4rem); }
/* only where the line travels across the page (a and e, kept at /alt/): it must never widen the page (Kyle, 6 November
   2026: a sideways scroll bar). The homepage's statement (v) has no travelling line, so it is not clipped (11 November 2026). */
.hm-say:is([data-say="a"], [data-say="e"]) { overflow-x: clip; }
/* a and e: a longer sentence, so a size down and the full measure, to keep it to three lines on a laptop (6 November 2026) */
.hm-say:is([data-say="a"], [data-say="e"]) { --say: clamp(2rem, 3.5vw, 3.375rem); }
.hm-say:is([data-say="a"], [data-say="e"]) .hm-sline { max-width: 24em; }   /* the line starts out moved across to the end of the sentence: it must never widen the page (Kyle, 6 November 2026: a sideways scroll bar) */
.hm-say .hm-know { width: fit-content; max-width: 100%; }
.hm-say > .wrap { padding-block: clamp(3rem, 8vw, 6.5rem) 0; }
.hm-sline { margin: 0; max-width: 19em; font-family: var(--serif); font-weight: 400; --serif-size: var(--say); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; color: var(--navy); text-align: left; text-wrap: pretty; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.hm-track { position: relative; height: clamp(14rem, 40vh, 24rem); }
.hm-tw { height: 100%; }
.hm-know { position: sticky; top: calc(42vh - .55em); margin: 0; text-align: left; font-family: var(--serif); font-weight: 400; --serif-size: var(--say); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; color: var(--brick-word); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
:where(.hm) .hm-know { font-size: var(--serif-fit); color: var(--brick-word); }
.hm-know em { font-style: italic; }
.hm-fill .hm-sline .w { color: var(--ink-quiet); transition: color .5s ease; }
.hm-fill .hm-sline .w.on { color: var(--navy); }
.hm-fill .hm-know .w { color: var(--ink-quiet); transition: color .6s ease; }
.hm-fill .hm-know .w.on { color: var(--brick-word); }

/* ---------- 3. the range: a list you read down, the panel beside it changing to the one you are on ----------
   Under the heading that came down with the page, left aligned like it. The one you are on opens a little to show where
   it stands (Kyle, 28 October 2026); one is always open, so the list keeps its height as you move down it. */
/* What we offer lands on the range's heading, at rest above the list, rather than on the list (Kyle, 3 November 2026: it
   went "too far down"): its target is this mark, the heading's height above the range */
/* placed by shifting it, not absolutely: the range section is not positioned, so an absolute anchor was measured from the
   page's own top and the button scrolled nowhere (Kyle, 5 November 2026: "doesn't actually do anything") */
.hm-rng > .hm-anchor { position: relative; display: block; height: 0; top: calc(-1.1 * clamp(2.125rem, 4.4vw, 4rem) - .5rem); pointer-events: none; }
@media (max-width: 700px) { .hm-rng > .hm-anchor { top: calc(-2.2 * clamp(2.125rem, 4.4vw, 4rem) - .5rem); } }   /* the heading takes two lines on a phone */
.hm-rng > .wrap { display: flex; flex-direction: column; align-items: stretch; gap: clamp(1.75rem, 3.2vw, 2.75rem); padding-block: clamp(1rem, 2vw, 1.5rem) clamp(3.5rem, 6.5vw, 6rem); }
.hm-rgrid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start; }   /* the list starts where the picture does, so the heading and its line sit on the list, not floating above it (Kyle, 28 October 2026) */
.hm-rlist { min-width: 0; }
.hm-rl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.hm-rl > li { border-bottom: 1px solid var(--rule); }
/* ---------- the range: one system for all four (Kyle, 11 November 2026: "a lot of padding, it feels clunky in how it moves,
   the text is inconsistent across products") ----------
   Every row is the same: its number, its name in the serif, where it stands on the right, and under the name one line on
   what it is and who it is for. Nothing opens or closes, so every row keeps its height and nothing moves as you go down
   the list: the one you are on is marked by a brick line down the list's left edge that glides to it, its name in navy
   and its arrow, while the others' names step back; the picture beside the list changes to it. */
.hm-rlist { position: relative; }
/* the statuses in a column of their own, left aligned, so their squares line up down the list */
.hm-ri { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr) 11.5rem 18px; grid-template-areas: "n t s a";
  align-items: baseline; column-gap: 1rem; row-gap: .375rem; padding: clamp(1.125rem, 2.1vw, 1.875rem) 0 clamp(1.125rem, 2.1vw, 1.875rem) 1.125rem; color: var(--navy); text-decoration: none; }
div.hm-ri { cursor: default; }
.hm-ri .rn { grid-area: n; font: 600 .75rem/1 var(--sans); letter-spacing: .12em; font-stretch: 80%; font-variant-numeric: tabular-nums; color: var(--taupe); transition: color .5s ease; }
.hm-ri .rt { grid-area: t; min-width: 0; font-family: var(--serif); font-weight: 400; --serif-size: clamp(1.625rem, 2.3vw, 2.125rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit);
  line-height: 1.08; color: var(--ink-quiet); white-space: nowrap; overflow: hidden; text-overflow: clip; transition: color .5s ease; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
/* one size for all four names, the size at which the longest ("Enterprise Investment Scheme", about 13.6 of its own widths)
   fits its row beside where it stands; between 24 and 34px */
.hm-rl > li { container-type: inline-size; }
.hm-ri .rt { font-size: clamp(1.5rem, calc((100cqi - 1.125rem - 2rem - 3rem - 18px - 11.5rem) / 13.6), 2.125rem); }
/* where the list is too narrow for the name and its status side by side, where it stands goes under its line */
@container (max-width: 660px) {
  .hm-ri { grid-template-columns: 2rem minmax(0, 1fr) 18px; grid-template-areas: "n t a" ". s s"; }
  .hm-ri .rt { font-size: clamp(1.5rem, calc((100cqi - 1.125rem - 2rem - 2rem - 18px) / 13.6), 2.125rem); }
}
.hm-ri .rsi { grid-area: s; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; line-height: 1.3; color: var(--ink-soft); white-space: nowrap; }
.hm-ri .rsi i { width: 7px; height: 7px; flex: none; box-sizing: border-box; background: var(--brick); }
.hm-ri .rsi i.out { background: transparent; border: 1px solid var(--navy); }
.hm-ri .hm-go { grid-area: a; align-self: center; width: 18px; height: 18px; color: var(--brick-word); opacity: 0; transform: translate(-6px, 6px); transition: opacity .45s ease, transform .6s var(--ease); }
.hm-ri .rln { grid-area: auto; margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.hm-rl > li.on .rt, .hm-rl > li:focus-within .rt { color: var(--navy); }
.hm-rl > li.on .rn { color: var(--brick-word); }
.hm-rl > li.on a.hm-ri .hm-go { opacity: 1; transform: none; }
/* the brick line: the height of the row you are on, gliding to it (home.js sets --y and --h) */
.hm-rbar { position: absolute; left: 0; top: 0; width: 2px; height: var(--h, 0px); background: var(--brick); transform: translateY(var(--y, 0px)); transition: transform .6s var(--ease), height .6s var(--ease); pointer-events: none; z-index: 1; }
.hm-rbar:not(.set) { transition: none; }
@media (prefers-reduced-motion: reduce) { .hm-rbar { transition: none; } }
/* the picture runs from the list's top line to its bottom one (Kyle, 4 November 2026): size containment keeps it out of the
   row's height, so the list sets the height and the picture stretches to it */
.hm-panes { display: grid; min-width: 0; align-self: stretch; contain: size; }
.hm-pn { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.hm-pn.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.hm-pn figure { flex: 1 1 0; margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--stone); }
.hm-pn figure img, .hm-pn figure picture { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.22,1,.36,1); }
.hm-pn.on figure img { transform: none; }

/* ---------- 4. the featured service: navy inside the page margins that widens to the edges of the screen as it comes up
   (home.js sets --bl, how far it reaches past the margins, and --br, its corners: square once it meets the edges) ---------- */
/* the same space under the navy as over it, the people's own padding making up the rest (Kyle, 4 November 2026) */
.hm-iht > .wrap { padding-block: clamp(1rem, 3vw, 2rem); }
.hm-ibox { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; padding: clamp(3rem, 8vw, 7.5rem) var(--pin, clamp(2rem, 5vw, 4.5rem)); color: var(--chalk); }   /* taller, as the one featured service (Kyle, 4 November 2026: "It feels short to me") */
.hm-ibox::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(-1 * var(--bl, 0px)); right: calc(-1 * var(--bl, 0px)); border-radius: var(--br, 8px); background: var(--navy); }
.hm-icopy { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.hm-icopy .eye { color: var(--brick-accent); }
.hm-iht h2 { color: var(--chalk); --serif-size: clamp(2.5rem, 4vw, 3.75rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); }
.hm-iht h2 em { color: var(--brick-accent); }
.hm-ilede { max-width: 32em; font-size: var(--t-body); line-height: 1.55; color: var(--sand); }
.hm-ilede b { font-weight: 600; color: var(--chalk); }
.hm-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; font-size: var(--t-body); }
.hm-msgs li { display: flex; gap: .875rem; align-items: center; }
.hm-msgs li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--brick-accent); }
.hm-icopy .ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hm-icopy .btn.ghost { border-color: var(--chalk); }
.hm-icopy .btn.ghost:hover { background: var(--chalk); border-color: var(--chalk); color: var(--navy); }
.hm-iph { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; background: var(--navy-deep); }
.hm-iph img, .hm-iph picture { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 5. the people: the words, the portrait and the names in one row (after Sequence's speakers) ----------
   The names read down on the right; the one you are on is navy with its role under it, and its portrait beside it.
   Richard first (Kyle, 27 October 2026). */
.hm-pgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start; padding-block: clamp(4.5rem, 8vw, 7.5rem) clamp(4.5rem, 8vw, 7rem); }   /* the heading, the portrait and the names share one top line, at the same distance under the navy as the range sits over it (Kyle, 4 November 2026: "a big gap above it") */
.hm-phead { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.hm-phead h2 { --serif-size: clamp(2.5rem, 4.4vw, 4rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); text-wrap: balance; }
.hm-phead h2 em, .hm-nhead h2 em { font-style: italic; color: var(--brick-word); }
.hm-pcopy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hm-pcopy p { max-width: 30em; font-size: var(--t-body); line-height: 1.6; }
.hm-ppic { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; background: var(--stone); }
.hm-ppic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform 1.4s cubic-bezier(.22,1,.36,1); }
.hm-ppic img.on { opacity: 1; transform: none; }
.hm-names { list-style: none; margin: 0; padding: 0; text-align: right; }
.hm-names a { display: flex; flex-direction: column; align-items: flex-end; padding: .25rem 0; color: var(--navy); text-decoration: none; }
.hm-names .qn { font-family: var(--serif); font-weight: 400; --serif-size: clamp(1.875rem, 2.9vw, 2.625rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; color: var(--ink-quiet); white-space: nowrap; transition: color .45s ease; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
/* each role keeps its room whether it shows or not, so moving across the names never changes the page's height (Kyle, 27 October 2026) */
.hm-names .qr { display: block; margin-top: .125rem; font-size: .875rem; line-height: 1.35; color: var(--ink); opacity: 0; transform: translateY(-3px); transition: opacity .45s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.hm-names li.on .qn { color: var(--navy); }
.hm-names li.on .qr { opacity: 1; transform: none; }

/* ---------- 6. the latest from our experts: a quiet card; on hover its ring darkens, its ground lifts towards white,
   the title takes the trim and the arrow moves, all fading over 0.45s ---------- */
.hm-ins > .wrap { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(4.5rem, 8vw, 6.5rem); }
.hm-nhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.hm-post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: 1.25rem; border: 1px solid var(--rule); border-radius: var(--r-card); color: var(--navy); text-decoration: none; background-color: var(--chalk); transition: border-color .45s ease, background-color .45s ease; }
.hm-post figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-icon); overflow: hidden; background: var(--stone); }
.hm-post figure img, .hm-post figure picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-pb { display: flex; flex-direction: column; align-items: flex-start; gap: 1.125rem; padding-right: 1.5rem; min-width: 0; }
.hm-pb .eye { font-size: .875rem; color: var(--brick-word); }
.hm-pt { font-family: var(--serif); font-weight: 400; --serif-size: clamp(2rem, 3.2vw, 2.75rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; text-wrap: balance; color: var(--navy); transition: color .45s ease; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.hm-by { font-size: .875rem; color: var(--ink); }
.hm-read { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; font-weight: 500; font-size: 1rem; color: var(--navy); transition: color .45s ease; }
.hm-read svg { width: 16px; height: 16px; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.hm-post:hover, .hm-post:focus-visible { border-color: var(--navy); background-color: #FDFCF9; }
.hm-post:hover .hm-pt, .hm-post:focus-visible .hm-pt { color: var(--brick-word); }
.hm-post:hover .hm-read svg, .hm-post:focus-visible .hm-read svg { transform: translateX(4px); }


@media (max-width: 1100px) {
  .hm-ibox { grid-template-columns: 1fr; padding-inline: var(--pin, 16px); }
  .hm-iph { aspect-ratio: 16 / 9; }   /* stacked under the words, a wide picture rather than one that fills a tablet's screen (Kyle, 4 November 2026) */
  .hm-pgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm-phead { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* the range and the people read as plain lists on a phone: each product shows its line and status, no panel */
  .hm-rgrid { grid-template-columns: 1fr; }
  .hm-panes { display: none; }
  .hm-ri { grid-template-columns: 2.25rem minmax(0, 1fr) 18px; grid-template-areas: "n t a" ". s s"; padding-left: 0; row-gap: .5rem; }
  .hm-ri .rt { color: var(--navy); white-space: normal; }
  .hm-ri .hm-go { opacity: 1; transform: none; }
  .hm-rbar { display: none; }
  .hm-pgrid { grid-template-columns: 1fr; }
  .hm-ppic { display: none; }
  .hm-names { text-align: left; border-top: 1px solid var(--rule); }
  .hm-names a { align-items: flex-start; padding: .875rem 0; border-bottom: 1px solid var(--rule); }
  .hm-names .qn { color: var(--navy); --serif-size: 2rem; font-size: var(--serif-fit); white-space: normal; }
  .hm-names .qr { opacity: 1; transform: none; }
  .hm-ri .rt { white-space: normal; }
  .hm-track { height: clamp(11rem, 30vh, 16rem); }
}
@media (max-width: 860px) {
  .hm-post { grid-template-columns: 1fr; padding: 1rem; gap: 1.5rem; }
  .hm-pb { padding: 0 .5rem .5rem; }
  .hv-field .hm-sub { justify-content: flex-start; }
}
@media (hover: none) { .hm-post:hover { background: transparent; } }

/* ---- arriving on a page (Kyle, 30 October 2026: "I'm still seeing all content clumped together for a moment before the
   intro animation", and on a product page the title showing, vanishing, then animating in) ----
   The words that arrive letter by letter are split into letters by home.js, which runs once the page has been read; until
   then they were plain text, so they showed for a moment (the homepage's cycling phrases all on top of one another), and
   vanished when they were split. Now, while the intro is to run (html.hm-anim), they are held unseen until their own
   arrival begins: the hero's lines and phrases until the hero starts (.go), any other split headline until it has been
   split (.hm-sp). Without the script the class lifts after 2.5 seconds and everything is simply there. */
.hm-anim .hm-hero:not(.go) :is(.ln[data-split], .cyc, .cyc > em) { visibility: hidden; }
.hm-anim .hm [data-split]:not(.hm-sp):not(.hm-hero [data-split]) { visibility: hidden; }

/* ---- pause (Kyle, 2 November 2026): a small square button in the hero's bottom corner, on the page's right edge ----
   It stops the headline's cycling line and the moving field, and starts them again. Chalk icon, a navy-line edge; on hover
   it fills a shade darker than the navy, as an outlined button on navy does (brand rules section 6). The icon swaps by
   fading and growing from a quarter size, over 0.3s. */
.hm-ctl { position: absolute; inset-inline: 0; bottom: clamp(1rem, 3svh, 1.75rem); z-index: 3; display: flex; justify-content: flex-end; pointer-events: none; }
.hm-pause { pointer-events: auto; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--chalk); background-color: transparent; border: 1px solid var(--navy-line); border-radius: var(--r-button); cursor: pointer; transition: background-color var(--fill), border-color var(--fill); }
.hm-pause[hidden] { display: none; }
.hm-pause svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: currentColor; transition: opacity .3s cubic-bezier(.2, 0, 0, 1), transform .3s cubic-bezier(.2, 0, 0, 1); }
.hm-pause .ic-play, .hm-pause[aria-pressed="true"] .ic-pause { opacity: 0; transform: scale(.25); }
.hm-pause[aria-pressed="true"] .ic-play { opacity: 1; transform: none; }
@media (hover: hover) { .hm-pause:hover { background-color: var(--navy-deep); border-color: var(--chalk); } }

/* ---------- the opening screen on a phone (Kyle, 2 November 2026: "the text is so small right now on a big display. We can
   arrange this a lot more intelligently"). The same screen, the field, the moving line, the sentence and the button,
   arranged for a tall narrow screen rather than shrunk from the desktop's centred column: the headline set left and as
   wide as the screen allows (its size follows the screen's width, held down on short screens so it all fits), and the
   three set as one group at the foot of the screen, where a thumb reaches, with the field open above them (of three
   arrangements tried, words at the top, in the middle and at the foot, the foot read as one piece); the button runs the width beside the
   pause, the two the same height on one line. ---------- */
@media (max-width: 700px) {
  .hv-screen .hm-hin { align-items: stretch; justify-content: flex-end; text-align: left; gap: 2.5rem; padding-block: clamp(2rem, 8svh, 4.5rem) 1.25rem; }
  .hv-screen .cyc { justify-items: start; }
  .hv-screen .hm-h1 { --serif-size: clamp(2.5rem, min(14vw, 8.2svh), 4.5rem); font-size: var(--serif-fit); line-height: .96; }
  .hv-screen .hm-sub { align-items: stretch; gap: 1.5rem; }
  .hv-screen .hm-sf { max-width: 21em; font-size: var(--t-body); line-height: 1.5; text-align: left; }
  .hv-screen .hm-sub .btn { justify-content: center; height: 52px; margin-right: calc(52px + .625rem); font-size: 1rem; }
  .hv-screen ~ .hm-ctl, .hv-screen .hm-ctl { bottom: calc(1.25rem + 100lvh - 100svh + var(--under)); }
  /* the field runs to the very bottom of the screen, under Safari's see-through toolbar (Kyle, 1 December 2026): the
     screen is as tall as the large viewport (toolbar included), and the words and buttons are lifted by the toolbar's
     height (the large viewport less the small), so they still sit just above it. Where there is no toolbar the two are
     the same, and nothing moves. --under: on an iPhone the large viewport still stops short of the screen's foot (the home
     bar under Safari's floating bar, Kyle's screenshot of 1 December 2026), so the field runs on past it by the home bar's
     height and a margin, and the words and buttons are lifted by the same, so they stay where they were */
  :root { --under: calc(env(safe-area-inset-bottom, 0px) + 2rem); }
  .hv-screen { min-height: calc(100lvh + var(--under) - var(--rh, 34px) - var(--hh, 72px) - 1px); }
  .hv-screen .hm-hin { padding-bottom: calc(1.25rem + 100lvh - 100svh + var(--under)); }
  .hv-screen .hm-pause { width: 52px; height: 52px; }
  .hv-screen .hm-pause svg { width: 15px; height: 15px; }
}
/* with no pause (reduced motion, or the field not running) the button takes the whole width */
@media (max-width: 700px) {
  .hv-screen:not(:has(.hm-pause:not([hidden]))) .hm-sub .btn { margin-right: 0; }
}

/* ---------- "We stick to what we know.": how it becomes the range's heading (Kyle, 3 November 2026: "it feels a bit
   basic ... thinking a little more creatively"). A, gathered, is the homepage's own (chosen 3 November 2026); C and D are
   kept at /alt/ ----------
   home.js drives each with the scroll (--p, 0 to 1); with reduced motion each shows its end state. */

/* a. Gathered: the line starts as the last sentence of the paragraph. Once the paragraph has filled in, its words
   dissolve one by one in reading order while the line holds on screen, then it glides down and across to rest above the
   list, turning from navy to brick as it goes (home.js sets --t, 0 navy to 1 brick, with the scroll) */
.hm-ghost { display: inline-block; visibility: hidden; font-style: italic; white-space: nowrap; }
.hm-say[data-say="a"] .hm-track { height: auto; padding-top: clamp(6rem, 18vh, 10rem); }
.hm-say[data-say="a"] .hm-know { position: relative; top: auto; color: var(--navy); will-change: transform; }   /* navy throughout: it no longer turns brick (Kyle, 6 November 2026: "drop the colour changing effect") */
.hm-say[data-say="a"] .hm-sline .w { will-change: opacity, filter, transform; }
.hm-say[data-say="a"] .hm-sline .w.gone { visibility: hidden; }
.hm-fill .hm-say[data-say="a"] .hm-know .w { color: inherit; }

/* e. The full stop lands: A's journey, but the line stays navy, and once it rests a brick square drops into place as its
   full stop, the square of the full stop in the logo (Kyle, 6 November 2026). The real full stop stays in the text, unseen */
.hm-say[data-say="e"] .hm-track { height: auto; padding-top: clamp(6rem, 18vh, 10rem); }
.hm-say[data-say="e"] .hm-know { position: relative; top: auto; color: var(--navy); will-change: transform; }
.hm-say[data-say="e"] .hm-sline .w { will-change: opacity, filter, transform; }
.hm-say[data-say="e"] .hm-sline .w.gone { visibility: hidden; }
.hm-fill .hm-say[data-say="e"] .hm-know .w { color: inherit; }
/* a and e: the sentence is navy from the start, rather than filling in from stone as you scroll (Kyle, 6 November 2026) */
.hm-fill .hm-say:is([data-say="a"], [data-say="e"]) .hm-sline .w { color: var(--navy); transition: none; }
.hm-dot { position: relative; color: transparent; }
.hm-dot::after { content: ""; position: absolute; left: 0; bottom: .28em; width: .15em; height: .15em; background: var(--brick); opacity: 0; transform: translateY(-1.1em); transition: transform .3s cubic-bezier(.4, 0, 1, 1), opacity .2s ease; }
.hm-know.landed .hm-dot::after { opacity: 1; transform: none; transition: transform .55s cubic-bezier(.3, 1.45, .55, 1) .08s, opacity .15s ease .08s; }
@media (prefers-reduced-motion: reduce) { .hm-dot::after { transition: none !important; } }

/* c. The line writes it: the heading waits pale above the list; a brick line runs out under it as you scroll, a square
   at its tip like the full stop in the logo, colouring each word as it passes. It becomes the list's top rule, the square
   resting at its end, and the four rows and the picture draw in after it (home.js sets --w, how far it has run) */
.hm-say[data-say="c"] .hm-track { height: auto; padding-top: clamp(3rem, 9vh, 5rem); }
.hm-say[data-say="c"] .hm-know { position: relative; top: auto; }
.hm-say[data-say="c"] .hm-know .w { color: var(--ink-quiet); transition: color .45s ease; }
.hm-say[data-say="c"] .hm-know .w.on { color: var(--brick-word); }
.hm-rng[data-say="c"] .hm-rlist { position: relative; }
.hm-rng[data-say="c"] .hm-rl { border-top-color: transparent; }
.hm-wline { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none; }
.hm-wline::before { content: ""; position: absolute; inset: 0; background: var(--brick-word); transform-origin: left center; transform: scaleX(var(--w, 1)); }
.hm-wline::after { content: ""; position: absolute; top: -3px; left: max(8px, calc(var(--w, 1) * 100%)); width: 8px; height: 8px; margin-left: -8px; background: var(--brick-word); opacity: var(--n, 1); }
.hm-rng[data-say="c"] .hm-rl > li { opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * .75rem)); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.hm-rng[data-say="c"] .hm-panes { opacity: var(--po, 1); transform: translateY(calc((1 - var(--po, 1)) * 1rem)); transition: opacity .6s ease, transform .8s cubic-bezier(.22,1,.36,1); }

/* d. The turn to navy: the line comes down as it does now; as it lands, the navy of the featured service below rises up
   behind it, so the range and the Inheritance Tax Service read as one navy chapter (the service's box is already the
   width of the screen here, with no chalk between them). Each part turns to its navy colours as the navy reaches it,
   never before (home.js adds .on-navy): the heading to the light brick, the names to chalk and taupe */
.hm-rng[data-say="d"] { isolation: isolate; }
.hm-navy { position: absolute; left: 0; right: 0; top: calc(-1.1 * clamp(2.125rem, 4.4vw, 4rem) - clamp(2.5rem, 6vh, 4rem)); bottom: 0; z-index: -1; background: var(--navy); clip-path: inset(calc((1 - var(--p, 1)) * 100%) 0 0 0); }
.hm-rng[data-say="d"] ~ .hm-iht { background: var(--navy); }
.hm-rng[data-say="d"] ~ .hm-iht .hm-ibox::before { display: none; }
.hm-say[data-say="d"] .hm-know { z-index: 1; }
.hm-say[data-say="d"] .hm-know .w { transition: color .5s ease; }
.hm-say[data-say="d"] .hm-know.on-navy .w { color: var(--brick-accent); }
.hm-rng[data-say="d"] :is(.hm-rl, .hm-rl > li, .hm-ri .rt, .hm-ri .rn, .hm-ri .rsi, .hm-ri .rln, .pl, .hm-st) { transition: color .5s ease, border-color .5s ease; }
.hm-rng[data-say="d"] .hm-rl.on-navy { border-top-color: var(--navy-line); }
.hm-rng[data-say="d"] .hm-rl > li.on-navy { border-bottom-color: var(--navy-line); }
.hm-rng[data-say="d"] li.on-navy .hm-ri .rt { color: var(--taupe); }
.hm-rng[data-say="d"] .hm-rl > li.on-navy.on .rt { color: var(--chalk); }
.hm-rng[data-say="d"] li.on-navy .hm-ri .rn { color: var(--brick-accent); }
.hm-rng[data-say="d"] li.on-navy .hm-ri :is(.rsi, .rln), .hm-rng[data-say="d"] .hm-panes.on-navy :is(.pl, .hm-st) { color: var(--sand); }
.hm-rng[data-say="d"] :is(li.on-navy .rs, .hm-panes.on-navy .hm-st) i.out { border-color: var(--sand); }
.hm-rng[data-say="d"] :is(li.on-navy .rs, .hm-panes.on-navy .hm-st) i:not(.out) { background: var(--brick-accent); }
@media (max-width: 900px) {
  .hm-rng[data-say="d"] li.on-navy .hm-ri .rt { color: var(--chalk); }
}
@media (max-width: 640px) {
  .hm-iph { aspect-ratio: 4 / 3; }   /* on a phone the stacked picture keeps its 4:3 */
}

/* ---------- on a phone: whole lines, not letters (Kyle, 11 November 2026: "text animations are messy on mobile. They
   show for a second, animate a bit then jolt up into place") ----------
   A headline rising letter by letter moves 60 or more pieces at once, each in its own layer, and phone Safari redraws
   them with a visible jump as they land. On a phone each line rises as one piece instead, a short way (14px), and nothing
   blurs; the order and the timing of the page are kept. The cycling phrase leaves and arrives the same way. */
@media (max-width: 900px), (hover: none) {
  .hm-anim :is(.hm-hero, .hm-sp, .cyc > em) .ch,
  .hm-anim :is(.hm-hero.go, .hm-sp.go) .ch,
  .hm-anim .cyc > em:is(.go, .out, .snap) .ch { opacity: 1 !important; transform: none !important; transition: none !important; }

  .hm-anim .hm-hero .ln[data-split] { opacity: 0; transform: translateY(14px); }
  .hm-anim .hm-hero.go .ln[data-split] { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.215,.61,.355,1), transform .8s cubic-bezier(.215,.61,.355,1); }
  .hm-anim .hm-hero.go .ln[data-split]:nth-child(2) { transition-delay: .12s; }
  .hm-anim .hm-hero.go .ln[data-split]:nth-child(3) { transition-delay: .24s; }
  .hm-anim .hm-hero.go .ln[data-split]:nth-child(n+4) { transition-delay: .36s; }

  .hm-anim .cyc > em { opacity: 0; transform: translateY(14px); }
  .hm-anim .cyc > em.go { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.215,.61,.355,1) .2s, transform .8s cubic-bezier(.215,.61,.355,1) .2s; }
  .hm-anim .cyc > em.out { opacity: 0; transform: translateY(-10px); transition: opacity .4s ease, transform .45s ease; }
  .hm-anim .cyc > em.snap { transition: none !important; }

  .hm-anim .hm-sp { opacity: 0; transform: translateY(14px); }
  .hm-anim .hm-sp.go { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.215,.61,.355,1), transform .8s cubic-bezier(.215,.61,.355,1); }

  .hm-anim .hm-hero .hm-rise { transform: translateY(14px); filter: none; }
  .hm-anim .hm-hero.go .hm-rise { filter: none; transition: opacity .8s cubic-bezier(.215,.61,.355,1) .45s, transform .8s cubic-bezier(.215,.61,.355,1) .45s; }
  .hm-anim .hm .rvf { transform: translateY(14px); }
}

/* the service's line on its picture (18 November 2026): a solid navy panel in the bottom left corner, chalk words, so the
   list keeps just the name and where it stands */
.hm-pn figure { position: relative; }
.hm-pcap { position: absolute; left: 1rem; bottom: 1rem; width: fit-content; max-width: min(23rem, calc(100% - 2rem)); margin: 0; padding: .875rem 1.125rem; background: var(--navy); color: var(--chalk); border-radius: var(--r-card); font-size: 1.0625rem; line-height: 1.45; text-wrap: balance; }

/* the hero's button: "What we offer" on a desktop, "Our Services" on a phone (Kyle, 26 November 2026) */
.hm-cta-m { display: none; }
@media (max-width: 700px) { .hm-cta-d { display: none; } .hm-cta-m { display: inline; } }
