/* The statement after Vonder's, on the homepage since 11 November 2026 (Kyle: "I love ... the new statement"); the one before,
   with the travelling line, is kept at /alt/home-say-a/. src/views/Home.astro, say "v"; the fill is home.js's.

   Where it sits in the type: the hero's headline is Display; the section titles ("What we offer.", "The team that runs the
   service.") are Headline; this statement is a step below them, the Title size, as Vonder sets theirs well under its own
   headings. It earns its weight from the screen of quiet it sits in, centred, rather than from its size. */

.hm-say[data-say="v"] { --say: clamp(1.75rem, 2.6vw, 2.5rem); }
/* it fills in word by word and holds the screen as the page scrolls again (Kyle, 26 November 2026: taken off on 23 November
   on a reading of compliance's note, which meant something else) */
.hm-say[data-say="v"] > .wrap { min-height: min(52rem, 88svh); display: grid; place-items: center; padding-block: clamp(4rem, 10vh, 7rem); }
.hm .sv-line { max-width: 21em; margin-inline: auto; text-align: center; text-wrap: balance; line-height: 1.12; --serif-ls: 0em; --serif-ws: 0em; }
.sv-line em { font-style: italic; }
html:not(.hm-fill) .sv-line em { color: var(--brick-word); }   /* without the fill (no script, reduced motion), as it ends */
.sv-nb { white-space: nowrap; }   /* "we know." keep together, so the last line is never one word */
.hm-fill .sv-line em .w.on { color: var(--brick-word); }

/* ---------- it holds the screen (Kyle, 11 November 2026: "The new statement starts changing colour too soon. I'm fine with it
   holding the page for a second like the Vonder reference does, so everyone has to scroll through it"; and "the 'what we
   offer' section doesn't sit as far apart from the statement") ----------
   With motion allowed, the sentence comes up to the middle of the screen and stays there while the page scrolls on under it
   for most of a screen (.sv-run), filling in word by word as it does (home.js); then it moves on with the page, and the
   range follows straight after it rather than a screen's height of space later. Without motion it simply sits on its own
   quiet screen, as before. */
.sv-run { display: none; }
.hm-anim.hm-fill .hm-say[data-say="v"] > .wrap { display: block; min-height: 0; padding-block: min(30svh, 18rem) 1.5rem; }
.hm-anim.hm-fill .hm-say[data-say="v"] .sv-line { position: sticky; top: calc(50svh + var(--rh, 0px) / 2); transform: translateY(-50%); }
.hm-anim.hm-fill .hm-say[data-say="v"] .sv-run { display: block; height: 80svh; }

/* the office in the line: a small picture the height of the lower case, square cornered at the tag radius */
.sv-chip { display: inline-block; vertical-align: -.08em; width: 1.45em; height: .78em; border-radius: 4px; overflow: hidden; }
.sv-chip :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-fill .sv-chip { color: inherit; } .hm-fill .sv-chip img { filter: grayscale(1) contrast(.4) brightness(1.45); transition: filter .5s ease; }   /* pale like the words, without being see-through (the brand) */
.hm-fill .sv-chip.on img { filter: none; }
/* the building, drawn in a line, takes the words' colour as it fills */
.sv-ic { display: inline-block; vertical-align: -.1em; width: .82em; height: .82em; }
.sv-ic svg { display: block; width: 100%; height: 100%; }
/* the full stop is the logo's: a brick square on the baseline */
.sv-dot { display: inline-block; width: .15em; height: .15em; margin-left: .05em; background: var(--ink-quiet); transition: background-color .5s ease; }
.hm-fill .w.on .sv-dot, :not(.hm-fill) .sv-dot { background: var(--brick); }

/* the phrases that look closer: underlined in the words' own colour, a fine line */
.sv-g { position: relative; display: inline-block; color: inherit; text-decoration: none; }   /* a block of its own, so its card centres over it */
.sv-u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }

/* ---------- with a mouse: the rest steps back, a card rises above the phrase ---------- */
@media (hover: hover) and (pointer: fine) {
  .hm-fill .sv-line:has(.sv-g:is(:hover, :focus-visible)) .w,
  .hm-fill .sv-line:has(.sv-g:is(:hover, :focus-visible)) .w.on { color: var(--ink-quiet); }
  .hm-fill .sv-line:has(.sv-g:is(:hover, :focus-visible)) .sv-chip img { filter: grayscale(1) contrast(.4) brightness(1.45); }
  .hm-fill .sv-line:has(.sv-g:is(:hover, :focus-visible)) .sv-g:is(:hover, :focus-visible) .w { color: var(--navy); }
  .hm-fill .sv-line:has(.sv-g:is(:hover, :focus-visible)) .sv-g:is(:hover, :focus-visible) .sv-chip img { filter: none; }
  .sv-line:has(.sv-g:is(:hover, :focus-visible)) .sv-dot { background: var(--ink-quiet); }
  .sv-g:focus-visible { outline-offset: 6px; border-radius: 4px; }

  .sv-card {
    position: absolute; left: 50%; bottom: calc(100% + .35rem); z-index: 2; translate: -50% 0;
    display: flex; align-items: center; gap: .75rem; width: max-content; max-width: 22rem; padding: .5rem 1rem .5rem .5rem;
    background: #fff; border: 1px solid var(--rule); border-radius: 8px;
    font: 400 .9375rem/1.35 var(--sans); letter-spacing: 0; word-spacing: 0; text-align: left; color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(.5rem) scale(.96); transform-origin: 50% 100%; pointer-events: none;
    transition: opacity .25s ease, transform .4s var(--ease), visibility 0s .4s;
  }
  .sv-g:hover .sv-card, .sv-g:focus-visible .sv-card { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease .05s, transform .5s var(--ease) .05s, visibility 0s; }
  .sv-cimg { flex: none; width: 4.5rem; height: 3rem; border-radius: 6px; overflow: hidden; }
  .sv-cimg :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
  .sv-ctx { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
  .sv-ctx b { font-weight: 600; color: var(--navy); }
  .sv-ctx small { display: inline-flex; align-items: center; gap: .4375rem; font-size: .8125rem; color: var(--ink-soft); }
  .sv-ctx small i { width: 7px; height: 7px; box-sizing: border-box; background: var(--brick); flex: none; }   /* the range's status squares */
  .sv-ctx small i.out { background: transparent; border: 1px solid var(--navy); }
}
@media not ((hover: hover) and (pointer: fine)) { .sv-card { display: none; } }

/* ---------- the range's own title ---------- */
.sv-rh { --serif-size: clamp(2.5rem, 4.4vw, 4rem); --serif-ls: -.012em; --serif-ws: -.02em; font-family: var(--serif); font-weight: 400; font-size: var(--serif-fit); line-height: 1.04; color: var(--navy); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.sv-rh em { font-style: italic; color: var(--brick-word); }
/* What we offer lands on the title itself now */
.hm-rng[data-say="v"] > .hm-anchor { top: -1.5rem; }   /* the header steps away as the page moves down to it */
.hm-rng[data-say="v"] > .wrap { padding-top: clamp(2rem, 5vw, 4rem); }

@media (prefers-reduced-motion: reduce) { .sv-card { transition: none !important; } }
/* on a phone, each linked phrase in the statement is a 44px tap target: the extra is padding, offset by a negative margin,
   so the lines keep their spacing (phone sweep, 11 November 2026) */
@media (max-width: 900px) { .sv-g { padding-block: 7px; margin-block: -7px; } }
