/* Figma 933:2644
   Hero (one piece): video opens with H1 + subline, then on scroll the background becomes the zoomed-out, centred sphere.
   Then, still in the hero, "So time can be spent on" + the words appear over the sphere and move through on scroll. */

/* Headline, lead and words in the heading font; the intro and "By referral only" keep their own Figma styles (typography.css). */
.hs-stage h1, .hs-lead, .hs-words, .hs-words li { font-family: "Isi Circular", "Circular Std", Helvetica, Arial, sans-serif !important; }
.hs-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff; isolation: isolate; }

/* Hero */
.hero.hs { display: block; min-height: 0; height: 260svh; overflow: visible; position: relative; background: #000; }
.hs-video { position: absolute; inset: 0; z-index: 0; will-change: opacity; background: #000; }
.hs-video .hs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Starts at the very top so the see-through nav shows video, not a black strip; bottom edge stays where top:6% put it. */
.hs-video video, .hs-video .hs-poster { position: absolute; left: 0; width: 100%; height: 106%; object-fit: cover; object-position: 50% 100%; top: 0; }
.hs-intro { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(1.5rem, 28svh, 22rem); padding: 0 1.5rem 6vh; will-change: opacity, transform; }
.hs-intro h1 { margin: 0; }
.hs-intro .hero-subhead { opacity: .8; }
.hs-intro > * { opacity: 0; transform: translate3d(0, 1.25rem, 0); transition: opacity 1.6s cubic-bezier(.33,0,.2,1), transform 1.6s cubic-bezier(.33,0,.2,1); }
.hs.is-open .hs-intro > * { opacity: 1; transform: none; }
.hs.is-open .hs-intro > :nth-child(2) { transition-delay: .35s; }
.hs-bottom { position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 3; display: flex; justify-content: center; }
.hs-scene { position: absolute; inset: 0; z-index: 1; opacity: 0; will-change: opacity;
  background: radial-gradient(120% 90% at 50% 112%, #f0ad63 0%, #c86d26 22%, #7a3510 48%, #3a1606 72%, #1a0903 100%); }
.hs-sphere { position: absolute; left: 50%; top: 48%; width: min(27.8vw, 52vh); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) translate3d(0, var(--sy, 0px), 0) scale(var(--ss, 1)); will-change: transform;
  background: radial-gradient(circle at 50% 38%, #24120a 0%, #120804 55%, #070302 100%);
  box-shadow: 0 0 0 1px rgba(255,170,90,.28), inset 0 -.6rem 2.5rem rgba(255,140,50,.35), inset 0 .4rem 1.2rem rgba(255,190,120,.18), 0 0 4rem rgba(255,120,30,.28); }

/* Words over the sphere (Figma 930:3376, 1440 frame): lead right-aligned ending at x 439, list starting at
   x 1038, both 32px (H4); 8px between words; the active word level with the lead, neighbours fading out. */
.hero.hs { height: 420svh; }
.hs-copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; will-change: opacity;
  font-size: clamp(1.25rem, 2.222vw, 2rem); line-height: 1.05; letter-spacing: -.03em; }
.hs-lead, .hs-words { position: absolute; top: 50%; }
.hs-lead { margin: 0; right: 69.51vw; transform: translateY(-50%); white-space: nowrap; text-align: right; }
.hs-words { left: 72.08vw; margin: 0; padding: 0; list-style: none; transform: translateY(calc(-.65em - var(--a, 0) * 1.3em)); }
.hs-words li { height: 1.3em; display: flex; align-items: center; white-space: nowrap; }

@media (max-width: 767px) {
  .hs-sphere { width: 62vw; }
  .hs-copy { font-size: 1.5rem; }
  .hs-lead { right: auto; left: 50%; top: 22%; transform: translate(-50%, -50%); text-align: center; }
  .hs-words { left: 50%; top: 78%; text-align: center; transform: translate(-50%, calc(-.65em - var(--a, 0) * 1.3em)); }
  .hs-words li { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hs-intro > * { transition: none; } }

/* Word wheel (hero-steps.js): the list becomes a drum, centred on the lead line. The list height and
   perspective are set by the script from the word height. Words fade into the background at the top
   and bottom of the drum. */
.hs-words.is-wheel { width: 10em; transform: translateY(-50%); transform-style: preserve-3d;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent); }
.hs-words.is-wheel { perspective-origin: 0 50%; } /* left edges stay on one line as the words turn */
.hs-words.is-wheel li { position: absolute; left: 0; top: 50%; backface-visibility: hidden; will-change: transform, opacity, filter; }
@media (max-width: 767px) {
  .hs-words.is-wheel { transform: translate(-50%, -50%); width: 100vw; perspective-origin: 50% 50%; }
  .hs-words.is-wheel li { left: 0; right: 0; justify-content: center; }
}
