/* 20.11 · Glance page polish before deploy (Sali t1256u, 09:27 IL). Loaded last on glance.html and glance-en.html.
   1. Hero logo: the same moment-based light pass as the header E wordmark, once on entry (trigger in glance-header-brand-20261119.js).
   2. Black-to-blue headline words use Glance blue only. Light #1d1d1f to #0071e3, dark #f5f5f7 to #2997ff.
      Blue always lands at the sentence end: 90deg in LTR, 270deg in RTL.
   3. Design pass: one headline scale, no repeated headline, RTL alignment, Hebrew headline font.
   The hero scroll effect is untouched. */

/* ---------- 1 · hero logo light pass ----------
   Same motion, timing and curve as the header E pass. The band is neutral white with a cool edge
   (no warm tone: on the big logo the header's amber edge read as a brown smudge). */
html body #hero .gx-logo span:not(#gxz){
  --gx-hmetal:linear-gradient(180deg,#d9dce2,#a3a8b1 38%,#6c717b 62%,#b9bdc5);
  --gx-hsheen:linear-gradient(104deg,transparent 0 42%,rgba(150,190,240,.28) 46%,rgba(255,255,255,.95) 50%,rgba(236,241,248,.4) 54%,transparent 58% 100%);
  background:var(--gx-hsheen),var(--gx-hmetal);
  background-size:300% 100%,100% 100%;background-repeat:no-repeat;background-position:100% 0,0 0;
  -webkit-background-clip:text;background-clip:text}
html[data-theme=dark] body #hero .gx-logo span:not(#gxz){
  --gx-hmetal:linear-gradient(180deg,#f3f4f7,#c4c8d0 42%,#8b909a 64%,#dfe2e7);
  --gx-hsheen:linear-gradient(104deg,transparent 0 42%,rgba(160,205,255,.5) 46%,rgba(255,255,255,1) 50%,rgba(225,235,250,.5) 54%,transparent 58% 100%)}
html body #hero .gx-logo span.gx-pass:not(#gxz){animation:gxHeroPass 2.6s cubic-bezier(.45,0,.25,1) 1 both}
@keyframes gxHeroPass{0%{background-position:100% 0,0 0}100%{background-position:0% 0,0 0}}
@media (prefers-reduced-motion:reduce){html body #hero .gx-logo span.gx-pass:not(#gxz){animation:none}}

/* ---------- 2 · Glance blue gradients (every black-to-blue word) ---------- */
html{--gxg-ink:#1d1d1f;--gxg-blue:#0071e3}
html[data-theme=dark]{--gxg-ink:#f5f5f7;--gxg-blue:#2997ff}
html body #hero #h1 .wow-b:not(#gxz),
html body .gx-end .gx-blue:not(#gxz),
html body :is(.h21-h1,.cta21-h,.ints-h,.creed-h,.s21-h,.mj-h,.day21-h,.bn21-h,.h21-end-h) em:not(#gxz),
html body .h21-h1 .h1-echo em:not(#gxz){
  background-image:linear-gradient(90deg,var(--gxg-ink) 0%,var(--gxg-blue) 58%,var(--gxg-blue) 100%)!important;
  background-size:100% 100%!important;background-repeat:no-repeat!important;
  -webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important}
html[dir=rtl] body #hero #h1 .wow-b:not(#gxz),
html[dir=rtl] body .gx-end .gx-blue:not(#gxz),
html[dir=rtl] body :is(.h21-h1,.cta21-h,.ints-h,.creed-h,.s21-h,.mj-h,.day21-h,.bn21-h,.h21-end-h) em:not(#gxz),
html[dir=rtl] body .h21-h1 .h1-echo em:not(#gxz){
  background-image:linear-gradient(270deg,var(--gxg-ink) 0%,var(--gxg-blue) 58%,var(--gxg-blue) 100%)!important}
/* the ink that wipes off the hero word starts from the same near-black / near-white */
html body #hero #h1 .wow-b:not(#gxz)::after{color:var(--gxg-ink);-webkit-text-fill-color:var(--gxg-ink)}

/* ---------- 3 · design pass ---------- */
/* a. The WhatsApp section repeated the headline of the section above it word for word (with a trailing period).
      The small eyebrow stays; the demo now reads as the proof of the headline above. */
#surfaces .s21-h{display:none}
#surfaces .surfaces-kicker{margin-bottom:20px!important;text-align:start}

/* b. One headline scale for the section titles (was 44 / 60 / 44 px side by side on desktop).
      «One ask in» and «The ask arrives anywhere» now match «Said in a meeting». Width follows the line breaks, no orphan word. */
html body .ints-h:not(#gxz){font-family:var(--disp21,var(--disp));font-weight:700;font-size:clamp(32px,4.6vw,60px);line-height:1.04;letter-spacing:-.035em;max-width:none;text-wrap:balance}
html.he body .ints-h:not(#gxz),html[dir=rtl] body .ints-h:not(#gxz){font-family:Heebo,system-ui,sans-serif;font-weight:800;letter-spacing:-.01em}
/* Each designed line of a section headline is its own balanced line (span.gx-ln in the page and in the DE/FR/ES strings,
   replacing <br>). A long line now breaks into two even halves, never leaving one word alone
   («Glance closes it / where it lands», «Never sends / for you», «Sendet nicht / in Ihrem Namen»). */
html body :is(.mj-h,.ints-h,.creed-h,.cta21-h,.i1-hl):not(#gxz){text-wrap:balance}
:is(.mj-h,.ints-h,.creed-h) .gx-ln{display:block;text-wrap:balance}
html body .creed-h:not(#gxz){max-width:none}
@media (max-width:760px){html:not([dir=rtl]) body .creed-h:not(#gxz){font-size:clamp(30px,9.6vw,44px)}html[dir=rtl] body .creed-h:not(#gxz){font-size:clamp(32px,11.2vw,44px)}html body .cta21-h:not(#gxz){font-size:clamp(32px,11.2vw,44px)}}
.creed-grid h3{text-wrap:balance}
/* Hebrew phone: «הבקשה מגיעה מכל מקום» is a few pixels wider than the phone at 32px; 7.8vw and a touch tighter tracking keep it on one line (30.4px at 390). */
@media (max-width:760px){html[dir=rtl] body .ints-h:not(.b20-h):not(#gxz){font-size:min(32px,7.8vw);letter-spacing:-.02em}}

/* c. RTL alignment: Hebrew text was left aligned in the three trust cards and inside the Outlook mock. */
html[dir=rtl] .creed-grid{text-align:right}
html[dir=rtl] #meet-journey .ol{text-align:right}
/* d. RTL order: the WhatsApp rail is an LTR scroller, so its Hebrew label and hint read backwards. */
html[dir=rtl] #surfaces .surf-rail .story-tag,
html[dir=rtl] #surfaces .surf-rail .demo-hint{direction:rtl}

/* e. The tools orbit showed Slack twice on the inner ring (duplicate removed in the page HTML, not in CSS). */

/* f. «A day with Glance» carousel in Hebrew: the edge fade was the LTR one, so it faded the first card's time and edge
      on the right instead of the next card peeking in on the left. Mirrored for RTL. */
html[dir=rtl] .day21-track.can-next{-webkit-mask-image:linear-gradient(270deg,#000 0,#000 calc(100% - var(--pad) - 56px),transparent calc(100% - var(--pad) - 4px));mask-image:linear-gradient(270deg,#000 0,#000 calc(100% - var(--pad) - 56px),transparent calc(100% - var(--pad) - 4px))}
html[dir=rtl] .day21-track.can-prev{-webkit-mask-image:linear-gradient(270deg,transparent calc(var(--pad) + 4px),#000 calc(var(--pad) + 56px),#000 100%);mask-image:linear-gradient(270deg,transparent calc(var(--pad) + 4px),#000 calc(var(--pad) + 56px),#000 100%)}
html[dir=rtl] .day21-track.can-prev.can-next{-webkit-mask-image:linear-gradient(270deg,transparent calc(var(--pad) + 4px),#000 calc(var(--pad) + 56px),#000 calc(100% - var(--pad) - 56px),transparent calc(100% - var(--pad) - 4px));mask-image:linear-gradient(270deg,transparent calc(var(--pad) + 4px),#000 calc(var(--pad) + 56px),#000 calc(100% - var(--pad) - 56px),transparent calc(100% - var(--pad) - 4px))}

/* g. «One ask in» diagram, desktop: the source quotes were cut with «…» («The signed brief just la…», and worse in DE/FR/ES).
      They now wrap to a second line inside the tile instead of being cut. */
@media (min-width:761px){.b20-src .b20-q{white-space:normal;text-overflow:clip;overflow:visible;max-width:172px;text-wrap:balance}}
