/* Stellaria refinement layer — work47
   Apple-like liquid surfaces, richer dark field, tablet layout fixes and consistent dark adaptation. */
:root{--r47-ink:#101826;--r47-soft:rgba(16,24,38,.68);--r47-muted:rgba(16,24,38,.48);--r47-line:rgba(38,66,110,.11);--r47-line2:rgba(92,131,205,.24);--r47-glass:rgba(248,251,255,.46);--r47-glass2:rgba(250,252,255,.70);--r47-accent:#5e7fe2;--r47-violet:#8d78e8;--r47-cyan:#6da8d8;--r47-glow:rgba(96,136,238,.18);--r47-shadow:0 26px 88px rgba(39,58,94,.12);--r47-particle:rgba(31,48,77,.68)}
html[data-theme="dark"]{--r47-ink:#f5f8fd;--r47-soft:rgba(231,239,250,.70);--r47-muted:rgba(218,228,244,.48);--r47-line:rgba(219,231,255,.085);--r47-line2:rgba(145,177,255,.22);--r47-glass:rgba(16,25,39,.28);--r47-glass2:rgba(18,28,44,.48);--r47-accent:#9bb5ff;--r47-violet:#b7a8ff;--r47-cyan:#85c9ef;--r47-glow:rgba(101,144,255,.23);--r47-shadow:0 28px 96px rgba(0,0,0,.28);--r47-particle:rgba(226,236,255,.82)}
body.home-public-v3,body.compute-page,body.worlds-page-v3,body.compute-license-page,body.worlds-license-page,body.devlog-page-v3,body.video-page,body.stellaria-article-page{background:radial-gradient(900px 620px at 82% -8%,color-mix(in srgb,var(--r47-accent) 12%,transparent),transparent 70%),radial-gradient(780px 560px at 12% 24%,color-mix(in srgb,var(--r47-cyan) 7%,transparent),transparent 74%),radial-gradient(760px 540px at 72% 68%,color-mix(in srgb,var(--r47-violet) 5%,transparent),transparent 76%),linear-gradient(180deg,#f7f9fc,#eef3f8)!important;color:var(--r47-ink)!important}
html[data-theme="dark"] body.home-public-v3,html[data-theme="dark"] body.compute-page,html[data-theme="dark"] body.worlds-page-v3,html[data-theme="dark"] body.compute-license-page,html[data-theme="dark"] body.worlds-license-page,html[data-theme="dark"] body.devlog-page-v3,html[data-theme="dark"] body.video-page,html[data-theme="dark"] body.stellaria-article-page{background:radial-gradient(920px 620px at 83% -8%,rgba(73,113,224,.18),transparent 70%),radial-gradient(820px 620px at 4% 30%,rgba(48,103,148,.10),transparent 74%),radial-gradient(720px 560px at 76% 70%,rgba(128,95,216,.07),transparent 76%),linear-gradient(180deg,#07101b 0%,#060b13 44%,#08111b 100%)!important}

/* Apple/Harmony-like liquid material */
.home-public-v3 .studio-direction,.home-public-v3 .studio-principle,.home-public-v3 .nf-story-visual,.home-public-v3 .nf-video-stage,.compute-page .compute-feature,.compute-page .compute-story,.compute-page .compute-season,.compute-page .compute-library-cta,.worlds-page-v3 .world-project-panel,.worlds-page-v3 .world-project-stage,.worlds-page-v3 .worlds-lane-card,.worlds-page-v3 .worlds-field-manifesto{border:1px solid var(--r47-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--r47-glass2) 72%,transparent),color-mix(in srgb,var(--r47-glass) 92%,transparent))!important;box-shadow:var(--r47-shadow),inset 0 1px rgba(255,255,255,.10)!important;backdrop-filter:blur(28px) saturate(165%)!important;-webkit-backdrop-filter:blur(28px) saturate(165%)!important}
html[data-theme="dark"] .home-public-v3 .studio-direction,html[data-theme="dark"] .home-public-v3 .studio-principle,html[data-theme="dark"] .home-public-v3 .nf-story-visual,html[data-theme="dark"] .home-public-v3 .nf-video-stage{background:linear-gradient(145deg,rgba(18,29,46,.34),rgba(7,14,24,.22))!important}
.home-public-v3 .home-studio-section,.home-public-v3 .studio-overview,.home-public-v3 .studio-overview__body,.home-public-v3 .studio-directions{overflow:visible!important}.home-public-v3 .studio-overview__body{padding-top:8px!important}.home-public-v3 .studio-direction{transform-origin:50% 60%;transition:transform .55s cubic-bezier(.16,1,.3,1),border-color .3s ease,box-shadow .3s ease!important}.home-public-v3 .studio-direction:hover{transform:translateY(-6px) scale(1.008)!important;box-shadow:0 28px 94px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.14)!important}.home-public-v3 .studio-principle{background:linear-gradient(135deg,color-mix(in srgb,var(--r47-glass2) 72%,transparent),color-mix(in srgb,var(--r47-accent) 7%,var(--r47-glass)))!important}

/* Constellation: liquid lens instead of a rectangular hover card. */
.nf-hero{background:radial-gradient(720px 560px at 77% 40%,color-mix(in srgb,var(--r47-accent) 14%,transparent),transparent 68%),radial-gradient(680px 520px at 92% 12%,color-mix(in srgb,var(--r47-violet) 8%,transparent),transparent 72%),linear-gradient(180deg,#f7f9fc,#eef3f8)!important}
html[data-theme="dark"] .nf-hero{background:radial-gradient(780px 600px at 77% 40%,rgba(78,119,235,.18),transparent 69%),radial-gradient(700px 560px at 93% 10%,rgba(132,103,224,.10),transparent 72%),radial-gradient(620px 520px at 18% 68%,rgba(40,92,130,.08),transparent 74%),linear-gradient(180deg,#07101b,#060b13)!important}
.nf-star-node{isolation:isolate!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.nf-star-node.is-nearest{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.nf-star-node::after{display:block!important;content:""!important;position:absolute!important;z-index:0!important;left:50%!important;top:50%!important;width:calc(100% + 24px)!important;height:calc(100% + 18px)!important;transform:translate(-50%,-50%) scale(.72)!important;opacity:0!important;border:1px solid transparent!important;border-radius:56% 44% 52% 48% / 48% 56% 44% 52%!important;background:radial-gradient(120px 60px at 35% 20%,rgba(255,255,255,.17),transparent 70%),linear-gradient(145deg,color-mix(in srgb,var(--r47-glass2) 70%,transparent),color-mix(in srgb,var(--r47-glass) 82%,transparent))!important;box-shadow:0 14px 46px rgba(0,0,0,.13),inset 0 1px rgba(255,255,255,.16)!important;backdrop-filter:blur(20px) saturate(175%)!important;-webkit-backdrop-filter:blur(20px) saturate(175%)!important;transition:opacity .24s ease,transform .46s cubic-bezier(.16,1,.3,1),border-radius .52s cubic-bezier(.16,1,.3,1)!important;pointer-events:none!important}
.nf-star-node.is-nearest::after,.nf-star-node:hover::after,.nf-star-node:focus-visible::after{opacity:1!important;transform:translate(-50%,-50%) scale(1)!important;border-color:var(--r47-line)!important;border-radius:46% 54% 44% 56% / 56% 46% 54% 44%!important}
.nf-star-node strong,.nf-star-node small,.nf-star-node::before{z-index:2!important}.f2-node-ripple{position:absolute;z-index:1;left:10px;top:50%;width:10px;height:10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--r47-accent) 70%,transparent);transform:translate(-18%,-50%) scale(.3);pointer-events:none;animation:r47Ripple .72s cubic-bezier(.16,1,.3,1) forwards}@keyframes r47Ripple{0%{opacity:.85;transform:translate(-18%,-50%) scale(.4)}100%{opacity:0;transform:translate(-18%,-50%) scale(8)}}
.nf-constellation:after{width:460px!important;height:460px!important;background:radial-gradient(circle,color-mix(in srgb,var(--r47-accent) 14%,transparent),color-mix(in srgb,var(--r47-violet) 5%,transparent) 42%,transparent 72%)!important;filter:blur(6px)!important}

/* Tablet pinned narrative: keep the whole active stage visible on iPad landscape. */
@media (min-width:821px) and (max-width:1250px),(min-width:821px) and (max-height:900px){.nf-production-stage{padding:76px 30px 22px!important}.nf-production .nf-section-head{gap:28px!important;margin-bottom:6px!important}.nf-production .nf-section-head h2{font-size:clamp(40px,5vw,58px)!important}.nf-production .nf-section-head>p{font-size:14.5px!important;line-height:1.55!important}.nf-story{grid-template-columns:minmax(300px,.82fr) minmax(420px,1.18fr)!important;gap:38px!important}.nf-story-copy h3{font-size:clamp(48px,6vw,68px)!important;margin:12px 0 16px!important}.nf-story-copy p{font-size:15px!important;line-height:1.62!important}.nf-story-visual{height:min(45vh,420px)!important;border-radius:30px!important}.f2-mono{width:min(72%,500px)!important}.nf-production-step{bottom:0!important}}

/* Worlds home image composition */
.home-public-v3 .nf-worlds-home img{object-position:50% 24%!important}.home-public-v3 .nf-worlds-home{background:linear-gradient(90deg,rgba(7,12,20,.72),rgba(7,12,20,.18) 46%,rgba(7,12,20,.04))!important}

/* Compute dark adaptation: remove legacy white cards. */
html[data-theme="dark"] body.compute-page .compute-feature,html[data-theme="dark"] body.compute-page .compute-story,html[data-theme="dark"] body.compute-page .compute-story--dark,html[data-theme="dark"] body.compute-page .compute-story--blue,html[data-theme="dark"] body.compute-page .compute-story--rose,html[data-theme="dark"] body.compute-page .compute-season,html[data-theme="dark"] body.compute-page .compute-season article,html[data-theme="dark"] body.compute-page .compute-library-cta,html[data-theme="dark"] body.compute-page .library-card,html[data-theme="dark"] body.compute-page .scvg-metrics div,html[data-theme="dark"] body.compute-page .scvg-pillars article,html[data-theme="dark"] body.compute-page .comparison-wrap,html[data-theme="dark"] body.compute-page .product-card,html[data-theme="dark"] body.compute-page .detail-panels article,html[data-theme="dark"] body.compute-page .product-actions,html[data-theme="dark"] body.compute-page .status-ribbon{background:linear-gradient(145deg,rgba(18,28,44,.48),rgba(7,13,22,.40))!important;color:var(--r47-ink)!important;border-color:var(--r47-line)!important;box-shadow:0 20px 70px rgba(0,0,0,.20)!important}
html[data-theme="dark"] body.compute-page .compute-story p,html[data-theme="dark"] body.compute-page .compute-section__head p,html[data-theme="dark"] body.compute-page .compute-feature p,html[data-theme="dark"] body.compute-page .compute-season p,html[data-theme="dark"] body.compute-page .compute-library-cta p,html[data-theme="dark"] body.compute-page .library-card p,html[data-theme="dark"] body.compute-page .scvg-copy p,html[data-theme="dark"] body.compute-page .scvg-pillars p{color:var(--r47-soft)!important}.compute-page .compute-button:not(.primary),.compute-page .compute-proof span{background:color-mix(in srgb,var(--r47-glass2) 72%,transparent)!important;color:var(--r47-ink)!important;border-color:var(--r47-line)!important;backdrop-filter:blur(14px) saturate(150%)}html[data-theme="dark"] body.compute-page .compute-feature:after{color:rgba(154,181,255,.05)!important}

/* Worlds dark adaptation: project panel, search and cards become dark glass. */
html[data-theme="dark"] body.worlds-page-v3 .world-project-panel,html[data-theme="dark"] body.worlds-page-v3 .world-project-stage,html[data-theme="dark"] body.worlds-page-v3 .world-project-search,html[data-theme="dark"] body.worlds-page-v3 .world-project-item,html[data-theme="dark"] body.worlds-page-v3 .worlds-project-index-card,html[data-theme="dark"] body.worlds-page-v3 .playground-feature,html[data-theme="dark"] body.worlds-page-v3 .playground-tile,html[data-theme="dark"] body.worlds-page-v3 .partnership-card,html[data-theme="dark"] body.worlds-page-v3 .license-principles article,html[data-theme="dark"] body.worlds-page-v3 .license-boundary,html[data-theme="dark"] body.worlds-page-v3 .license-preview-note,html[data-theme="dark"] body.worlds-page-v3 .worlds-secondary-hero--project,html[data-theme="dark"] body.worlds-page-v3 .worlds-secondary-hero--play{background:linear-gradient(145deg,rgba(19,29,45,.50),rgba(8,14,23,.44))!important;color:var(--r47-ink)!important;border-color:var(--r47-line)!important;box-shadow:0 24px 78px rgba(0,0,0,.22)!important}
html[data-theme="dark"] body.worlds-page-v3 .world-project-search input,html[data-theme="dark"] body.worlds-page-v3 .worlds-search input{background:rgba(255,255,255,.055)!important;color:var(--r47-ink)!important;border-color:var(--r47-line)!important}html[data-theme="dark"] body.worlds-page-v3 .world-project-item p,html[data-theme="dark"] body.worlds-page-v3 .world-project-summary,html[data-theme="dark"] body.worlds-page-v3 .world-project-panel p,html[data-theme="dark"] body.worlds-page-v3 .worlds-section-intro p{color:var(--r47-soft)!important}html[data-theme="dark"] body.worlds-page-v3 .world-project-item strong{color:var(--r47-ink)!important}

/* Video stage refinement */
.home-public-v3 .nf-video-stage{background:linear-gradient(145deg,rgba(15,24,38,.28),rgba(8,14,24,.18))!important}.home-public-v3 .nf-video-info{background:linear-gradient(180deg,color-mix(in srgb,var(--r47-glass2) 68%,transparent),color-mix(in srgb,var(--r47-glass) 90%,transparent))!important}.home-public-v3 .nf-video-mark{background:color-mix(in srgb,var(--r47-glass2) 64%,transparent);backdrop-filter:blur(18px);box-shadow:inset 0 1px rgba(255,255,255,.12)}

/* Particle signature after video */
.nf-signature-field{position:relative;width:100%;height:min(92svh,820px);min-height:560px;overflow:hidden;display:grid;place-items:center;isolation:isolate;background:radial-gradient(620px 380px at 50% 48%,color-mix(in srgb,var(--r47-accent) 10%,transparent),transparent 74%),linear-gradient(180deg,transparent,rgba(0,0,0,.02))}.nf-signature-field canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.nf-signature-fallback{width:min(520px,58vw);opacity:0;filter:var(--sf-header-logo-filter,none);transition:opacity .3s ease}.nf-signature-caption{position:absolute;left:50%;bottom:10%;transform:translateX(-50%);margin:0;color:var(--r47-muted);font:700 12px/1.4 Inter,system-ui;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}.nf-signature-field.is-static .nf-signature-fallback{opacity:.82}.nf-signature-field.is-static canvas{display:none}

/* Restore the original-style site footer inside App Shell pages. */
html.stellaria-embedded body .footer,html.stellaria-embedded body .compact-footer{display:flex!important}.footer.compact-footer{width:min(1260px,calc(100% - 48px))!important;margin:0 auto 28px!important;padding:28px 30px!important;border:1px solid var(--r47-line)!important;border-radius:30px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--r47-glass2) 62%,transparent),color-mix(in srgb,var(--r47-glass) 88%,transparent))!important;color:var(--r47-ink)!important;box-shadow:var(--r47-shadow)!important;backdrop-filter:blur(24px) saturate(155%)!important;-webkit-backdrop-filter:blur(24px) saturate(155%)!important}.footer.compact-footer p,.footer.compact-footer a{color:var(--r47-soft)!important}.footer.compact-footer strong{color:var(--r47-ink)!important}.footer.compact-footer a:hover{color:var(--r47-ink)!important}

@media(max-width:820px){.home-public-v3 .studio-overview{grid-template-columns:1fr!important}.home-public-v3 .studio-directions{grid-template-columns:1fr!important}.home-public-v3 .nf-worlds-home img{object-position:50% 20%!important}.footer.compact-footer{width:calc(100% - 24px)!important;flex-direction:column!important;gap:18px!important;padding:22px!important}.nf-signature-field{min-height:460px;height:72svh}.nf-signature-caption{bottom:8%;font-size:10px}.nf-signature-fallback{width:min(68vw,420px)}}
@media(prefers-reduced-motion:reduce){.f2-node-ripple{display:none!important}.nf-star-node::after,.home-public-v3 .studio-direction{transition:none!important}.nf-signature-field canvas{display:none}.nf-signature-field .nf-signature-fallback{opacity:.82}}
