/* evolve.css: 3D and motion layered on the live homepage. Every rule is scoped to #abt.ev (set by evolve.js), so without
   the script the page is unchanged. Rules that touch the site's own elements are marked "site element". */

/* ---- A. hero: the case file leans toward the pointer and catches the light ---- */
/* site element: the card itself gets the lean (it is never moved in the page, so its own entrance animation is untouched) */
#abt.ev .ev-tilt { position:relative; transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s ease; }
#abt.ev .ev-tilt.live { border-color:rgba(58,147,196,.45); }
#abt.ev .ev-glint { position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .4s;
  background:radial-gradient(260px circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,.16), transparent 62%); }
#abt.ev .ev-tilt.live > .ev-glint { opacity:1; }

/* ---- B. FORGE: the gates you travel through, and what each one delivers ---- */
#abt.ev .ev-gates { position:relative; height:17rem; margin:0 0 1rem; border-radius:14px; overflow:hidden; border:1px solid rgba(58,147,196,.22); background:linear-gradient(180deg, rgba(5,7,10,.55), rgba(5,7,10,.25)); }
#abt.ev .ev-gates svg { position:absolute; inset:0; width:100%; height:100%; display:block; }
#abt.ev .ev-gate-note { position:absolute; left:0; right:0; bottom:0; margin:0; padding:.6rem .9rem .65rem; background:linear-gradient(to top, rgba(5,7,10,.92) 55%, rgba(5,7,10,0)); color:#d6d3d1; font-size:.8rem; line-height:1.4; text-align:center; }
#abt.ev .ev-gate-note b { color:#3A93C4; font-family:'JetBrains Mono',monospace; font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; margin-right:.3rem; }
/* site elements: the five letter tiles become buttons */
#abt.ev .forge-diagram .reveal-stagger > div { cursor:pointer; touch-action:manipulation; }
#abt.ev .forge-diagram .reveal-stagger > div:focus-visible { outline:2px solid #3A93C4; outline-offset:3px; }
#abt.ev .forge-diagram .reveal-stagger > div.ev-on { border-color:#3A93C4 !important; box-shadow:0 0 0 1px rgba(58,147,196,.55), 0 14px 34px -16px rgba(58,147,196,.85); }
@media (forced-colors:active){ #abt.ev .forge-diagram .reveal-stagger > div.ev-on { outline:2px solid Highlight; outline-offset:-2px; } }
/* a phone, upright or on its side */
@media (max-width:760px), (pointer:coarse) and (max-height:500px){ #abt.ev .ev-gates { height:13rem; } #abt.ev .ev-gate-note { font-size:.74rem; } }

/* ---- D. dark sections: a soft light follows the pointer ---- */
#abt.ev .ev-spot-host { position:relative; }
#abt.ev .ev-spot { position:absolute; inset:0; pointer-events:none; z-index:1; opacity:0; transition:opacity .5s; border-radius:inherit;
  background:radial-gradient(460px circle at var(--mx,50%) var(--my,50%), rgba(58,147,196,.17), transparent 62%); }
#abt.ev .ev-spot.on { opacity:1; }

/* ---- C. "8 industries. 7 countries.": the countries become a globe you can turn (not on phones) ---- */
#abt.ev .ev-globe-row { display:grid; grid-template-columns:1fr; gap:1.5rem; margin-bottom:2.2rem; }
#abt.ev .ev-globe { position:relative; width:min(20rem,78vw); height:min(20rem,78vw); margin:0 auto 1.4rem; }
#abt.ev .ev-globe canvas { width:100%; height:100%; display:block; touch-action:pan-y; -webkit-user-select:none; user-select:none; }
#abt.ev .ev-globe.ev-live canvas { cursor:grab; }
#abt.ev .ev-globe.ev-live canvas:active { cursor:grabbing; }
#abt.ev .ev-hold { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }   /* the still picture that holds the globe's place until it is ready */
#abt.ev .ev-globe-cap { position:absolute; left:0; right:0; bottom:-1.4rem; text-align:center; font-family:'JetBrains Mono',monospace; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:#57534e; white-space:nowrap; }
#abt.ev .ev-globe-cap b { color:#17425D; }
#abt.ev .ev-globe-left > .mb-8 { margin-bottom:1.2rem; }   /* site element: the heading sits closer to the "Serving" line that moved up beside it */
@media (min-width:1024px){
  #abt.ev .ev-globe-row { grid-template-columns:minmax(0,1fr) 23rem; gap:4rem; align-items:center; margin-bottom:2.6rem; }
  #abt.ev .ev-globe { width:23rem; height:23rem; margin:0; }
}
/* site elements: a country name lights up while its country is shown; the highlight is drawn around the word, so no other word moves */
#abt.ev .ev-mk { transition:color .2s, background-color .2s, box-shadow .2s; border-radius:3px; }
#abt.ev .ev-mk.on { background:#17425D; color:#fafaf9 !important; text-decoration:none !important; box-shadow:.25rem 0 0 #17425D, -.25rem 0 0 #17425D; }

/* ---- review chrome (review link only): small, closable, hidden in captures and on narrow views ---- */
#abt.ev .ev-pill { position:fixed; left:.75rem; bottom:.75rem; z-index:9999; display:flex; gap:.45rem; align-items:center; background:rgba(10,10,12,.82); color:#fafaf9; border:1px solid rgba(255,255,255,.2); border-radius:999px; padding:.25rem .3rem .25rem .7rem; font:600 .64rem 'JetBrains Mono',monospace; letter-spacing:.08em; }
#abt.ev .ev-pill a { color:#0a0a0c; background:#3A93C4; border-radius:999px; padding:.2rem .6rem; text-decoration:none; }
#abt.ev .ev-pill button { all:unset; cursor:pointer; width:1.3rem; height:1.3rem; line-height:1.3rem; text-align:center; border-radius:50%; font-size:.9rem; color:#d6d3d1; }
#abt.ev .ev-pill button:hover { background:rgba(255,255,255,.14); }
#abt.ev .ev-pill a:focus-visible, #abt.ev .ev-pill button:focus-visible { outline:2px solid #fafaf9; outline-offset:2px; }
@media (max-width:1100px){ #abt.ev .ev-pill { display:none; } }
#abt.ev.ev-cap .ev-pill { display:none !important; }

@media (prefers-reduced-motion:reduce){ #abt.ev .ev-tilt { transition:none; } }
