/* The numbers live in open sky again. The three states carry the story. */
html.ag body .ag-sky-stats .ag-sky-window{display:block!important;height:clamp(330px,34vw,455px)!important;overflow:visible!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.ag body .ag-sky-stats .ag-sky-window:before,
html.ag body .ag-sky-stats .ag-grid,
html.ag body .ag-sky-stats .ag-plus,
html.ag body .ag-sky-stats .scope-choices{display:none!important}
html.ag body .ag-sky-stats .ag-starfield{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;overflow:visible!important}
html.ag body .ag-sky-stats .ag-sky-legend{left:4%;bottom:0;top:auto;transform:none;background:#211a388c;border:1px solid #e9b4ff55;color:#f7eafb}
html.ag body[data-theme=day] .ag-sky-stats .ag-sky-legend{background:#ffffffb8;color:#5c3474;border-color:#a579bc77}
html.ag body .numbers-heading{margin-bottom:18px}
html.ag body .numbers-heading>p{display:none}
html.ag body .ag-stat-index{display:none}
html.ag body #agStatCopy{display:none}
html.ag body .ag-sky-stats[data-step="0"] .ag-st:nth-child(4n) .ag-st-body{animation:sky-client-breathe 4s ease-in-out infinite;animation-delay:calc(var(--i)*-90ms)}
html.ag body .ag-sky-stats[data-step="1"] .ag-links path{animation:sky-connection-glow 3s ease-in-out infinite;animation-delay:calc(var(--k)*-83ms)}
html.ag body .ag-sky-stats[data-step="2"] .ag-st.recurring .ag-ring{animation:sky-return-pulse 3.8s ease-in-out infinite;animation-delay:calc(var(--i)*-100ms)}
@keyframes sky-client-breathe{50%{opacity:.65;filter:drop-shadow(0 0 8px #fff)}}
@keyframes sky-connection-glow{50%{opacity:1;stroke-width:2.2}}
@keyframes sky-return-pulse{50%{opacity:.5;stroke-width:2.3}}

/* Ring depth: the back arc goes behind the opaque planet, the front arc in front. */
html.ag body #kind-words #quoteStars :is(.star-0,.star-3,.star-5) .stellar-point:after{display:none!important;content:none!important}
html.ag body #kind-words #quoteStars .ring-back{z-index:1;clip-path:inset(-12% -12% 48% -12%)}
html.ag body #kind-words #quoteStars .planet-core{z-index:2}
html.ag body #kind-words #quoteStars .ring-front{z-index:3;clip-path:inset(49% -12% -12% -12%)}

/* Restore each logo's color without a drawn outline or a halo around the mark. */
html.ag body .client-satellite[data-brand=sach] .logo-face{filter:none!important;mix-blend-mode:normal!important}
html.ag body .client-satellite[data-brand=sach] .logo-object{filter:none!important}
html.ag body .client-satellite[data-brand=climate] .logo-face,
html.ag body[data-theme=night] .client-satellite[data-brand=climate] .logo-face{filter:url(#climate-ink)!important;mix-blend-mode:normal!important}
html.ag body[data-theme=night] .client-satellite[data-brand=climate] .logo-face{filter:url(#climate-ink) brightness(2.25) saturate(1.18)!important}
html.ag body[data-theme=night] .client-satellite[data-brand=sach] .logo-face{filter:brightness(1.65) saturate(1.12)!important}
html.ag body .client-satellite[data-brand="blue-yonder"] .logo-object:after{background:#00aeef!important;filter:none!important}
html.ag body .client-satellite[data-brand=wrtg] .logo-object:after{background:linear-gradient(90deg,#28b650 0 24%,#052e23 24% 100%)!important;filter:none!important}
html.ag body[data-theme=night] .client-satellite[data-brand=wrtg] .logo-object:after{background:linear-gradient(90deg,#48d977 0 24%,#d7f0e5 24% 100%)!important}
html.ag body[data-theme=night] .client-satellite[data-brand=notable] .logo-face{filter:brightness(0) invert(1)!important}
html.ag body[data-theme=night] .client-satellite[data-brand=kab] .logo-face{filter:brightness(0) invert(1)!important}
html.ag body[data-theme=night] .client-satellite[data-brand=southwest] .logo-face{filter:none!important}
html.ag body[data-theme=night] .client-satellite[data-brand=southwest] .logo-object{filter:none!important}

/* The project link belongs to the same small, tactile control family as the menu. */
html.ag body .closer-look{background:radial-gradient(circle at 1px 1px,#8c74a51a 1px,transparent 1.5px) 0 0/9px 9px,linear-gradient(145deg,#fffefaef,#eaf3fbec)!important;border:1px solid #9db3c8!important;color:#28252d!important;box-shadow:0 10px 23px #45577919,inset 0 1px #fff!important;padding:12px 20px!important}
html.ag body .closer-look span{color:inherit!important}
html.ag body[data-theme=night] .closer-look{background:radial-gradient(circle at 1px 1px,#ffffff10 1px,transparent 1.5px) 0 0/9px 9px,linear-gradient(145deg,#25243fee,#1c2138ee)!important;border-color:#786c94!important;color:#f7effc!important;box-shadow:0 10px 24px #05091966,inset 0 1px #ffffff25!important}

/* Small functional machine details: a plated reel well and visible hardware. */
html.ag body .reel-labels .reel-the{top:0!important;margin-right:3px!important}
html.ag body .reel-labels .reel-word{position:relative;top:8px;gap:1px}
html.ag body .reel-labels{margin-bottom:25px!important}
html.ag body .reel-frame{border:3px solid #77617f;box-shadow:inset 0 0 0 4px #eee4f5,0 4px 0 #7d6792aa,0 12px 24px #3b274522}
html.ag body[data-theme=night] .reel-frame{border-color:#a58ac4;box-shadow:inset 0 0 0 4px #302745,0 4px 0 #130f2c,0 12px 24px #05061788}
html.ag body .machine .screw{background:radial-gradient(circle at 30% 25%,#fff,#cbb8db 44%,#796889 90%);border:1px solid #69567e;box-shadow:0 1px 2px #30213a66}
html.ag body .machine .screw:after{content:'';display:block;width:60%;height:1px;background:#6b5979;position:absolute;left:20%;top:50%;transform:rotate(-30deg)}
html.ag body[data-theme=night] .machine .screw{background:radial-gradient(circle at 30% 25%,#d8c9ea,#756289 47%,#3c3158);border-color:#b394ce}

html.ag body .contact-copy .contact-email{display:inline-block;margin-top:clamp(38px,5vw,75px)!important}
@media(max-width:750px){
 html.ag body .ag-sky-stats .ag-sky-window{height:330px!important}
 html.ag body .reel-labels .reel-word{top:3px}
 html.ag body .reel-labels{margin-bottom:18px!important}
 html.ag body .contact-copy .contact-email{margin-top:26px!important}
}
@media(prefers-reduced-motion:reduce){html.ag body .ag-st-body,html.ag body .ag-links path,html.ag body .ag-ring{animation:none!important}}

/* Editorial italics are one deliberate type voice across the site. */
html.ag body :is(.machine-marquee,.section-heading,.numbers-heading,.manifesto-center,.contact-copy) h2 em{
 font-family:'Bodoni 72',Didot,Georgia,serif!important;font-style:italic!important;font-weight:400!important;
 letter-spacing:-.055em!important;-webkit-text-stroke:0!important;text-shadow:none!important
}
html.ag body .machine-marquee h2 em{font-size:1.08em!important}

/* The word labels sit lower, with their first letters as a subtle accent. */
html.ag body .reel-labels .reel-the,
html.ag body .reel-labels>span:nth-child(3) .reel-the{top:12px!important;left:-7px!important;margin-right:2px!important}
html.ag body .reel-labels>span:nth-child(1) .slot-initial,
html.ag body .reel-labels>span:nth-child(3) .slot-initial{height:clamp(16px,1.65vw,22px)!important}

/* The three choices belong below the large number, inside its reading column. */
html.ag body .ag-sky-stats{grid-template-areas:'sky reading'!important}
html.ag body .ag-sky-reading{display:flex;flex-direction:column;align-items:flex-start}
html.ag body .ag-stat-metric{width:100%;margin-bottom:16px}
html.ag body .ag-stat-steps{display:grid;grid-template-columns:1fr;width:100%;gap:7px;margin:0 0 17px}
html.ag body .ag-stat-steps button{min-height:54px;padding:9px 15px;border-radius:17px;grid-template-columns:32px 1fr;grid-template-rows:auto auto;column-gap:12px;box-shadow:none}
html.ag body .ag-stat-steps button[aria-pressed=true]{box-shadow:0 9px 20px -15px #a55fce99}
html.ag body .ag-stat-steps .ag-step-no{font-size:20px}
html.ag body .ag-stat-steps .ag-step-name{font-size:14px}
html.ag body .ag-stat-steps small{font-size:11px}
html.ag body .ag-sky-legend{display:none!important}

/* In daylight, the statistic lines read as fine lavender threads. */
html.ag body[data-theme=day] .ag-sky-stats .ag-links path{stroke:#b38bc5!important;stroke-width:.8;opacity:.42}
html.ag body[data-theme=day] .ag-sky-stats[data-step='1'] .ag-links path{animation:sky-day-connection 3.5s ease-in-out infinite;animation-delay:calc(var(--k)*-83ms)}
@keyframes sky-day-connection{50%{opacity:.7;stroke-width:1.05}}
html.ag body .ag-sky-stats .ag-ring{stroke-width:.6}
html.ag body .ag-sky-stats[data-step='2'] .ag-st.recurring .ag-ring{animation:sky-return-fine 3.8s ease-in-out infinite;animation-delay:calc(var(--i)*-100ms)}
@keyframes sky-return-fine{50%{opacity:.55;stroke-width:.85}}

/* Keep the planet volume in daylight without the heavy cast shadow. */
html.ag body[data-theme=day] #kind-words #quoteStars .stellar-point{box-shadow:inset -7px -8px 13px #43305d33,0 0 0 1px #ffffffa8!important}
html.ag body[data-theme=day] #kind-words #quoteStars .quote-star[aria-pressed=true] .stellar-point{box-shadow:inset -7px -8px 13px #43305d33,0 0 0 4px #d9aaf080!important}
html.ag body[data-theme=day] #kind-words #quoteStars .planet-core{box-shadow:inset -7px -8px 13px #43305d33,0 0 15px #b898d54d!important}
html.ag body[data-theme=day] #kind-words #quoteStars .quote-star[aria-pressed=true] .planet-core{box-shadow:inset -7px -8px 13px #43305d33,0 0 0 4px #d9aaf080,0 0 18px #cfa6e66b!important}

/* A broad, soft backlight helps every client mark read against either sky. */
html.ag body[data-theme=day] .client-satellite .logo-object,
html.ag body[data-theme=day] .client-satellite[data-brand=lsu] .logo-object,
html.ag body[data-theme=day] .client-satellite[data-brand=linus] .logo-object{filter:drop-shadow(0 0 17px #ffffffeb) drop-shadow(0 0 38px #ffffffad)!important}
html.ag body[data-theme=night] .client-satellite .logo-object{filter:drop-shadow(0 0 18px #ffffffa6) drop-shadow(0 0 42px #e3d8ff80)!important}
html.ag body .client-satellite[data-brand=sach] .logo-face{opacity:0!important}
html.ag body .client-satellite[data-brand=sach] .logo-object{position:relative}
html.ag body .client-satellite[data-brand=sach] .logo-object:after{content:'';position:absolute;inset:0;background:#473278;mask:url('assets/sach-logo.png') center/contain no-repeat;-webkit-mask:url('assets/sach-logo.png') center/contain no-repeat}
html.ag body[data-theme=night] .client-satellite[data-brand=sach] .logo-object:after{background:#bfa5f2}
html.ag body[data-theme=day] .client-satellite[data-brand=sach] .logo-object{filter:drop-shadow(0 0 20px #fff) drop-shadow(0 0 45px #ffffffd9)!important}
html.ag body[data-theme=night] .client-satellite[data-brand=sach] .logo-object{filter:drop-shadow(0 0 20px #ffffffc0) drop-shadow(0 0 45px #d8c8ff9e)!important}
html.ag body[data-theme=night] .client-satellite[data-brand=airforce] .logo-face{filter:brightness(2.2) saturate(.8)!important}
html.ag body[data-theme=night] .client-satellite[data-brand=southwest] .logo-face{filter:brightness(1.55) saturate(.92)!important}

/* The switch stays in its header until that header scrolls away. */
html.ag body.theme-docked #themeToggle{position:fixed!important;right:clamp(16px,2.3vw,36px)!important;bottom:clamp(16px,2.3vw,30px)!important;top:auto!important;left:auto!important;z-index:1000!important;margin:0!important;transform:none!important;box-shadow:0 12px 35px #11172855,0 0 0 1px #ffffff4d!important;backdrop-filter:blur(14px)}
@media(max-width:900px){
 html.ag body .ag-sky-stats{grid-template-areas:'sky' 'reading'!important}
 html.ag body .ag-stat-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 html.ag body .ag-stat-steps button{min-height:92px;padding:10px 9px;grid-template-columns:1fr;grid-template-rows:auto auto auto;row-gap:3px}
 html.ag body .ag-stat-steps .ag-step-no{font-size:15px}
 html.ag body .ag-stat-steps .ag-step-name{font-size:12px}
 html.ag body .ag-stat-steps small{font-size:10px}
}
@media(max-width:750px){
 html.ag body .reel-labels .reel-the,html.ag body .reel-labels>span:nth-child(3) .reel-the{top:6px!important;left:-4px!important;margin-right:0!important}
 html.ag body .reel-labels>span:nth-child(1) .slot-initial,html.ag body .reel-labels>span:nth-child(3) .slot-initial{height:clamp(10px,3vw,14px)!important}
}
@media(prefers-reduced-motion:reduce){html.ag body[data-theme=day] .ag-sky-stats .ag-links path,html.ag body .ag-sky-stats .ag-ring{animation:none!important}}
