/* TAPROOT / The Work in Motion: interactive discipline theatre and considered kinetic detail.
   Decorative motion is opt-in progressive enhancement. Core navigation works without JS. */

/* The founder-provided GeoCrown asset ALREADY includes a phone. No second device frame. */
.u-hero-product .u-hphone.u-hphone-geocrown{
  right:9%;top:37%;width:29%;height:auto;aspect-ratio:529/1287;
  padding:0;border:0;border-radius:0;background:transparent;
  box-shadow:none;overflow:visible;filter:drop-shadow(12px 32px 23px rgba(0,0,0,.76));
  transform-origin:50% 50%;
  animation:uHeroPhoneFloat 7.2s ease-in-out infinite;
}
.u-hero-product .u-hphone-geocrown img{
  display:block;width:100%;height:100%;max-width:100%;
  object-fit:contain;object-position:center;
}
@keyframes uHeroPhoneFloat{
  0%,100%{transform:rotateY(-17deg) rotateX(4deg) rotateZ(5deg) translate3d(0,0,0)}
  50%{transform:rotateY(-13deg) rotateX(5deg) rotateZ(3deg) translate3d(-2px,-13px,0)}
}
@media(min-width:1250px){
 .u-hero-product .u-hphone.u-hphone-geocrown{right:8%;top:31%;width:27%}
}
@media(min-width:761px) and (max-width:1100px){
 .u-hero-product .u-hphone.u-hphone-geocrown{right:22%;top:35%;width:27%}
}
@media(max-width:760px){
 .u-hero-product .u-hphone.u-hphone-geocrown{right:24%;top:3%;width:22%;opacity:.98}
}
@media(max-width:520px){
 .u-hero-product .u-hphone.u-hphone-geocrown{right:26%;top:0;width:22%}
}

/* The restored tabs are previews, not links. These states are exclusive. */
.u-home-directory .u-theatre-tabs{position:relative;z-index:2;margin-bottom:18px}
.u-home-directory .u-theatre-tab{
 display:block;position:relative;cursor:pointer;overflow:hidden;min-height:118px;text-align:left;
 isolation:isolate;background:#0a150dd9;
}
.u-home-directory .u-theatre-tab[aria-selected=true]{
 background:#b3ffa0;color:#07100b;
}
.u-home-directory .u-theatre-tab[aria-selected=true] .u-t-num{color:#345b3c}
.u-home-directory .u-theatre-tab:focus-visible{
 outline:3px solid #d3ffb2;outline-offset:-4px;z-index:4;
}
.u-home-directory .u-theatre-tab:after{
 content:"↗";position:absolute;right:21px;bottom:17px;
 font:16px/1 ui-monospace,monospace;color:#91a998;opacity:0;
 transform:translate(-8px,8px);transition:transform .35s ease,opacity .35s ease;
}
.u-home-directory .u-theatre-tab:hover:after,
.u-home-directory .u-theatre-tab[aria-selected=true]:after{transform:none;opacity:1}
.u-home-directory .u-theatre-tab[aria-selected=true]:after{color:#204228}
.u-home-directory .u-theatre-tab:before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(125deg,transparent 16%,rgba(201,255,194,.09) 45%,transparent 65%);
 transform:translateX(-130%) skewX(-10deg);
 transition:transform .6s cubic-bezier(.2,.8,.2,1);
}
.u-home-directory .u-theatre-tab:hover:before{transform:translateX(125%) skewX(-10deg)}
.u-home-directory .u-theatre-scene{
 --light-x:70%;--light-y:35%;
 min-height:clamp(570px,53vw,790px);background:#07110b;overflow:hidden;contain:paint;
 border-color:#426249;box-shadow:0 36px 105px #0009,0 0 0 1px #bdffab14;
}
.u-home-directory .u-theatre-scene:before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:radial-gradient(ellipse 48% 60% at var(--light-x) var(--light-y),rgba(87,177,102,.18),transparent 94%),
   repeating-linear-gradient(0deg,transparent,transparent 43px,rgba(139,255,151,.032) 44px);
}
.u-home-directory .u-theatre-scene:after{z-index:0;pointer-events:none;opacity:.98}
.u-home-directory .u-theatre-scene .u-scene{z-index:1}
.u-home-directory .u-theatre-scene .u-scene[aria-hidden=true]{z-index:0;pointer-events:none}
.u-home-directory .u-scene-copy{max-width:440px;top:16%;z-index:10}
.u-home-directory .u-scene-copy h3{margin:24px 0 22px}
.u-home-directory .u-scene-copy p{max-width:385px}
.u-home-directory .u-scene-copy a.u-scene-cta{
 display:inline-flex;align-items:center;justify-content:space-between;gap:28px;
 min-width:243px;padding:15px 15px 15px 20px;margin-top:28px;
 background:#b3ffa0;color:#07180c;border:1px solid #b3ffa0;
 font:600 12px/1.3 ui-monospace,monospace;letter-spacing:.08em;text-decoration:none;
 box-shadow:0 9px 40px #b3ffa01a;position:relative;transition:transform .28s,box-shadow .28s,background .28s;
}
.u-home-directory .u-scene-copy a.u-scene-cta:hover{
 transform:translateY(-3px);background:#e1ffb6;box-shadow:0 15px 48px #b3ffa037;
}
.u-home-directory .u-scene-copy a.u-scene-cta:focus-visible{outline:3px solid #fff;outline-offset:5px}
.u-home-directory .u-scene-cta span:last-child{
 display:grid;place-items:center;width:28px;height:28px;background:#0c2313;color:#afffb5;
 transition:transform .35s ease;
}
.u-home-directory .u-scene-cta:hover span:last-child{transform:rotate(45deg)}
.u-home-directory .u-scene-art{will-change:transform;pointer-events:none}
.u-home-directory .u-scene-qualifier{
 display:block;margin-top:18px;color:#c7a973!important;
 font:10px ui-monospace,monospace!important;letter-spacing:.1em;
}
.u-home-directory .u-stage-corner{position:absolute;z-index:8;width:28px;height:28px;pointer-events:none;opacity:.63}
.u-home-directory .u-stage-corner-tl{left:20px;top:20px;border-left:1px solid #c8ffb6;border-top:1px solid #c8ffb6}
.u-home-directory .u-stage-corner-br{right:20px;bottom:20px;border-right:1px solid #c8ffb6;border-bottom:1px solid #c8ffb6}
.u-home-directory .u-stage-counter{
 position:absolute;right:30px;top:27px;z-index:8;color:#a4d8ab;
 font:9px ui-monospace,monospace;letter-spacing:.18em;pointer-events:none;
}
.u-home-directory .u-stage-counter i{display:inline-block;width:5px;height:5px;background:#b3ffa0;border-radius:50%;margin:0 10px 1px;box-shadow:0 0 14px #b3ffa0}
.u-home-directory .u-stage-beam{
 position:absolute;z-index:0;top:-40%;left:-55%;width:62%;height:165%;pointer-events:none;
 transform:rotate(22deg);background:linear-gradient(90deg,transparent,rgba(206,255,204,.026),transparent);
 animation:uStageScan 15s ease-in-out infinite alternate;
}
@keyframes uStageScan{0%{translate:0 0}100%{translate:170% 0}}
.u-home-directory .u-geocrown-art .u-geocrown-art-back{
 position:absolute;right:25%;top:1%;height:auto;width:clamp(180px,23vw,350px);
 transform:rotate(-14deg) translateY(16px);filter:drop-shadow(0 35px 45px #000b);opacity:.72;
}
.u-home-directory .u-geocrown-art .u-geocrown-art-front{
 position:absolute;right:6%;top:10%;height:auto;width:clamp(200px,25vw,390px);
 transform:rotate(9deg);filter:drop-shadow(0 40px 58px #000c);
}
.u-home-directory .u-geocrown-tag{
 position:absolute;right:8%;bottom:10%;padding:13px 18px;
 border:1px solid #e9c36286;background:#10120fee;color:#f5cb70;
 font:10px ui-monospace,monospace;letter-spacing:.13em;transform:rotate(3deg);
}
.u-home-directory .u-scene-software .u-soft-screen{box-shadow:0 48px 105px #000b,0 0 38px #a4ffaa12}
.u-home-directory .u-scene-ai .u-ai-field{max-width:700px}
.u-home-directory .u-theatre-foot{gap:18px;flex-wrap:wrap}
.u-home-directory .u-theatre-foot .u-interactive-help{display:block;color:#adcead}
.u-home-directory .u-theatre-foot [data-theatre-index]{font-variant-numeric:tabular-nums}
.u-home-directory .u-theatre-arrows{margin-left:auto}
.u-home-directory .u-theatre-foot button:focus-visible{outline:3px solid #b3ffa0;outline-offset:2px}
.u-home-directory .u-theatre-foot button{width:48px;height:46px;transition:transform .25s,background .25s}
.u-home-directory .u-theatre-foot button:hover{transform:translateY(-3px)}
@media(max-width:1000px) and (min-width:761px){
 .u-home-directory .u-scene-copy{left:34px;max-width:340px}
 .u-home-directory .u-scene-copy h3{font-size:clamp(45px,6vw,65px)}
 .u-home-directory .u-geocrown-art .u-geocrown-art-back{right:18%;width:29%}
 .u-home-directory .u-geocrown-art .u-geocrown-art-front{right:0;width:31%}
}
@media(max-width:760px){
 .u-home-directory .u-theatre-tab{min-height:86px}
 .u-home-directory .u-theatre-tab:after{right:12px;bottom:12px;font-size:12px}
 .u-home-directory .u-theatre-scene{min-height:690px}
 .u-home-directory .u-scene-copy{top:auto;bottom:31px;left:22px;right:22px;max-width:none}
 .u-home-directory .u-scene-copy h3{margin:9px 0 11px;font-size:clamp(42px,9.1vw,64px)}
 .u-home-directory .u-scene-copy p{max-width:590px;font-size:15px;line-height:1.55}
 .u-home-directory .u-scene-copy .u-scene-qualifier{font-size:9px!important;margin:9px 0}
 .u-home-directory .u-scene-copy a.u-scene-cta{margin-top:15px;padding:11px 11px 11px 16px;min-width:220px}
 .u-home-directory .u-stage-counter{top:25px;right:24px;font-size:8px}
 .u-home-directory .u-theatre-scene:after{background:linear-gradient(0deg,#06100a 1%,rgba(6,16,10,.98) 27%,transparent 67%)}
 .u-home-directory .u-scene-art{height:67%}
 .u-home-directory .u-geocrown-art .u-geocrown-art-back{top:1%;right:30%;width:40%}
 .u-home-directory .u-geocrown-art .u-geocrown-art-front{top:7%;right:9%;width:42%}
 .u-home-directory .u-geocrown-tag{bottom:20%;right:10%;font-size:8px;padding:9px}
 .u-home-directory .u-theatre-foot .u-interactive-help{display:none}
}
@media(max-width:520px){
 .u-home-directory .u-theatre-scene{min-height:655px}
 .u-home-directory .u-theatre-tab{min-height:78px;padding:13px 12px}
 .u-home-directory .u-theatre-tab strong{font-size:16px}
 .u-home-directory .u-theatre-tab .u-t-num{font-size:8px}
 .u-home-directory .u-scene-copy{bottom:28px;left:18px;right:18px}
 .u-home-directory .u-scene-copy h3{font-size:clamp(39px,10.2vw,53px)}
 .u-home-directory .u-scene-copy p{font-size:13px}
 .u-home-directory .u-scene-art{height:65%}
 .u-home-directory .u-geocrown-art .u-geocrown-art-back{right:23%;width:47%;top:3%}
 .u-home-directory .u-geocrown-art .u-geocrown-art-front{right:0%;width:48%;top:8%}
 .u-home-directory .u-geocrown-tag{right:3%;bottom:18%}
 .u-home-directory .u-theatre-foot>span:nth-child(2){display:none}
}

/* Choreography beyond the hero: quiet editorial reveals, magnetic case-study labels,
   pointer-aware lighting. Avoid animation where the visitor needs to read. */
.u-home .u-editorial,.u-home .u-showcase,.u-home .u-final{position:relative;isolation:isolate}
.u-home .u-editorial:before,.u-home .u-final:before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse 35% 55% at var(--glow-x,70%) 48%,rgba(125,234,142,.11),transparent);
}
.u-home .u-trust-items span{transition:color .3s,transform .3s,text-shadow .3s}
.u-home .u-trust-items span:hover{color:#d5ffcd;transform:translateY(-2px);text-shadow:0 0 24px #99ffa949}
.u-home .u-work-list .u-work{--pointer-x:75%;--pointer-y:45%;cursor:default}
.u-home .u-work-list .u-work:after{
 content:"";position:absolute;inset:0;pointer-events:none;opacity:0;
 background:radial-gradient(ellipse 28% 120% at var(--pointer-x) var(--pointer-y),rgba(151,255,170,.09),transparent);
 transition:opacity .45s ease;
}
.u-home .u-work-list .u-work:hover:after{opacity:1}
.u-home .u-work-list .u-work-arrow{transition:transform .35s,color .35s}
.u-home .u-work-list .u-work:hover .u-work-arrow{transform:translate(7px,-7px);color:#caffbf}
.u-home .u-final .btn{transition:transform .25s,box-shadow .3s,background .3s}
.u-home .u-final .btn:hover{transform:translateY(-4px);box-shadow:0 20px 55px rgba(154,255,161,.2)}
/* Reveal only after JS attaches observers; otherwise content is always visible. */
@media(prefers-reduced-motion:no-preference){
 .u-home[data-motion-ready] .u-reveal:not(.is-in-view){
   opacity:.001;transform:translate3d(0,32px,0);
 }
 .u-home[data-motion-ready] .u-reveal{
   transition:opacity .85s cubic-bezier(.22,1,.36,1),transform .85s cubic-bezier(.22,1,.36,1);
 }
 .u-home[data-motion-ready] .u-reveal.is-in-view{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
 .u-hero-product .u-hphone.u-hphone-geocrown,
 .u-home-directory .u-stage-beam{animation:none!important}
 .u-home-directory .u-scene-copy a.u-scene-cta,
 .u-home-directory .u-theatre-tab,.u-home .u-work-list .u-work-arrow{transition:none!important}
 .u-home .u-reveal{opacity:1!important;transform:none!important}
}

/* A staggered entrance makes a scene change feel like entering a new environment,
   rather than swapping a static picture. */
@media(prefers-reduced-motion:no-preference){
 @keyframes uSceneTitle{from{opacity:0;transform:translate3d(0,18px,0);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
 @keyframes uSceneGraphic{from{opacity:.2;transform:translate3d(18px,12px,0) scale(.97)}to{opacity:1;transform:none}}
 @keyframes uSceneBars{from{height:4%}to{height:var(--bar)}}
 .u-home-directory .u-scene[aria-hidden=false] .u-scene-copy h3{animation:uSceneTitle .65s cubic-bezier(.18,.8,.18,1) both}
 .u-home-directory .u-scene[aria-hidden=false] .u-scene-copy>p:not(.u-scene-qualifier){animation:uSceneTitle .7s .07s both}
 .u-home-directory .u-scene[aria-hidden=false] .u-scene-cta{animation:uSceneTitle .75s .14s both}
 .u-home-directory .u-scene-software[aria-hidden=false] .u-soft-chart i{animation:uSceneBars 1.1s cubic-bezier(.12,.7,.15,1) both}
 .u-home-directory .u-scene-software[aria-hidden=false] .u-soft-chart i:nth-child(2n){animation-delay:.12s}
 .u-home-directory .u-scene-ai[aria-hidden=false] .u-ai-node circle{animation:uNodeBreathe 4s ease-in-out infinite alternate}
 @keyframes uNodeBreathe{to{stroke-width:3;filter:drop-shadow(0 0 12px rgba(179,255,160,.32))}}
}

/* Founder review pass: show the scene sooner and keep product labels clear
   of readable copy on small screens. */
.u-home-directory{padding-top:clamp(70px,7vw,115px);padding-bottom:clamp(65px,6vw,95px)}
.u-home-directory .u-theatre-head{margin-bottom:clamp(24px,3vw,38px)}
@media(max-width:760px){
 .u-home-directory{padding-top:64px;padding-bottom:54px}
 .u-home-directory .u-geocrown-art .u-geocrown-art-front{right:6%;width:43%;top:8%}
 .u-home-directory .u-geocrown-art .u-geocrown-art-back{right:30%;width:42%;top:3%}
 .u-home-directory .u-geocrown-tag{top:14%;bottom:auto;right:4%;transform:rotate(2deg)}
}
@media(max-width:520px){
 .u-home-directory{padding-top:55px;padding-bottom:50px}
 .u-home-directory .u-geocrown-art .u-geocrown-art-front{right:6%;width:43%;top:8%}
 .u-home-directory .u-geocrown-art .u-geocrown-art-back{right:30%;width:43%;top:2%}
 .u-home-directory .u-geocrown-tag{top:15%;right:4%;bottom:auto}
}
