/* Generated by tools/sync-mock.py from globe-v4.html. */

:root { --pc-duration-slower:600ms; --pc-duration-stagger:50ms; --pc-ease-out:cubic-bezier(0.4, 1, 0.6, 1); --pc-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1); }
/* One pinned stage: the run is tall, the stage sticks, scroll progress drives one camera. */
.g-run { position:relative; height:220vh; height:220svh; background:#0d1b2a; }
/* Space in the brand navy: a faint star field and fine grain over a deep radial falloff, glowing softly behind the globe
   (Blue 950 #0c1522 and Blue 900 #142436 with the stage's own #102033). Measured mean colour against the earlier flat
   stage: CIEDE2000 1.06 at 1440 and 0.98 at 390. */
.g-stage { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; isolation:isolate;
  background:url(home/globe/grain.svg),
    radial-gradient(42% 58% at 66% 48%, rgba(40,72,110,.55) 0%, rgba(20,36,54,.35) 45%, rgba(12,21,34,0) 75%),
    radial-gradient(120% 100% at 66% 48%, #102033 0%, #0c1522 55%, #060c14 100%); }
.g-globe { position:absolute; inset:0; z-index:0; opacity:var(--globe-o,0); pointer-events:none; }
/* The city gives way from the centre outward, in step with the hex wave: a radial mask whose clear core grows. */
.g-city { position:absolute; inset:0; z-index:1; pointer-events:none; opacity:var(--city-o,1);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, transparent calc(var(--mr,-30) * 1%), #000 calc(var(--mr,-30) * 1% + 30%));
  mask-image:radial-gradient(circle at 50% 50%, transparent calc(var(--mr,-30) * 1%), #000 calc(var(--mr,-30) * 1% + 30%)); }
.g-city img { width:100%; height:100%; max-width:none; object-fit:cover; object-position:50% 50%; }
/* The site's still star field through the hand-off; home-globe.js fades it out as the drifting one fades in. */
.g-stars0 { position:absolute; inset:0; z-index:-1; pointer-events:none; background:url(home/globe/stars.svg) center/cover no-repeat; }
/* The sky's stars: a tiled layer one tile wider than the stage, moved by home-globe.js with the globe's turn. */
.g-stars { position:absolute; top:0; left:0; bottom:0; width:calc(100% + 1600px); z-index:-1; pointer-events:none;
  background:url(home/globe/stars.svg) 0 0 / 1600px 1000px repeat; will-change:transform; }
.g-stars i { position:absolute; width:2px; height:2px; border-radius:50%; background:#eef4fb; opacity:.12; animation:g-twinkle 5s ease-in-out infinite alternate; }
@keyframes g-twinkle { from { opacity:.08; } to { opacity:.8; } }
.still .g-stars i { animation:none; }
/* The life layer: lit metros, their pulses, sheds and arcs, drawn over the globe and under the words. */
.g-life { position:absolute; inset:0; z-index:3; pointer-events:none; width:100%; height:100%; }
.g-mosaic { position:absolute; inset:0; z-index:2; pointer-events:none; opacity:var(--mosaic-o,0); transform:scale(var(--mosaic-s,1)); transform-origin:50% 50%; }
.g-words { position:absolute; inset:0; z-index:4; display:flex; align-items:center; pointer-events:none; }
.g-copy { max-width:34rem; pointer-events:auto; }
.g-copy > * { opacity:0; translate:0 12px; transition:opacity var(--pc-duration-slow, 400ms) var(--pc-ease-out), translate var(--pc-duration-slow, 400ms) var(--pc-ease-out); }
.words-in .g-copy > * { opacity:1; translate:0 0; }
.words-in .g-copy > :nth-child(2) { transition-delay:calc(1 * var(--pc-duration-stagger)); }
.words-in .g-copy > :nth-child(3) { transition-delay:calc(2 * var(--pc-duration-stagger)); }
.g-copy .h-sec { font-size:3rem; line-height:1.06; }
.g-copy .tone { color:#adc9e6; }
.g-copy .btn-primary { background:#adc9e6; color:#0d1b2a; }
.g-copy .btn-secondary { background:transparent; border-color:rgba(244,246,248,.55); }
.no-webgl .g-globe { display:none; }
/* The arcs keep clear of the words: transparent up to --g-fade (the headline's right edge plus 2% of the width, set by
   home-globe.js), opaque 7% later. The words keep the stops' shared left edge and side-by-side buttons. */
@media (min-width:761px){
  .g-life { -webkit-mask-image:linear-gradient(90deg, transparent var(--g-fade, 34%), #000 calc(var(--g-fade, 34%) + 7%));
    mask-image:linear-gradient(90deg, transparent var(--g-fade, 34%), #000 calc(var(--g-fade, 34%) + 7%)); }
}

@media (max-width:760px){
  .g-stage { background:url(home/globe/grain.svg),
    radial-gradient(70% 40% at 50% 30%, rgba(40,72,110,.55) 0%, rgba(12,21,34,0) 75%),
    radial-gradient(140% 100% at 50% 30%, #102033 0%, #0c1522 55%, #060c14 100%); }
  .g-words { align-items:flex-end; }
  .g-words .wrap { padding-bottom:32px; }
  .g-copy .h-sec { font-size:2.125rem; }
  .g-copy .intro { margin-top:12px; }
  .g-copy .actions { margin-top:22px; }
}
.still .g-run { height:auto; }
.still .g-stage { position:relative; }
.still .g-stage :is(.g-city, .g-mosaic) { display:none; }
.still .g-copy > * { transition:none; }
.g-kfx { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.k-on .g-copy > * { transition:none; }

/* The city gives way from its edges inward (design partner 13b, 12-03), in step with a hex wave that also forms from
   the edges in, so no frame shows the picture's edge or the space behind it while the camera pulls out. */
.g-city { -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 calc((80 - var(--mr,-30)) * 1%), transparent calc((110 - var(--mr,-30)) * 1%));
  mask-image:radial-gradient(circle at 50% 50%, #000 calc((80 - var(--mr,-30)) * 1%), transparent calc((110 - var(--mr,-30)) * 1%)); }
.g-city img { transform:translate(var(--city-x,0px), var(--city-y,0px)) scale(var(--city-s,1)); transform-origin:50% 50%;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 var(--city-f,0%), #000 calc(100% - var(--city-f,0%)), transparent), linear-gradient(180deg, transparent, #000 var(--city-f,0%), #000 calc(100% - var(--city-f,0%)), transparent);
  -webkit-mask-composite:source-in; mask-image:linear-gradient(90deg, transparent, #000 var(--city-f,0%), #000 calc(100% - var(--city-f,0%)), transparent), linear-gradient(180deg, transparent, #000 var(--city-f,0%), #000 calc(100% - var(--city-f,0%)), transparent); mask-composite:intersect; }


/* The closing section speaks to AI teams; building owners get one quiet text link under the buttons (CTA option B). */
.g-copy .g-owner { margin:18px 0 0; font-size:.9375rem; line-height:1.4; }
.g-copy .g-owner a { color:#adc9e6; text-decoration:underline; text-decoration-color:rgba(173,201,230,.45); text-underline-offset:3px; }
.g-copy .g-owner a:hover { text-decoration-color:currentColor; }
@media (max-width:760px){
  .g-copy .g-owner { margin-top:6px; }
  .g-copy .g-owner a { display:inline-flex; align-items:center; min-height:44px; }
}

/* The city stays whole while the hexagon tiles take it over; no radial mask eats it from the centre or the edges. */
.g-run .g-city { -webkit-mask-image:none; mask-image:none; }
