/* Footer reveal, search overlay, sound button and the page call-to-action card. */

/* Footer stays fixed at the bottom; the page slides up and uncovers it (set by layout.js) */
.foot-reveal .wp-site-blocks>footer{position:fixed;left:0;right:0;bottom:0;z-index:0}
.foot-reveal .wp-site-blocks>footer .foot{border-radius:0!important}
.foot-reveal .wp-site-blocks>:not(header):not(footer){position:relative;z-index:1;background:var(--nx-bg)}
.foot-reveal .wp-site-blocks>:not(header):not(footer):nth-last-child(2){margin-bottom:var(--foot-h)!important;overflow:clip;border-radius:0 0 32px 32px}
.foot a[href^="mailto:"]{white-space:nowrap}

/* Page veil (dim + blur). Colour, strength and blur come from Settings > Overlay Style (--nx-veil-bg, --nx-veil-blur).
   It is a circle that grows out of the element that opened it and shrinks back into it when closed. While the
   search is open it also covers the header, so nothing underneath reacts to hover or clicks. */
.nx-veil{position:fixed;inset:0;z-index:150;background:var(--nx-veil-bg,rgba(8,22,12,.42));-webkit-backdrop-filter:blur(var(--nx-veil-blur,10px));backdrop-filter:blur(var(--nx-veil-blur,10px));visibility:hidden;pointer-events:none;-webkit-clip-path:circle(0px at var(--vx,50%) var(--vy,0px));clip-path:circle(0px at var(--vx,50%) var(--vy,0px));transition:clip-path .65s cubic-bezier(.65,0,.35,1) .12s,-webkit-clip-path .65s cubic-bezier(.65,0,.35,1) .12s,visibility 0s .77s}
.has-search .nx-veil,.has-mega .nx-veil{visibility:visible;-webkit-clip-path:circle(170vmax at var(--vx,50%) var(--vy,0px));clip-path:circle(170vmax at var(--vx,50%) var(--vy,0px));transition-delay:0s}
.has-search .nx-veil{z-index:250;pointer-events:auto}
html .nx-search-pop{position:fixed;left:0;right:0;top:108px;z-index:300;padding:0 var(--px);opacity:0;pointer-events:none;transform:translateY(-10px);transition:opacity .3s,transform .4s var(--ease)}
.has-search .nx-search-pop{opacity:1;pointer-events:auto;transform:none}
html .nx-search-in{margin:0 auto}
.has-search .nx-search-in{animation:nx-pop .45s var(--ease) both}
@keyframes nx-pop{from{opacity:0;transform:translateY(-12px) scale(.97)}to{opacity:1;transform:none}}
.has-search .tut-results:not([hidden]){animation:nx-pop .35s var(--ease) both}
@media(prefers-reduced-motion:reduce){.nx-veil{transition-duration:.01ms}}

/* Mega menu panel leaves first, with no waiting (the veil zooms out right after) */
html .mm-panel{transition:opacity .15s,transform .2s var(--ease),visibility 0s .15s}

/* Sound on/off button (header) */
.nx-sound-btn{margin:0}
.nx-sound-btn a{--ico:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M11 5L6 9H3v6h3l5 4zM15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/></svg>");position:relative;display:block;flex:none;width:44px;height:44px;border:1px solid var(--nx-line-strong);border-radius:50%;color:var(--nx-ink);transition:background-color .2s,border-color .2s,color .2s}
.nx-sound-btn a[aria-pressed=false]{--ico:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M11 5L6 9H3v6h3l5 4zM22 9l-6 6M16 9l6 6'/></svg>");color:var(--nx-mute)}
.nx-sound-btn a::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.nx-sound-btn a:hover{border-color:var(--nx-brand);background:color-mix(in srgb,var(--nx-brand) 12%,transparent)}

/* Page call-to-action card */
.nx-cta2{padding-block:clamp(40px,5vw,72px) clamp(56px,7vw,96px)}
.cta2-card{position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:28px 40px;overflow:hidden;padding:clamp(28px,4.4vw,56px);border-radius:28px;background:var(--nx-dark);color:#fff}
.cta2-card::before{content:"";position:absolute;right:-6%;top:-60%;width:46%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(86,200,30,.5),transparent 66%);animation:cta-glow 9s ease-in-out infinite;pointer-events:none}
.cta2-card::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.14) 1.2px,transparent 1.6px);background-size:24px 24px;-webkit-mask-image:linear-gradient(100deg,transparent 40%,#000);mask-image:linear-gradient(100deg,transparent 40%,#000);pointer-events:none}
@keyframes cta-glow{50%{transform:translate(-14%,18%) scale(1.15)}}
.cta2-card>*{position:relative;z-index:1}
html body .nx .cta2-card h2{margin:0;max-width:18ch;color:#fff}
.cta2-card p{margin-top:10px;max-width:30em;color:rgba(255,255,255,.76);font-size:1.0625rem}
.cta2-card .wp-block-buttons{margin:0}
.sp-cta{max-width:720px;margin:56px auto 0}
@media(prefers-reduced-motion:reduce){.cta2-card::before{animation:none}}

/* Hero sky backdrop, same on every screen size and both colour modes. It reads as an evening sky that melts into the
   brand green: deep night blue overhead, a faint moonlit glow behind the moon, soft teal and blue haze bands (like
   the Milky Way or an aurora), then brand green rising to a bright green glow on the horizon. Plain gradients, so it
   is painted once and costs nothing while the page runs. The dark hero keeps the white heading readable. */
html section.hero.has-hero-gradient-background{background-image:radial-gradient(34% 26% at 82% 15%,rgba(255,246,200,.2),transparent 70%),radial-gradient(75% 15% at 14% 27%,rgba(70,200,150,.16),transparent 72%),radial-gradient(65% 13% at 76% 42%,rgba(90,150,255,.12),transparent 72%),radial-gradient(55% 12% at 30% 55%,rgba(120,230,120,.1),transparent 72%),radial-gradient(130% 36% at 50% 116%,rgba(140,240,70,.55),transparent 70%),linear-gradient(180deg,#030d1a 0%,#07202b 16%,#0b3a30 34%,#0f5420 56%,#1a7405 80%,#1b6600 100%)!important}
.hero-orbs span:nth-child(1){display:none}
.hero h1,.hero .hero-copy p{text-shadow:0 1px 14px rgba(3,21,11,.35)}

/* Home header sits transparent on top of that dark hero, so until it turns solid on scroll its logo, menu and
   icon buttons are light. The dropdown panels keep their own light surface and dark text. */
html:not([data-theme="dark"]) body.home .wp-site-blocks>header:not(.is-scrolled){--hd-fg:#fff;--hd-line:rgba(255,255,255,.42)}
body.home .wp-site-blocks>header:not(.is-scrolled) :is(.nx-brand a,.nx-brand p,.mm-top>li>a,.mm-top>li>a .mm-caret,.mm-top>li>button){color:var(--hd-fg,inherit)!important}
body.home .wp-site-blocks>header:not(.is-scrolled) :is(.mm-top>li>a:hover,.mm-top>li>a[aria-current],.mm-top>li.current-menu-item>a,.mm-top>li.current>a){color:#d4f6bb!important}
body.home .wp-site-blocks>header:not(.is-scrolled) :is(.nx-sound-btn a,.nx-search-btn a,.nx-theme-btn .wp-block-button__link,.wp-block-navigation__responsive-container-open){color:var(--hd-fg,inherit)!important;border-color:var(--hd-line,var(--nx-line-strong))!important}
body.home .wp-site-blocks>header:not(.is-scrolled) :is(.nx-sound-btn a,.nx-search-btn a,.nx-theme-btn .wp-block-button__link):hover{background:rgba(255,255,255,.14)!important}

/* Hero sky: twinkling stars of a few sizes and tints, an occasional shooting star, a moon that drifts and glows,
   soft clouds drifting both ways at different speeds and birds flying left, right, up and down on different
   paths, forever.
   Everything is CSS only and animates just translate / scale / rotate / opacity on a handful of small elements, so
   it stays on the compositor: no photos, no extra requests, no layout or paint work while it runs. A few lines of
   script (functions.php) pause the whole sky while the hero is scrolled out of view, so it costs nothing further
   down the page.
   Stars are the hero's ::after; the moon, clouds and birds are the .sk elements (added in functions.php) plus the
   orbs layer's own ::before / ::after birds. The orbs layer already clips overflow. */
.hero::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(circle,#fff 0 1.4px,transparent 2px),radial-gradient(circle,#fff 0 1px,transparent 1.6px),radial-gradient(circle,#d4f6bb 0 1.6px,transparent 2.2px),radial-gradient(circle,#fff 0 .7px,transparent 1.2px),radial-gradient(circle,#bfe4ff 0 1.3px,transparent 1.9px),radial-gradient(circle,#fff6c8 0 1.1px,transparent 1.7px);background-size:210px 170px,130px 150px,290px 240px,74px 96px,330px 270px,250px 210px;background-position:30px 20px,90px 70px,160px 110px,12px 36px,210px 60px,120px 150px;-webkit-mask-image:linear-gradient(180deg,#000 0,#000 28%,transparent 80%);mask-image:linear-gradient(180deg,#000 0,#000 28%,transparent 80%);opacity:.7;animation:hero-twinkle 5s ease-in-out infinite}
@keyframes hero-twinkle{0%,100%{opacity:.3}50%{opacity:.9}}
.hero-orbs{contain:paint}
.hero-orbs .sk,.hero-orbs::before,.hero-orbs::after{position:absolute;left:0;display:block;pointer-events:none;will-change:translate}

/* Shooting star: one streak every so often, then quiet */
.hero-orbs span:nth-child(4){left:auto;right:22%;top:15%;width:130px;height:2px;border-radius:2px;background:linear-gradient(90deg,#fff,rgba(255,255,255,0));box-shadow:none;filter:none;rotate:-26.6deg;opacity:0;animation:shoot 11s ease-in infinite}
@keyframes shoot{0%,86%{opacity:0;translate:0 0}88%{opacity:1}100%{opacity:0;translate:-340px 170px}}

/* Birds: two wing shapes, five flight paths (left to right, right to left, climbing, sinking, wavy) */
.hero-orbs::before,.hero-orbs::after,.hero-orbs .bird{content:"";width:28px;height:11px;background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 11Q9 1 17 10Q25 1 32 11'/></svg>") center/contain no-repeat;opacity:.7;will-change:translate,scale}
.hero-orbs .b2,.hero-orbs .b4,.hero-orbs .b6{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 9Q8 -1 17 8Q26 -1 33 9'/></svg>")}
.hero-orbs::before{top:17%;width:34px;height:14px;opacity:.8;animation:fly-lr 26s linear infinite,hero-flap .8s ease-in-out infinite}
.hero-orbs::after{top:36%;width:24px;height:10px;opacity:.55;animation:fly-rl 38s linear -14s infinite,hero-flap 1s ease-in-out infinite}
.hero-orbs .b1{top:46%;animation:fly-up 34s linear -8s infinite,hero-flap .7s ease-in-out infinite}
.hero-orbs .b2{top:64%;width:18px;height:7px;opacity:.6;animation:fly-rl-up 44s linear -22s infinite,hero-flap .9s ease-in-out infinite}
.hero-orbs .b3{top:56%;width:22px;height:9px;opacity:.5;animation:fly-wave 40s linear -3s infinite,hero-flap .85s ease-in-out infinite}
.hero-orbs .b4{top:30%;width:14px;height:6px;opacity:.45;animation:fly-rl-down 52s linear -30s infinite,hero-flap .75s ease-in-out infinite}
.hero-orbs .b5{top:22%;width:16px;height:7px;opacity:.5;animation:fly-lr-down 60s linear -41s infinite,hero-flap 1.1s ease-in-out infinite}
.hero-orbs .b6{top:12%;width:20px;height:8px;opacity:.55;animation:fly-rl-wave 48s linear -12s infinite,hero-flap .8s ease-in-out infinite}
.hero-orbs .b7{top:48%;width:14px;height:6px;opacity:.45;animation:fly-up 34s linear -5.5s infinite,hero-flap .65s ease-in-out infinite}
@keyframes fly-lr{from{translate:-80px 0}35%{translate:35vw -26px}70%{translate:70vw 18px}to{translate:calc(100vw + 80px) -8px}}
@keyframes fly-rl{from{translate:calc(100vw + 80px) 0}40%{translate:60vw 20px}75%{translate:25vw -22px}to{translate:-80px 8px}}
@keyframes fly-up{from{translate:-80px 90px}50%{translate:50vw -20px}to{translate:calc(100vw + 80px) -170px}}
@keyframes fly-lr-down{from{translate:-80px -30px}to{translate:calc(100vw + 80px) 230px}}
@keyframes fly-rl-up{from{translate:calc(100vw + 80px) 70px}50%{translate:45vw -30px}to{translate:-80px -190px}}
@keyframes fly-rl-down{from{translate:calc(100vw + 80px) -20px}to{translate:-80px 210px}}
@keyframes fly-wave{0%{translate:-80px 0}16%{translate:16vw -34px}33%{translate:33vw 20px}50%{translate:50vw -30px}66%{translate:66vw 24px}83%{translate:83vw -22px}100%{translate:calc(100vw + 80px) 0}}
@keyframes fly-rl-wave{0%{translate:calc(100vw + 80px) 0}20%{translate:80vw 28px}40%{translate:60vw -26px}60%{translate:40vw 30px}80%{translate:20vw -20px}100%{translate:-80px 6px}}
@keyframes hero-flap{0%,100%{scale:1 1}50%{scale:1 .55}}

/* Clouds: soft puffy edges, three drift right and three drift left at different speeds, each slowly breathing */
.hero-orbs .cloud{width:200px;height:80px;background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'><defs><filter id='b' x='-20%' y='-40%' width='140%' height='180%'><feGaussianBlur stdDeviation='4.5'/></filter></defs><g fill='white' filter='url(%23b)'><ellipse cx='60' cy='54' rx='42' ry='17'/><ellipse cx='104' cy='46' rx='46' ry='25'/><ellipse cx='146' cy='55' rx='36' ry='15'/><ellipse cx='82' cy='36' rx='26' ry='19'/><ellipse cx='124' cy='32' rx='22' ry='16'/></g></svg>") center/contain no-repeat}
.hero-orbs .c2,.hero-orbs .c5{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'><defs><filter id='b' x='-20%' y='-60%' width='140%' height='220%'><feGaussianBlur stdDeviation='5'/></filter></defs><g fill='white' filter='url(%23b)'><ellipse cx='50' cy='46' rx='36' ry='10'/><ellipse cx='100' cy='40' rx='60' ry='13'/><ellipse cx='154' cy='47' rx='34' ry='9'/><ellipse cx='84' cy='33' rx='28' ry='9'/></g></svg>")}
.hero-orbs .c1{top:20%;opacity:.16;animation:cloud-r 100s linear -35s infinite,cloud-breathe 16s ease-in-out infinite alternate}
.hero-orbs .c2{top:38%;width:260px;height:104px;opacity:.1;animation:cloud-l 140s linear -60s infinite,cloud-breathe 22s ease-in-out -6s infinite alternate}
.hero-orbs .c3{top:62%;width:230px;height:92px;opacity:.1;animation:cloud-r 170s linear -100s infinite,cloud-breathe 19s ease-in-out -3s infinite alternate}
.hero-orbs .c4{top:8%;width:150px;height:60px;opacity:.12;animation:cloud-l 85s linear -20s infinite,cloud-breathe 14s ease-in-out -9s infinite alternate}
.hero-orbs .c5{top:76%;width:300px;height:120px;opacity:.07;animation:cloud-l 190s linear -120s infinite,cloud-breathe 25s ease-in-out -12s infinite alternate}
.hero-orbs .c6{top:50%;width:120px;height:48px;opacity:.12;animation:cloud-r 75s linear -50s infinite,cloud-breathe 13s ease-in-out -2s infinite alternate}
@keyframes cloud-r{from{translate:-320px 0}to{translate:calc(100vw + 320px) 0}}
@keyframes cloud-l{from{translate:calc(100vw + 320px) 0}to{translate:-320px 0}}
@keyframes cloud-breathe{from{scale:1 1}to{scale:1.1 1.18}}

/* Moon: floats along a slow arc, turns very slowly, and its halo pulses */
.hero-orbs .moon{left:auto;right:11%;top:13%;width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 63% 60%,rgba(120,112,60,.18) 0 8px,transparent 9px),radial-gradient(circle at 36% 36%,rgba(120,112,60,.14) 0 12px,transparent 13px),radial-gradient(circle at 70% 26%,rgba(120,112,60,.12) 0 5px,transparent 6px),radial-gradient(circle at 34% 32%,#fffdf0,#f4f0cc 58%,#dcd9a8);box-shadow:0 0 24px 6px rgba(255,251,214,.26);opacity:.95;animation:moon-arc 30s ease-in-out infinite,moon-turn 140s linear infinite}
.hero-orbs .moon::after{content:"";position:absolute;inset:-70%;border-radius:50%;background:radial-gradient(circle,rgba(255,251,214,.3),rgba(255,251,214,0) 62%);animation:moon-halo 5s ease-in-out infinite;will-change:scale,opacity}
@keyframes moon-arc{0%,100%{translate:0 0}25%{translate:-34px 20px}50%{translate:-70px -6px}75%{translate:-30px -24px}}
@keyframes moon-turn{to{rotate:360deg}}
@keyframes moon-halo{0%,100%{scale:.85;opacity:.55}50%{scale:1.15;opacity:1}}

@media(max-width:600px){
.hero-orbs .moon{right:8%;top:5%;width:44px;height:44px}
@keyframes moon-arc{0%,100%{translate:0 0}25%{translate:-14px 10px}50%{translate:-28px -4px}75%{translate:-12px -12px}}
.hero-orbs .c5,.hero-orbs .c6,.hero-orbs .b4,.hero-orbs .b5,.hero-orbs .b7{display:none}
}
@media(prefers-reduced-motion:reduce){.hero::after,.hero-orbs::before,.hero-orbs::after,.hero-orbs .sk,.hero-orbs .moon::after,.hero-orbs span:nth-child(4){animation:none}.hero-orbs::before,.hero-orbs::after,.hero-orbs .bird,.hero-orbs span:nth-child(4){display:none}}

/* Speed: once the hero has scrolled out of view the whole sky is paused (the class comes from functions.php). */
html.hero-off .hero::after,html.hero-off .hero-orbs *,html.hero-off .hero-orbs::before,html.hero-off .hero-orbs::after,html.hero-off .hero-orbs .moon::after{animation-play-state:paused!important}

/* The whole sky (dots, stars, moon, clouds, birds) sits behind the hero photo and text, never over them.
   The hero is its own stacking layer on every screen size (on phones it was not, which sent the sky behind the
   hero background and hid it). */
section.hero{isolation:isolate}
.hero::before,.hero::after,html body section.hero .hero-orbs{z-index:-1}

/* Hero photo on desktop: shown whole (contain, never cropped, so the badge text under the portrait stays complete),
   sitting on the bottom of the hero and a little wider than its column so the head rises towards the heading.
   It is capped by the screen height. */
@media(min-width:782px){
.hero-visual .hero-img img{aspect-ratio:auto!important;height:auto;width:112%;max-width:none;margin-left:-6%;max-height:calc(100svh - 190px);object-fit:contain!important;object-position:50% 100%}
}

/* Phones. Order as it always was: heading, text, button, photo, then the two cards. The whole photo is shown
   (contain, never cropped) with its bottom edge fading softly into the hero. The Explore Services button is only
   as wide as its content and sits at the left. The two cards are a neat pair: same width and radius, a quiet
   shadow, the rating card compact and the case-study card as a row with a small thumbnail and a "Case study" label. */
@media(max-width:781px){
.hero .hero-visual .hero-img img{max-height:none!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:50% 100%!important;border-radius:0!important;-webkit-mask-image:linear-gradient(180deg,#000 88%,transparent);mask-image:linear-gradient(180deg,#000 88%,transparent)}
.hero .hero-visual{gap:12px}
html body .hero .wp-block-buttons{align-items:flex-start}
html body .hero .wp-block-buttons>.wp-block-button{width:auto}
html body .hero .wp-block-buttons .wp-block-button__link{width:max-content!important;max-width:100%}
.hero .hero-trust,.hero .hero-card{border:1px solid rgba(255,255,255,.7);box-shadow:0 14px 30px -14px rgba(0,0,0,.5)}
.hero .hero-trust{padding:16px 18px;border-radius:20px}
.hero .hero-trust__title{font-size:1.35rem}
.hero .hero-trust__sub{margin-top:2px;font-size:.9rem}
.hero .hero-trust__row{margin-top:14px}
.hero .hero-trust__avatars i{width:34px;height:34px;border-width:2px;margin-left:-10px}
.hero .hero-card{gap:14px;padding:10px 16px 10px 10px;border-radius:20px}
.hero .hero-card img{width:72px;height:72px;border-radius:14px}
.hero .hero-card__title{display:block;margin:0;font-size:1rem;line-height:1.3}
.hero .hero-card__title::before{content:"Case study";display:block;margin-bottom:3px;font-size:.68rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:#2a8a00}
}
