/* Homepage hero "Gravity" (preview: /home-gravity). The headline sits in the
   upper part; the tools and study words are solid pills that fall, bounce
   and pile up at the bottom (hero_gravity.js). The tool pills wear the tool
   cards' colours. Without the physics (.hg-live never set) the pills simply
   sit in a centred row at the bottom. */

.hg{--hg-blue:var(--signal,#4d72e8);--hg-mute:rgba(236,230,218,.7);position:relative;z-index:1;box-sizing:border-box;height:100svh;min-height:660px;background:var(--page);color:var(--bone);overflow:clip}

.hg-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;padding:clamp(108px,15vh,150px) var(--gut) 0;text-align:center;pointer-events:none}
.hg-copy a{pointer-events:auto}
.hg-h{margin:0;font-family:var(--display);font-weight:500;line-height:.9;letter-spacing:-.055em}
.hg-l1{display:block;font-size:clamp(2.2rem,5.4vw,5.8rem)}
.hg-l2{display:block;margin-top:.02em;font-size:clamp(3.8rem,11.6vw,12.6rem);font-weight:300;letter-spacing:-.07em;color:var(--hg-blue)}
.hg-word{display:inline-block;white-space:nowrap}
.hg-c{display:inline-block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em;vertical-align:top}
.hg-c > span{display:inline-block}

.hg-cta{display:flex;align-items:center;gap:1.8rem;margin-top:clamp(1.4rem,3.4vh,2.2rem)}
.hg-btn{display:inline-flex;align-items:center;gap:.9rem;height:3.5rem;padding:0 .45rem 0 1.6rem;border-radius:99px;background:var(--bone);color:#121317;font-weight:600;transition:background .35s}
.hg-btn i{display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:50%;background:#121317;color:var(--bone);font-style:normal;transition:transform .55s var(--ease)}
.hg-btn:hover{background:#fff}
.hg-btn:hover i{transform:rotate(-45deg)}
.hg-link{font-weight:600;background:linear-gradient(currentColor,currentColor) 0 100%/100% 1.5px no-repeat;padding-bottom:3px}
.hg-hint{margin:1.3rem 0 0;color:var(--hg-mute);opacity:.75}

/* ── the pills ── */
.hg-world{position:absolute;left:var(--gut);right:var(--gut);bottom:2rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
.hg-p{display:inline-flex;align-items:center;gap:.7rem;box-sizing:border-box;white-space:nowrap;border-radius:99px;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:none;
  font-weight:500;line-height:1}
.hg-tool{height:clamp(3.4rem,5.6vw,4.6rem);padding:0 .55rem 0 1.5rem;font-size:clamp(1.05rem,1.55vw,1.4rem);font-weight:600;letter-spacing:-.01em;cursor:grab}
.hg-tool i{display:grid;place-items:center;width:clamp(2.4rem,3.8vw,3.4rem);height:clamp(2.4rem,3.8vw,3.4rem);border-radius:50%;font-style:normal;font-size:1rem}
.hg-finder{background:#ece6da;color:#121317}.hg-finder i{background:#ff6a2a;color:#121317}
.hg-styra{background:#ff6a2a;color:#121317}.hg-styra i{background:#121317;color:#ece6da}
.hg-essay{background:#1c1c1f;color:#ece6da;box-shadow:inset 0 0 0 1px rgba(236,230,218,.22)}.hg-essay i{background:#ece6da;color:#121317}
.hg-resume{background:#faf8f3;color:#121317}.hg-resume i{background:#121317;color:#faf8f3}
.hg-fx{background:#12123a;color:#ece6da;box-shadow:inset 0 0 0 1px rgba(236,230,218,.16)}.hg-fx i{background:#ff6a2a;color:#121317}
.hg-fact{height:clamp(2.9rem,4.4vw,3.6rem);padding:0 1.3rem;background:var(--hg-blue);color:var(--on-signal,#fff);font-size:clamp(.95rem,1.25vw,1.15rem);cursor:grab}
.hg-tag{height:clamp(2.5rem,3.6vw,3rem);padding:0 1.1rem;box-shadow:inset 0 0 0 1px rgba(236,230,218,.32);color:var(--bone);font-size:clamp(.88rem,1.1vw,1rem);cursor:grab}
.hg-tag-w{background:var(--bone);color:#121317;box-shadow:none}
.hg-p:active{cursor:grabbing}

/* live: the physics places every pill */
.hg-live .hg-world{left:0;right:0;top:0;bottom:0;display:block}
.hg-live .hg-p{position:absolute;left:0;top:0;transform:translate3d(-999px,-999px,0);will-change:transform}

@media (max-width:760px){
  .hg{min-height:620px}
  .hg-cta{flex-direction:column;gap:1rem}
  .hg-hint{display:none}
  .hg-p[data-wide]{display:none}
}
