/* Hero, Figma 1058:1225 (start) + 1058:1303 (words). Measured on the 1440 x 900 frame:
   - background: the still planet (1058:1317), full bleed, anchored bottom-centre
   - H1 top at 385 (42.78% of the height), centred
   - intro (922 wide, 2 lines) ends at 770, i.e. 130 from the bottom (14.44%)
   - "By referral only" ends 72 from the bottom (8%)
   - words state: "So time can be spent on" right-aligned ending 9px left of centre, the word list
     starting 14px right of centre, both 32px (H4); the active word level with the lead, at 50% height. */

.hs-stage h1, .hs-lead, .hs-words, .hs-words li { font-family: "Isi Circular", "Circular Std", Helvetica, Arial, sans-serif !important; }
.hero.hs { display: block; min-height: 0; height: 320svh; overflow: visible; position: relative; background: #020202; }
.hs-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff; isolation: isolate; }

.hs-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
  pointer-events: none; user-select: none; }

/* Intro: positioned on the frame's own lines rather than flex-centred, so it sits on the planet as in Figma. */
.hs-intro { position: absolute; inset: 0; z-index: 3; text-align: center; padding: 0 1.5rem; will-change: opacity, transform; }
.hs-intro h1 { position: absolute; left: 1.5rem; right: 1.5rem; top: 42.78svh; margin: 0; }
/* One size that only shrinks as the window narrows: 60px (H1) from 960px wide, scaling down to 36px on phones.
   Replaces the site-wide h1 steps (72px at 768-991px, 36px below 768px) that made the heading jump up. */
html .hero.hs .hs-intro h1 { font-size: clamp(2.25rem, 6.25vw, 3.75rem) !important; line-height: .98 !important; letter-spacing: -.015em !important; }
/* Same height on the screen at every width (no jump at the phone breakpoint); only the size changes. */
html .hero.hs .hs-intro h1 { top: 42.78svh !important; }
.hs-intro .hero-subhead { position: absolute; left: 50%; bottom: 14.44svh; width: min(922px, calc(100% - 3rem)); transform: translateX(-50%); margin: 0; }
.hs-bottom { position: absolute; left: 0; right: 0; bottom: 8svh; z-index: 3; display: flex; justify-content: center; }
.hs-bottom > div { line-height: 1.5; }

/* Fade/rise in on load (hero-v2.js adds .is-open once the planet has loaded). */
.hs-intro > *, .hs-bottom > * { opacity: 0; transition: opacity 1.6s cubic-bezier(.33,0,.2,1), translate 1.6s cubic-bezier(.33,0,.2,1); translate: 0 1.25rem; }
.hs.is-open .hs-intro > *, .hs.is-open .hs-bottom > * { opacity: 1; translate: 0 0; }
.hs.is-open .hs-intro > :nth-child(2) { transition-delay: .35s; }
.hs.is-open .hs-bottom > * { transition-delay: .6s; }

/* Words (1058:1303) */
.hs-copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; will-change: opacity;
  /* One curve for every width, never growing as the window narrows: 32px at 1440, 2.222vw down to 20px at 900,
     20px down to ~465, then 4.3vw on phones so the lead fits its half (16px at 375). */
  font-size: min(2rem, max(2.222vw, min(4.3vw, 1.25rem))); line-height: 1.05; letter-spacing: -.03em; }
.hs-lead, .hs-words { position: absolute; top: 50%; }
.hs-lead { margin: 0; right: calc(50% + .359375em); /* lead and list sit the same distance from the centre, so the gap is centred under the logo */ transform: translateY(-50%); white-space: nowrap; text-align: right; }
.hs-words { left: calc(50% + .359375em); margin: 0; padding: 0; list-style: none; }
.hs-words li { height: 1.05em; display: flex; align-items: center; white-space: nowrap; }

/* Word list (hero-v2.js): every word is placed on the lead line and moved by the script. */
.hs-words.is-wheel { height: 0; width: 10em; }
.hs-words.is-wheel li { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

@media (max-width: 767px) {
  /* Phones use the desktop layout too: lead right-aligned to the left of the centre, list to the right,
     gap centred under the logo; type scaled to the width so "So time can be spent on" fits its half. */
}
@media (prefers-reduced-motion: reduce) { .hs-intro > *, .hs-bottom > * { transition: none; } }
