/* UI over the particle globe, 1:1 with Google Language Explorer (docs/arsenal/google-lang/SPEC.md §6–7):
   hero 74/95, search 1014×56 glass pill, six 186px filter pills with the moving rainbow edge on hover, overview block bottom-right.
   Font: our Basis Grotesque instead of Google Sans (theirs is not licensed for us); sizes, colours, timings are theirs. */
.gl-track { position: relative; height: calc(100vh / var(--zoom, 1)); background: #000; z-index: 1; }
.gl-stage { position: fixed; inset: 0; width: calc(100vw / var(--zoom, 1)); height: calc(100vh / var(--zoom, 1)); background: #000; overflow: hidden; z-index: 1; }
.gl-stage canvas.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.gl-stage canvas.gl-canvas:active { cursor: grabbing; }

.gl-ui { --mid-point: calc((100vh / var(--zoom, 1) - 120px) / 2); position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; font-family: "Basis Grotesque Arabic Pro", system-ui, sans-serif; color: #fff; z-index: 2; }
.gl-hero { text-align: center; padding: 0 24px; transform: translateY(calc(var(--mid-point) - 137px * .5 - 40px)); display: flex; flex-direction: column; gap: 18px; }
.gl-hero h1 { margin: 0; font-size: 74px; line-height: 95px; font-weight: 400; letter-spacing: -0.66px; color: #fff; opacity: 0; transform: scale(1.2);
  transition: opacity 1.2s cubic-bezier(.6,0,.05,1), transform 1.4s ease-out; will-change: transform, opacity; }
.gl-hero p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 400; color: #fff; opacity: 0; transform: scale(1.2);
  transition: opacity 1.2s cubic-bezier(.6,0,.05,1) .4s, transform 1.2s ease-out .4s; }
.gl-ui.show-hero .gl-hero h1, .gl-ui.show-hero .gl-hero p { opacity: 1; transform: none; }

.gl-search { position: absolute; top: 0; left: 50%; width: min(1014px, calc(100vw / var(--zoom, 1) - 60px)); transform: translate(-50%, calc(var(--mid-point) + 80px)); pointer-events: auto; }
.gl-search__inner { position: relative; min-height: 56px; max-height: 56px; border: 1px solid #3c4043; border-radius: 30px; background: #00000080; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden;
  clip-path: inset(0 100% 0 0); opacity: 0; transform: translateY(0);
  transition: clip-path 1.2s ease-out .6s, opacity 1s cubic-bezier(.6,0,.05,1) .6s, transform 1.2s ease-out .6s, min-height .3s ease-in-out, max-height .3s ease-in-out; }
.gl-ui.show-hero .gl-search__inner { clip-path: inset(0); opacity: 1; transform: translateY(10px); }
.gl-search.is-open .gl-search__inner { min-height: 360px; max-height: 360px; transition-delay: 0s; }
.gl-search input { width: 100%; height: 56px; box-sizing: border-box; border: 0; outline: 0; background: transparent; color: #fff; font: 500 16px/24px "Basis Grotesque Arabic Pro", system-ui, sans-serif; padding: 16px 16px 16px 64px; }
.gl-search input::placeholder { color: #9aa0a6; }
.gl-search__ico { position: absolute; top: 16px; left: 24px; width: 24px; height: 24px; pointer-events: none; }
.gl-search__x { position: absolute; top: 19px; right: 24px; width: 18px; height: 18px; cursor: pointer; transition: transform .3s ease-in-out; }
.gl-search__x:hover { transform: scale(1.15); }
.gl-search__x path { stroke: #9aa0a6; transition: stroke .3s; } .gl-search__x:hover path { stroke: #fff; }
.gl-sugg { border-top: 1px solid #3c4043; padding: 20px 20px 20px 48px; opacity: 0; transition: opacity .3s; }
.gl-search.is-open .gl-sugg { opacity: 1; }
.gl-sugg__count { font: 400 10px/13px ui-monospace, "SF Mono", Menlo, monospace; color: #9aa0a6; margin-bottom: 8px; }
.gl-sugg__list { height: 240px; overflow: auto; scrollbar-width: thin; scrollbar-color: #4285f4 #3c4043; }
.gl-sugg__list::-webkit-scrollbar { width: 3px; } .gl-sugg__list::-webkit-scrollbar-thumb { background: #4285f4; } .gl-sugg__list::-webkit-scrollbar-track { background: #3c4043; }
.gl-sugg__it { display: block; padding: 12px; border-radius: 12px; color: #fff; text-decoration: none; cursor: pointer; }
.gl-sugg__it:hover, .gl-sugg__it:focus { background: #3c404380; outline: 0; }
.gl-sugg__it b { font-weight: 400; font-size: 16px; line-height: 20px; }
.gl-sugg__it i { font-style: normal; margin-left: 8px; display: inline-block; vertical-align: 2px; background: #4285f4; border-radius: 12px; padding: 4px 8px; font: 400 10px/12px ui-monospace, "SF Mono", Menlo, monospace; color: #fff; }
.gl-sugg__it small { display: block; font-size: 11px; line-height: 14px; color: #9aa0a6; margin-top: 2px; }

.gl-filters { position: absolute; top: 0; left: 50%; transform: translate(-50%, calc(var(--mid-point) + 80px + 76px)); display: flex; gap: 8px; pointer-events: auto; opacity: 0; max-height: 0; transition: opacity .3s ease-in-out, max-height .3s ease-in-out; }
.gl-filters.is-on { opacity: 1; max-height: 500px; }
.gl-dd { position: relative; width: 186px; }
.gl-dd__btn { position: relative; width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 12px; border-radius: 24px; outline: 1px solid #3c4043; background: #00000080; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: 400 12px/20px "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: .2px; text-align: left; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; opacity: 0; transition: opacity .3s, outline-color .2s; }
.gl-filters.is-on .gl-dd__btn { opacity: 1; }
.gl-dd__btn:after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(90deg,#d93025 0%,#fcc924 20%,#fde293 40%,#fff 60%,#aecbfa 80%,#1a73e8 100%) 0 0 / 500px 200px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; animation: gl-slide 8s infinite; pointer-events: none; }
.gl-dd__btn:hover { outline-color: #0000; } .gl-dd__btn:hover:after { opacity: 1; }
@keyframes gl-slide { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.gl-dd__btn svg { transition: transform .3s; }
.gl-dd.open .gl-dd__btn svg { transform: rotate(180deg); }
.gl-dd__menu { position: absolute; left: 0; right: 0; top: 46px; border-radius: 12px; outline: 1px solid #3c4043; background: #000000cc; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-height: 0; overflow: hidden; transition: max-height .3s ease-in-out; }
.gl-dd.open .gl-dd__menu { max-height: 212px; }
.gl-dd__menu ul { list-style: none; margin: 0; padding: 8px 12px; max-height: 154px; overflow: auto; scrollbar-width: thin; scrollbar-color: #4285f4 #3c4043; }
.gl-dd__menu li { padding: 4px 0; font-size: 13px; line-height: 15.6px; color: #fff; cursor: pointer; transition: color .3s; }
.gl-dd__menu li:hover { color: #4285f4; }

.gl-overview { position: absolute; bottom: 20px; right: 20px; text-align: right; display: flex; flex-direction: column; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .6s ease-in-out; }
.gl-ui.show-overview .gl-overview { opacity: 1; pointer-events: auto; }
.gl-overview h6 { margin: 0; font: 400 10px/13px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -0.07px; color: #fff; }
.gl-overview dl { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.gl-overview dl div { display: flex; gap: 12px; justify-content: flex-end; font: 400 10px/13px ui-monospace, "SF Mono", Menlo, monospace; color: #9aa0a6; }
.gl-overview dd { margin: 0; color: #9aa0a6; }
.gl-cta { align-self: flex-end; position: relative; display: inline-block; border-radius: 24px; overflow: hidden; padding: 1px; text-decoration: none; }
.gl-cta span { position: relative; z-index: 1; display: block; padding: 8px 12px; border-radius: 24px; background: #000; color: #fff; font: 400 12px/14.4px "Basis Grotesque Arabic Pro", system-ui, sans-serif; outline: 1px solid #3c4043; outline-offset: -1px; transition: outline-color .3s; }
.gl-cta:before { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; background: linear-gradient(90deg,#d93025,#fcc924 20%,#fde293 40%,#fff 60%,#aecbfa 80%,#1a73e8); animation: gl-spin 5s linear infinite; opacity: 0; transition: opacity .3s; }
.gl-cta:hover:before { opacity: 1; } .gl-cta:hover span { outline-color: #0000; }
@keyframes gl-spin { to { transform: rotate(360deg); } }
.gl-note { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font: 400 12px/14px ui-monospace, "SF Mono", Menlo, monospace; color: #fff; opacity: 0; transition: opacity .6s ease-in-out; white-space: nowrap; }
.gl-ui.show-overview .gl-note { opacity: 1; }

.gl-preloader { position: fixed; inset: 0; z-index: 10005; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .3s ease-in-out; }
.gl-preloader.is-hidden { opacity: 0; pointer-events: none; }
.gl-preloader svg { width: 120px; height: 120px; }
.gl-preloader .ring { fill: none; stroke: #fff; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.gl-preloader .cross { stroke: #fff; stroke-width: 1; opacity: calc(var(--p, 0)); }
.gl-preloader__pct { margin-top: 16px; font: 400 14px/1 "Basis Grotesque Arabic Pro", system-ui, sans-serif; color: #fff; }

/* the rest of the page scrolls over the fixed globe */
.works_block.svc_ai { position: relative; z-index: 2; background: #0d0d0d; box-shadow: 0 0 0 100vmax #0d0d0d; clip-path: inset(0 -100vmax -100vmax -100vmax); }
@media only screen and (max-width: 1023.98px) {
  .gl-hero h1 { font-size: 40px; line-height: 48px; } .gl-hero p { font-size: 12px; line-height: 20px; }
  .gl-filters { display: none; } .gl-overview { display: none; } .gl-note { display: none; }
  .gl-search input { font-size: 12px; padding-left: 44px; } .gl-search__ico { left: 14px; width: 18px; }
}
.gl-search.is-open ~ .gl-filters { opacity: 0; pointer-events: none; }
.gl-dd__btn { border: 0 !important; box-shadow: none !important; background-clip: padding-box; } .gl-dd { border: 0 !important; }
.gl-dd__menu { outline-color: transparent; transition: max-height .3s ease-in-out, outline-color .3s; } .gl-dd.open .gl-dd__menu { outline-color: #3c4043; }

/* ---------- chat mode: the search pill becomes a chat with Garoon AI ---------- */
.gl-filters { display: none !important; }
.gl-chips { position: absolute; top: 0; left: 50%; transform: translate(-50%, calc(var(--mid-point) + 80px + 76px)); width: min(1014px, calc(100vw / var(--zoom, 1) - 60px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; pointer-events: auto; opacity: 0; transition: opacity .3s ease-in-out; }
.gl-chips.is-on { opacity: 1; }
.gl-chip { position: relative; min-height: 40px; box-sizing: border-box; padding: 8px 16px; border-radius: 24px; outline: 1px solid #3c4043; background: #00000080; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 0 !important;
  color: #fff; font: 400 12px/20px "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: .2px; cursor: pointer; opacity: 0; transition: opacity .3s, outline-color .2s; }
.gl-chips.is-on .gl-chip { opacity: 1; }
.gl-chip:after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(90deg,#d93025 0%,#fcc924 20%,#fde293 40%,#fff 60%,#aecbfa 80%,#1a73e8 100%) 0 0 / 500px 200px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; animation: gl-slide 8s infinite; pointer-events: none; }
.gl-chip:hover { outline-color: #0000; } .gl-chip:hover:after { opacity: 1; }
.gl-search__send { position: absolute; top: 9px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0 !important; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .3s ease-in-out, opacity .3s; }
.gl-search__send:hover { transform: scale(1.08); }
.gl-search__send:disabled { opacity: .35; cursor: default; transform: none; }
.gl-search input { padding-right: 64px; }
.gl-sugg { display: none !important; }

.gl-hero { transition: opacity .3s ease-in-out, max-height .3s ease-in-out; max-height: 260px; }
.gl-ui.is-chat .gl-hero { opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; }
.gl-ui.is-chat .gl-chips { opacity: 0; pointer-events: none; }
.gl-ui.is-chat .gl-overview, .gl-ui.is-chat .gl-note { opacity: 0; pointer-events: none; }
.gl-search { transition: transform .6s cubic-bezier(.6,0,.05,1); }
.gl-ui.is-chat .gl-search { transform: translate(-50%, 96px); }
.gl-ui.is-chat .gl-search__inner { min-height: min(620px, calc(100vh / var(--zoom, 1) - 200px)); max-height: min(620px, calc(100vh / var(--zoom, 1) - 200px)); display: flex; flex-direction: column-reverse; transition-delay: 0s; }
.gl-ui.is-chat .gl-search__row { border-top: 1px solid #3c4043; }
.gl-search__row { position: relative; flex: 0 0 auto; }
.gl-thread { flex: 1 1 auto; overflow: auto; padding: 52px 28px 12px; display: none; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: #4285f4 #3c4043; }
.gl-ui.is-chat .gl-thread { display: flex; }
.gl-thread__close { position: absolute; top: 18px; right: 22px; width: 16px; height: 16px; cursor: pointer; z-index: 2; display: none; transition: transform .3s; }
.gl-ui.is-chat .gl-thread__close { display: block; }
.gl-thread__close:hover { transform: scale(1.15); }
.gl-thread__close path { stroke: #9aa0a6; } .gl-thread__close:hover path { stroke: #fff; }
.gl-msg { max-width: 78%; font: 400 15px/23px "Basis Grotesque Arabic Pro", system-ui, sans-serif; color: #fff; opacity: 0; transform: translateY(8px); filter: blur(2px); transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1), filter .3s cubic-bezier(.22,1,.36,1); }
.gl-msg.in { opacity: 1; transform: none; filter: none; }
.gl-msg--me { align-self: flex-end; background: #3c404380; border-radius: 18px 18px 4px 18px; padding: 10px 16px; }
.gl-msg--ai { align-self: flex-start; }
.gl-msg--ai .who { display: block; font: 400 10px/13px ui-monospace, "SF Mono", Menlo, monospace; color: #9aa0a6; margin-bottom: 6px; letter-spacing: .3px; }
.gl-msg--ai .typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.gl-msg--ai .typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; animation: gl-dot 1s infinite ease-in-out; }
.gl-msg--ai .typing i:nth-child(2) { animation-delay: .15s; } .gl-msg--ai .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gl-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.gl-msg__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; position: relative; border-radius: 24px; padding: 1px; text-decoration: none; overflow: hidden; }
.gl-msg__go span { position: relative; z-index: 1; display: block; padding: 7px 14px; border-radius: 24px; background: #000; color: #fff; font: 400 12px/16px "Basis Grotesque Arabic Pro", system-ui, sans-serif; outline: 1px solid #3c4043; outline-offset: -1px; transition: outline-color .3s; }
.gl-msg__go:before { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; background: linear-gradient(90deg,#d93025,#fcc924 20%,#fde293 40%,#fff 60%,#aecbfa 80%,#1a73e8); animation: gl-spin 5s linear infinite; opacity: 0; transition: opacity .3s; }
.gl-msg__go:hover:before { opacity: 1; } .gl-msg__go:hover span { outline-color: #0000; }
.gl-msg__more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gl-msg__more .gl-chip { opacity: 1; min-height: 32px; padding: 5px 12px; font-size: 12px; }
@media only screen and (max-width: 1023.98px) {
  .gl-chips { transform: translate(-50%, calc(var(--mid-point) + 80px + 70px)); }
  .gl-chip:nth-child(n+4) { display: none; }
  .gl-ui.is-chat .gl-search { transform: translate(-50%, 70px); }
  .gl-thread { padding: 48px 16px 10px; } .gl-msg { max-width: 92%; font-size: 14px; line-height: 21px; }
}

/* caption typed at the bottom of the first screen when a sign on the globe is clicked */
.gl-caption { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; pointer-events: none; max-width: min(90vw, 760px); text-align: center; font: 400 13px/1.5 "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: .02em; color: rgba(255,255,255,.72); opacity: 0; transition: opacity .3s; }
.gl-caption.is-on { opacity: 1; }
.gl-caption i { display: inline-block; width: 1px; height: 1.1em; margin-left: 3px; vertical-align: -2px; background: rgba(255,255,255,.72); animation: glcaret 1s steps(1) infinite; }
@keyframes glcaret { 50% { opacity: 0; } }

/* owner: no suggestion chips under the chat input */
.gl-ui .gl-chips { display: none !important; }

/* owner: the page opens straight away, no loader */
.gl-preloader { display: none !important; }
.gl-stage canvas.gl-canvas { opacity: 0; transition: opacity .6s ease; }
.gl-stage canvas.gl-canvas.is-ready { opacity: 1; }

/* microphone button in the chat field, left of the send button */
.gl-search__mic { position: absolute; top: 9px; right: 56px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18) !important; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.gl-search__mic:hover { border-color: rgba(255,255,255,.4) !important; }
.gl-search__mic.is-on { background: #e6c27a; border-color: #e6c27a !important; animation: glmic 1.2s ease-in-out infinite; }
.gl-search__mic.is-on path, .gl-search__mic.is-on rect { stroke: #000; }
@keyframes glmic { 50% { box-shadow: 0 0 0 8px rgba(230,194,122,.18); } }
.gl-search input { padding-right: 110px; }

/* microphone as its own round button on the globe, under the chat field */
.gl-ui .gl-search__mic.gl-mic--globe { position: absolute; top: auto; right: auto; left: 50%; bottom: 96px; transform: translateX(-50%); width: 56px; height: 56px; pointer-events: auto; z-index: 3;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.22) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gl-ui .gl-search__mic.gl-mic--globe svg { width: 20px; height: 20px; }
.gl-ui .gl-search__mic.gl-mic--globe:hover { border-color: rgba(255,255,255,.5) !important; }
.gl-ui .gl-search__mic.gl-mic--globe.is-on { background: #e6c27a; border-color: #e6c27a !important; }
.gl-search input { padding-right: 64px; }

/* owner: the microphone shows only while the anthem plays */
.gl-ui .gl-search__mic.gl-mic--globe { opacity: 0; pointer-events: none; transition: opacity .5s ease, background .3s, border-color .3s; }
.gl-ui.is-anthem .gl-search__mic.gl-mic--globe { opacity: 1; pointer-events: auto; }

/* round sound button (mute the anthem), shown only while the anthem plays */
.gl-ui .gl-sound { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; z-index: 3; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .5s ease, border-color .3s; }
.gl-ui .gl-sound:hover { border-color: rgba(255,255,255,.5); }
.gl-ui.is-anthem .gl-sound { opacity: 1; pointer-events: auto; }

/* owner: no microphone */
.gl-search__mic { display: none !important; }

/* chat field in our own look (not Google 1:1): soft-square shape, warm hairline, Garoon star, gold send key */
.gl-search__inner { border-radius: 16px; border-color: rgba(230,194,122,.22); background: rgba(10,8,6,.62); transition: clip-path 1.2s ease-out .6s, opacity 1s cubic-bezier(.6,0,.05,1) .6s, transform 1.2s ease-out .6s, min-height .3s ease-in-out, max-height .3s ease-in-out, border-color .35s ease; }
.gl-search__inner:focus-within { border-color: rgba(230,194,122,.55); }
.gl-search input::placeholder { color: #a39d93; }
.gl-search__ico { top: 18px; left: 22px; width: 20px; height: 20px; transition: transform .8s cubic-bezier(.6,0,.05,1); }
.gl-search__inner:focus-within .gl-search__ico { transform: rotate(90deg); }
.gl-ui.is-chat .gl-search__row { border-top-color: rgba(230,194,122,.18); }
.gl-search__send { border-radius: 11px; background: #e6c27a; }
.gl-search__send:disabled { opacity: 1; background: transparent; border: 1px solid rgba(255,255,255,.14) !important; }
.gl-search__send:disabled path { stroke: rgba(255,255,255,.45); }

/* owner: the assistant name above answers a little larger */
.gl-msg--ai .who { font-size: 13px; line-height: 16px; letter-spacing: .6px; color: #b5afa5; margin-bottom: 8px; }

/* owner: title, subtitle and chat field with equal gaps, the whole group centred in the visible screen (below the 52px header).
   --hero-h is the real height of title + gap + subtitle, measured by glui.js (the title wraps on phones). */
.gl-ui { --hh: 52px; --gap: 40px; --hero-h: 144px; --grp: calc(var(--hero-h) + var(--gap) + 56px); --top: calc(var(--hh) + (100vh / var(--zoom, 1) - var(--hh)) / 2 - var(--grp) / 2); }
.gl-hero { gap: var(--gap); transform: translateY(var(--top)); }
.gl-hero h1 { line-height: 80px; } /* tighter box so the gaps look equal, not just measure equal */
.gl-search { transform: translate(-50%, calc(var(--top) + var(--hero-h) + var(--gap) - 10px)); } /* -10px: the field itself slides down 10px when it appears */
@media only screen and (max-width: 1023.98px) {
  .gl-ui { --gap: 24px; }
  .gl-hero h1 { font-size: 36px; line-height: 42px; }
}

/* owner: answers in the same font and size as the chat field, marked with the Garoon star instead of a label */
.gl-thread { padding-left: 22px; padding-right: 22px; }
.gl-msg { font: 500 16px/24px "Basis Grotesque Arabic Pro", system-ui, sans-serif; }
.gl-msg--ai { position: relative; padding-left: 42px; color: #ece8e1; }
.gl-msg--ai .who { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; margin: 0; }
.gl-msg--ai .who svg { display: block; width: 20px; height: 20px; }
.gl-msg--ai .typing { padding: 9px 0; }
.gl-msg--me { background: rgba(230,194,122,.08); border: 1px solid rgba(230,194,122,.16); border-radius: 14px 14px 4px 14px; }
.gl-msg__go span, .gl-msg__more .gl-chip { font-size: 14px; line-height: 20px; }
@media only screen and (max-width: 1023.98px) { .gl-msg { font-size: 14px; line-height: 21px; } .gl-thread { padding-left: 14px; padding-right: 14px; } }

/* owner: the AI page is one screen — no footer under it and no scrolling (this css is loaded only on the AI page) */
footer { display: none !important; }
html, body { overflow: hidden !important; height: 100%; overscroll-behavior: none; }

.gl-credit { position: absolute; right: 16px; bottom: 12px; z-index: 3; font: 400 10px/14px "Basis Grotesque Arabic Pro", system-ui, sans-serif; color: rgba(255,255,255,.28); text-decoration: none; }
.gl-credit:hover { color: rgba(255,255,255,.6); }

@media only screen and (max-width: 1023.98px) { .gl-search__ico { left: 16px; top: 19px; width: 18px; height: 18px; } .gl-search input { padding-left: 46px; } .gl-msg--ai { padding-left: 32px; } .gl-msg--ai .who, .gl-msg--ai .who svg { width: 18px; height: 18px; } }

/* owner: the chat field should stand out more; and the assistant's name written once, as a small label on the field */
.gl-search__inner { border-color: rgba(230,194,122,.42); background: rgba(14,11,8,.78);
  box-shadow: 0 0 0 1px rgba(230,194,122,.06), 0 12px 48px rgba(0,0,0,.55), 0 0 42px rgba(230,194,122,.10); animation: glfield 4.5s ease-in-out infinite; }
.gl-search__inner:focus-within { border-color: rgba(230,194,122,.75); box-shadow: 0 0 0 4px rgba(230,194,122,.10), 0 12px 48px rgba(0,0,0,.55), 0 0 56px rgba(230,194,122,.16); animation: none; }
@keyframes glfield { 50% { box-shadow: 0 0 0 1px rgba(230,194,122,.10), 0 12px 48px rgba(0,0,0,.55), 0 0 60px rgba(230,194,122,.18); } }
.gl-search input::placeholder { color: #cfc8bc; }
.gl-search__label { position: absolute; left: 18px; bottom: calc(100% + 10px); font: 600 11px/14px "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: .16em; color: #e6c27a;
  opacity: 0; transition: opacity .8s ease 1.4s; pointer-events: none; }
.gl-ui.show-hero .gl-search__label { opacity: 1; }
.gl-ui.is-chat .gl-search__label { opacity: 0; transition-delay: 0s; }
.gl-ui.show-hero .gl-search__inner { clip-path: inset(-80px); } /* let the glow show outside the field */

/* owner: on the AI page the site menu is dark glass over the globe (gold hairlines, gold hover) instead of the beige sheet */
.menu_modal, .menu_modal-content { background: rgba(8,7,6,.62) !important; -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); }
.menu_modal, .menu_modal * { color: #ece8e1 !important; }
.menu_modal .menu_item, .menu_modal .menu_item-head, .menu_modal .social-item, .menu_modal .menu_block_social, .menu_modal .menu_item_last,
.menu_modal .menu-wrapper-content, .menu_modal .menu_block { border-color: rgba(230,194,122,.32) !important; }
.menu_modal .menu_item-head, .menu_modal .menu_block_social > *:first-child, .menu_modal .menu_item_last, .menu_modal .menu_item_last * { color: #a39d93 !important; }
.menu_modal .menu_item a { transition: color .35s ease; }
.menu_modal .menu_item a:hover, .menu_modal .menu_item a:hover * , .menu_modal .social-item a:hover, .menu_modal .social-item:hover * { color: #e6c27a !important; }
.menu_modal svg path { stroke: currentColor; }
.menu_modal .agency-work-count { color: #e6c27a !important; }
/* header while the menu is open: stays dark with a light logo */
.header_top.active_header { background: transparent !important; }
.header_top.active_header svg path { fill: #e7e4e0 !important; }
.header_top.active_header .header_menu, .header_top.active_header .header_menu *, .header_top.active_header span { color: #e7e4e0 !important; }
.header_top.active_header .header_menu-circles circle { fill: #e6c27a !important; }

/* owner: the top bar on the AI page — no grey strip and no line: the globe runs under a soft shade, menu is a glass pill */
.header_top:not(.active_header) { background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0)) !important; border-bottom-color: transparent !important; }
.header_top .header_menu { padding: 7px 16px 7px 11px; border: 1px solid rgba(230,194,122,.35); border-radius: 999px; background: rgba(14,11,8,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .3s ease, background .3s ease; }
.header_top .header_menu:hover { border-color: rgba(230,194,122,.7); background: rgba(14,11,8,.7); }
.header_top:not(.active_header) .header_menu-circles circle { fill: #e6c27a; }

/* ---------- scroll story (owner: a visitor who scrolls should understand where he is and what this page is for) ---------- */
.gl-story { position: absolute; left: 50%; top: calc(var(--hh) + (100vh / var(--zoom, 1) - var(--hh)) / 2); transform: translate(-50%, -50%); width: min(860px, calc(100vw / var(--zoom, 1) - 48px)); pointer-events: none; z-index: 2; }
.gl-step { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-40%); text-align: center; opacity: 0; filter: blur(6px); transition: opacity .7s ease, transform .9s cubic-bezier(.22,1,.36,1), filter .7s ease; }
.gl-step.is-on { opacity: 1; transform: translateY(-50%); filter: none; pointer-events: auto; transition-delay: .25s; }
.gl-step__kick { margin: 0 0 18px; font: 600 12px/16px "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #e6c27a; }
.gl-step h2 { margin: 0; font: 400 56px/64px "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: -.5px; color: #fff; }
.gl-step h2 + p { margin: 22px auto 0; max-width: 620px; font: 400 18px/28px "Basis Grotesque Arabic Pro", system-ui, sans-serif; color: #d8d3cb; }
.gl-step__cta { display: inline-block; margin-top: 28px; padding: 14px 26px; border-radius: 12px; background: #e6c27a; color: #000; font: 500 16px/20px "Basis Grotesque Arabic Pro", system-ui, sans-serif; text-decoration: none; transition: transform .3s ease; }
.gl-step__cta:hover { transform: translateY(-2px); }
/* first screen hides while the story runs; on the last step the chat field comes back under the text */
.gl-ui .gl-hero, .gl-ui .gl-search { transition-property: opacity, transform, max-height; }
.gl-ui.is-story .gl-hero { opacity: 0; pointer-events: none; }
.gl-ui.is-story:not(.is-story-end) .gl-search { opacity: 0; pointer-events: none; }
.gl-ui.is-story-end .gl-story { top: calc(var(--hh) + (100vh / var(--zoom, 1) - var(--hh)) / 2 - 60px); }
.gl-ui.is-story-end .gl-search { transform: translate(-50%, calc(var(--hh) + (100vh / var(--zoom, 1) - var(--hh)) / 2 + 150px)); }
/* scroll hint and step dots */
.gl-scrollhint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transition: opacity .8s ease; pointer-events: none; z-index: 2; }
.gl-scrollhint span { font: 500 11px/14px "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #a39d93; }
.gl-scrollhint i { position: relative; width: 1px; height: 36px; background: rgba(230,194,122,.25); overflow: hidden; }
.gl-scrollhint i:after { content: ""; position: absolute; left: -1px; top: -8px; width: 3px; height: 8px; border-radius: 2px; background: #e6c27a; animation: glhint 1.8s ease-in-out infinite; }
@keyframes glhint { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(44px); opacity: 0; } }
.gl-ui.show-hero .gl-scrollhint { opacity: 1; transition-delay: 2.2s; }
.gl-ui.was-scrolled .gl-scrollhint, .gl-ui.is-chat .gl-scrollhint { opacity: 0; transition-delay: 0s; }
.gl-dots { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .8s ease 2.2s; z-index: 3; }
.gl-ui.show-hero .gl-dots { opacity: 1; pointer-events: auto; }
.gl-ui.is-chat .gl-dots { opacity: 0; pointer-events: none; transition-delay: 0s; }
.gl-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; transition: background .3s, transform .3s; }
.gl-dots i.is-on { background: #e6c27a; transform: scale(1.5); }
@media only screen and (max-width: 1023.98px) {
  .gl-step h2 { font-size: 32px; line-height: 38px; } .gl-step h2 + p { font-size: 15px; line-height: 23px; }
  .gl-dots { right: 12px; } .gl-ui.is-story-end .gl-search { transform: translate(-50%, calc(var(--hh) + (100vh / var(--zoom, 1) - var(--hh)) / 2 + 130px)); }
}

/* soft dark pool under the story text so it reads over bright particles */
.gl-step::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130%; height: 220%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.72), rgba(0,0,0,.45) 55%, rgba(0,0,0,0)); }

/* ---------- pins: small windows on the globe (replaces the step story) ---------- */
.gl-story, .gl-dots { display: none !important; }
.gl-pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.gl-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .5s ease; will-change: transform; }
.gl-pin.is-on { opacity: calc(var(--f, 1)); }
.gl-pin > i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #e6c27a; box-shadow: 0 0 0 4px rgba(230,194,122,.18), 0 0 18px rgba(230,194,122,.6); }
.gl-pin > i:after { content: ""; position: absolute; left: 3px; top: -42px; width: 1px; height: 38px; background: linear-gradient(to top, rgba(230,194,122,.7), rgba(230,194,122,0)); }
.gl-pin__card { position: absolute; left: -16px; bottom: 46px; width: 240px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(230,194,122,.32);
  background: rgba(12,10,8,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translateY(6px); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.gl-pin.is-on .gl-pin__card { transform: none; }
.gl-pin__card b { display: block; margin-bottom: 4px; font: 600 11px/14px "Basis Grotesque Arabic Pro", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #e6c27a; }
.gl-pin__card span { display: block; font: 400 13px/19px "Basis Grotesque Arabic Pro", system-ui, sans-serif; color: #e9e4dc; }
.gl-ui.is-chat .gl-pins { opacity: 0; }
@media only screen and (max-width: 1023.98px) { .gl-pin__card { width: 190px; padding: 10px 12px; } .gl-pin__card span { font-size: 12px; line-height: 17px; } }

/* the sign window sits to the right of the sign (not above it, where it could run under the header) and opens softly */
.gl-pin--sign .gl-pin__card { left: 26px; bottom: auto; top: -26px; transform: translateX(-8px); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.gl-pin--sign.is-on .gl-pin__card { transform: none; }
.gl-pin--sign > i:after { display: none; }
.gl-pin--sign { transition: opacity .9s ease; }

/* owner: scroll just turns the globe — no sign tour windows */
.gl-pins { display: none !important; }

/* owner: title and subtitle closer together (the chat field keeps its own gap below) */
.gl-hero { gap: 9px; }
@media only screen and (max-width: 1023.98px) { .gl-hero { gap: 10px; } }

/* small messages that appear in the free space while scrolling (no headings) */
.gl-whispers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.gl-whisper { position: absolute; max-width: 260px; margin: 0; font: 400 15px/22px "Basis Grotesque Arabic Pro", system-ui, sans-serif; color: #ddd7ce;
  opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.22,1,.36,1), filter .9s ease; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.gl-whisper.in { opacity: .92; transform: none; filter: none; }
.gl-whisper.out { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
@media only screen and (max-width: 1023.98px) { .gl-whisper { max-width: 180px; font-size: 13px; line-height: 19px; } }

/* owner: each message sits on a small frosted-glass plate; tighter lines */
.gl-whisper { padding: 10px 14px; border-radius: 12px; line-height: 18px; text-shadow: none; color: #e6e0d7;
  background: rgba(14,11,8,.42); border: 1px solid rgba(230,194,122,.22); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05); }
@media only screen and (max-width: 1023.98px) { .gl-whisper { padding: 8px 11px; line-height: 16px; } }

/* owner: during the load (lights coming on) the site header is hidden too; it fades in with the title, text and chat */
.header_top { transition: opacity .9s ease, background .3s ease; }
html:not(.gl-ready) .header_top { opacity: 0 !important; pointer-events: none !important; }

/* messages now live in space: positioned by JS from a point on the globe (left/top 0 + transform) */
.gl-whisper { left: 0 !important; top: 0 !important; transform-origin: 50% 100%; white-space: normal; will-change: transform, opacity; }
.gl-whisper.in { opacity: calc(.95 * var(--f, 1)); filter: none; }
.gl-whisper.out { opacity: 0; filter: blur(4px); }
.gl-whisper { transition: opacity .9s ease, filter .9s ease !important; }

/* messages now sit deep inside the globe, among the network: a little smaller and softer */
.gl-whisper { font-size: 14px; background: rgba(14,11,8,.36); }
/* iPhone: the field text must be 16px or iOS zooms the whole page in when the field is tapped */
@media only screen and (max-width: 1023.98px) {
  .gl-search input { font-size: 16px !important; }
  .header_top .header_menu { height: auto !important; min-height: 0 !important; padding: 6px 12px 6px 9px !important; line-height: 1; align-items: center; display: inline-flex; gap: 8px; }
  .header_top .header_menu > * { margin-top: 0 !important; margin-bottom: 0 !important; }
}

/* owner: title weight 500 */
.gl-hero h1 { font-weight: 500; }

/* owner: scroll messages removed */
.gl-whispers { display: none !important; }
