/* "The Journey" (preview: /home-trio), on top of hero_gravity.css and the
   departures board styles in hero_concepts.css: the search bar under the
   headline catches topic pills as filters, and the departures section below
   flips to the matches over the arc globe (hero_trio.js). */

/* a little less headline, so the bar and the pile both fit */
.hg-l1{font-size:clamp(2rem,4.8vw,5rem)}
.hg-l2{font-size:clamp(3.4rem,10vw,10.6rem)}

/* ── the search bar ── */
.ht-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ht-bar{pointer-events:auto;display:flex;align-items:center;gap:.55rem;width:min(640px,100%);min-height:3.3rem;box-sizing:border-box;margin-top:clamp(1rem,2.6vh,1.6rem);
  padding:.32rem .32rem .32rem 1rem;border-radius:99px;background:rgba(236,230,218,.07);box-shadow:inset 0 0 0 1px rgba(236,230,218,.22);
  transition:box-shadow .35s,background .35s,transform .45s var(--ease)}
.ht-bar:focus-within{box-shadow:inset 0 0 0 1.5px var(--hg-blue);background:rgba(236,230,218,.1)}
.ht-bar.catch{transform:scale(1.025);box-shadow:inset 0 0 0 2px var(--hg-blue)}
.ht-ic{flex:none;width:17px;height:17px;opacity:.7}
.ht-chips{display:flex;gap:.35rem;flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.ht-chips::-webkit-scrollbar{display:none}
.ht-chip{flex:none;display:inline-flex;align-items:center;gap:.35rem;height:1.85rem;padding:0 .5rem 0 .75rem;border:0;border-radius:99px;background:var(--hg-blue);color:var(--on-signal,#fff);
  font:inherit;font-size:.8rem;font-weight:500;white-space:nowrap;cursor:pointer;animation:htIn .5s var(--ease)}
.ht-chip i{font-style:normal;opacity:.75}
.ht-chip:hover i{opacity:1}
@keyframes htIn{from{transform:scale(.4);opacity:0}}
.ht-bar input{flex:1;min-width:4.5rem;height:2.4rem;border:0;background:none;color:inherit;font:inherit;font-size:.92rem;outline:none}
.ht-bar input::placeholder{color:inherit;opacity:.5}
.ht-go{flex:none;display:inline-flex;align-items:center;gap:.6rem;height:2.65rem;padding:0 .32rem 0 1.1rem;border:0;border-radius:99px;background:var(--bone);color:#121317;
  font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .35s}
.ht-go i{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#121317;color:var(--bone);font-style:normal;transition:transform .55s var(--ease)}
.ht-go:hover{background:#fff}
.ht-go:hover i{transform:rotate(-45deg)}
.ht-note a{pointer-events:auto;color:inherit;text-decoration:underline;text-underline-offset:3px}
.hg-tag[data-key]{box-shadow:inset 0 0 0 1px rgba(236,230,218,.45)}

/* ── departures ── */
.jy{--hx-deep:var(--night-deep);--hx-mute:#c3c9e6;--hx-line:rgba(236,230,218,.2);position:relative;z-index:1;background:var(--page);color:var(--bone);
  padding:clamp(4.5rem,9vw,7rem) 0 clamp(4rem,8vw,6rem);overflow:clip}
.jy-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem 3rem;flex-wrap:wrap;padding:0 var(--gut);margin-bottom:clamp(1rem,3vw,2rem)}
.jy-h{margin:0;font-family:var(--display);font-weight:500;font-size:clamp(2.8rem,7vw,7rem);line-height:.92;letter-spacing:-.055em}
.jy-h em{font-style:normal;font-weight:300;color:var(--signal)}
.jy-stage{position:relative}
/* the globe rises behind the top of the board */
.jy-globe{display:block;width:100%;height:clamp(200px,30vw,380px);margin-bottom:calc(clamp(60px,9vw,120px) * -1)}
.jy-board{position:relative}
.jy-note{margin:1rem 0 0;padding:0 var(--gut);text-align:right;color:var(--hx-mute);opacity:.7}

/* light page colours: dark text around a board that stays dark */
html.bg-light .ht-bar{background:rgba(18,19,23,.04);box-shadow:inset 0 0 0 1px rgba(18,19,23,.22)}
html.bg-light .ht-go{background:#121317;color:#fff}
html.bg-light .ht-go i{background:#fff;color:#121317}
html.bg-light .hg-tag[data-key]{box-shadow:inset 0 0 0 1px rgba(18,19,23,.45)}
html.bg-light .jy{color:var(--ink);--hx-mute:#55596a}
html.bg-light .jy-board{--hx-mute:#a9b0c8;--hx-line:rgba(236,230,218,.14);color:var(--bone)}
html.bg-light .jy-globe{filter:invert(1) hue-rotate(180deg)}

/* phones: one slim row (the button becomes a round arrow), more room above
   it for the flying word, and smaller pills so the pile stays low */
@media (max-width:760px){
  .hg-copy{padding-top:clamp(96px,13vh,120px)}
  .hg-l1{font-size:clamp(1.9rem,8.4vw,2.6rem)}
  .hg-l2{font-size:clamp(3rem,15vw,4.4rem);padding-bottom:.08em}
  .ht-bar,.ht-bar.hg-cta{flex-direction:row;flex-wrap:nowrap;width:100%;min-height:3.1rem;margin-top:1.4rem;padding:.3rem .3rem .3rem .85rem;gap:.45rem}
  .ht-bar input{min-width:0;font-size:.88rem}
  .ht-go{width:2.5rem;height:2.5rem;padding:0;justify-content:center;font-size:0;gap:0}
  .ht-go i{width:2.5rem;height:2.5rem;font-size:1rem}
  .ht-chip{height:1.75rem;font-size:.76rem}
  .hg-tool{height:2.75rem;padding:0 .35rem 0 1rem;font-size:.92rem;gap:.5rem}
  .hg-tool i{width:2.05rem;height:2.05rem;font-size:.85rem}
  .hg-fact{height:2.35rem;padding:0 .9rem;font-size:.82rem}
  .hg-tag{height:2.05rem;padding:0 .8rem;font-size:.78rem}
  .jy-note{text-align:left}
}

/* the next section slides over the hero (hero_trio.js blurs and fades it) */
.hx-stack{background:var(--page)}   /* nothing behind the hero shows through as it fades */
.hx-stack > #hg{position:sticky;top:0;transform-origin:50% 42%}
.hx-stack > #jy{z-index:2;border-radius:clamp(22px,3vw,40px) clamp(22px,3vw,40px) 0 0;box-shadow:0 -1px 0 rgba(236,230,218,.14),0 -40px 90px -30px rgba(0,0,0,.55)}
.hx-stack > #demo{position:relative;z-index:2}
