/* Local decoration only: no inputs, data, minimum wait or runtime video. */
.startup-mounted { display: contents; }
.startup-scene,.startup-fallback {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: #A8BBA0; pointer-events: none; overflow: clip;
}
.startup-scene {
  --startup-paper:#FAF8EE; --startup-ink:#65765A; --startup-quiet:#CDD5BE; --startup-halo:#FFFBEA;
  container-type: size; box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  animation: startup-surface .7s ease-out both;
}
.web-phone-frame :is(.startup-scene,.startup-fallback) { left: 50%; right: auto; width: min(100vw,430px); transform: translateX(-50%); }
.startup-fallback img { width: 220px; height: auto; }
/* In the app the native scene covers launch: this only shows when iOS reloads the WebView, whose
   safe areas keep the native page's colour. Same surface, so the screen reads as one. */
.startup-fallback-host { background: var(--crema); }
html[data-theme="dark"] .startup-fallback-host img { filter: brightness(0) invert(.86); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .startup-fallback-host img { filter: brightness(0) invert(.86); } }
body:has(.startup-mounted) .startup-fallback { display: none; }
html[data-startup-expired] .startup-scene,body:has(.startup-mounted) :is(#startup-host-help,#startup-host-loading) { display: none; }
#startup-host-help, #startup-host-loading { position: fixed; inset: 0; padding: 32px; background: var(--crema, #F6F3ED); color: var(--ink-strong, #374035); z-index: 901; text-align: center; align-content: center; font-family: sans-serif; }
#startup-host-help[hidden], #startup-host-loading[hidden] { display: none; }
#startup-host-help a { color: inherit; }
#startup-host-help a { display: inline-block; margin-top: 16px; padding: 12px; color: #52644D; }
.startup-composition { position: relative; width:min(100cqw,calc(100cqh * 390 / 844)); height:min(100cqh,calc(100cqw * 844 / 390)); }
.startup-composition img { position: absolute; object-fit: contain; }
.startup-universe { position:absolute; inset:0; width:100%; height:100%; fill:var(--startup-ink); animation:startup-atmosphere .7s ease-out both; }
.startup-wide { display:none; }
.startup-halo { stop-color:var(--startup-halo); }
.startup-ground { opacity:.09; }
.startup-contours { stroke:var(--startup-ink); opacity:.18; }
.startup-nodes { opacity:.35; }
.startup-connectors { stroke:var(--startup-ink); animation:startup-atmosphere .75s .7s both; opacity:.6; }
.startup-card { animation:startup-card-in .65s .8s cubic-bezier(.22,.6,.3,1) both; }
.startup-goal { animation-delay:.95s; }
.startup-plan { animation-delay:1.05s; }
.startup-card-paper { fill:var(--startup-paper); }
.startup-card-shadow { opacity:.08; }
.startup-quiet { fill:var(--startup-quiet); }
.startup-gold { fill:#B79767; }
.startup-bars rect { transform-box:fill-box; transform-origin:center bottom; animation:startup-bar .5s .85s cubic-bezier(.22,.6,.3,1) both; }
.startup-bars rect:nth-child(2) { animation-delay:.91s; }
.startup-bars rect:nth-child(3) { animation-delay:.97s; }
.startup-bars rect:nth-child(4) { animation-delay:1.03s; }
.startup-ring-track { stroke:var(--startup-quiet); opacity:.45; }
.startup-ring { stroke:var(--startup-ink); animation:startup-ring .75s .7s both; }
.startup-tick { stroke:#B79767; }
.startup-house { left:1.795%; top:35.545%; width:96.41%; height:29.739%; animation:startup-house-in .65s .05s cubic-bezier(.22,.6,.3,1) both; }
.startup-bird { width:11.795%; height:5.45%; animation:startup-perch .65s .25s cubic-bezier(.22,.6,.3,1) both; }
.startup-bird-roof { left:55.128%; top:37.796%; }
.startup-bird-branch { position:absolute; left:19.744%; top:45.498%; width:11.026%; height:5.095%; transform:scaleX(-1); }
.startup-bird-branch .startup-bird { inset:0; width:100%; height:100%; animation-delay:.4s; }
.startup-pini { left:64.103%; top:56.517%; width:29.744%; height:13.744%; animation:startup-house-in .65s .5s cubic-bezier(.22,.6,.3,1) both; }
.startup-brand { left:18.462%; top:84.242%; width:63.077%; height:9.181%; animation:var(--startup-brand-motion,startup-brand-in) .7s cubic-bezier(.22,.6,.3,1) both; }
.startup-brand-light { display:none; }
@keyframes startup-surface { from { background:#A8BBA0; } to { background:#EDF2E8; } }
@keyframes startup-atmosphere { from { opacity:0; } }
@keyframes startup-house-in { from { opacity:0; translate:0 14px; } to { opacity:1; translate:0 0; } }
@keyframes startup-perch { from { opacity:0; translate:-28px -17px; } to { opacity:1; translate:0 0; } }
@keyframes startup-card-in { from { opacity:0; translate:0 8px; } to { opacity:1; translate:0 0; } }
@keyframes startup-bar { from { transform:scaleY(0); } }
@keyframes startup-ring { from { stroke-dasharray:0 145; } }
@keyframes startup-brand-in { from { left:21.795%; top:45.895%; width:56.41%; height:8.21%; } }
@container (aspect-ratio > 1.2) {
  .startup-composition { width:min(100cqw,calc(100cqh * 760 / 390)); height:min(100cqh,calc(100cqw * 390 / 760)); }
  .startup-wide { display:block; } .startup-tall { display:none; }
  .startup-house { left:4.474%; top:19.744%; width:48.158%; height:62.564%; }
  .startup-bird-roof { left:31.184%; top:24.615%; width:5.921%; height:11.538%; }
  .startup-bird-branch { left:13.553%; top:40.769%; width:5.526%; height:10.769%; }
  .startup-pini { left:38.947%; top:64.359%; width:13.947%; height:27.179%; }
  .startup-brand { left:61.184%; top:69.487%; width:30%; height:18.415%; --startup-brand-motion:startup-brand-wide; }
}
@keyframes startup-brand-wide { from { left:35.526%; top:41.115%; width:28.947%; height:17.769%; } }
@media (prefers-color-scheme:dark) {
  .startup-scene { --startup-paper:#3E5345; --startup-ink:#CBD8BB; --startup-quiet:#819A7C; --startup-halo:#617655; animation-name:startup-surface-dark; }
  .startup-brand:not(.startup-brand-light) { animation:var(--startup-brand-motion,startup-brand-in) .7s cubic-bezier(.22,.6,.3,1) both,startup-brand-out .7s ease-out both; }
  .startup-brand-light { display:block; animation:var(--startup-brand-motion,startup-brand-in) .7s cubic-bezier(.22,.6,.3,1) both,startup-atmosphere .7s ease-out both; }
}
@keyframes startup-brand-out { to { opacity:0; } }
@keyframes startup-surface-dark { from { background:#A8BBA0; } to { background:#243A30; } }
@media (prefers-reduced-motion:reduce) {
  .startup-scene { animation:none; background:#EDF2E8; }
  .startup-scene * { animation:none !important; transition:none !important; }
}
@media (prefers-color-scheme:dark) and (prefers-reduced-motion:reduce) { .startup-scene { background:#243A30; } .startup-brand:not(.startup-brand-light) { opacity:0; } }
html[data-startup-paused] .startup-scene,html[data-startup-paused] .startup-scene * { animation-play-state:paused !important; }
.startup-progress { position:absolute; left:18.462%; top:94.194%; width:63.077%; color:var(--startup-ink,#374035); font:11px/1.4 system-ui,sans-serif; text-align:center; }
.startup-progress-track { position:relative; height:7px; margin-top:8px; overflow:hidden; border-radius:99px; background:var(--startup-quiet,#CDD5BE); }
.startup-progress-fill { position:absolute; inset:0 auto 0 0; border-radius:inherit; background:var(--startup-ink,#65765A); transition:width .16s ease-out; }
.startup-progress-wait { position:absolute; inset:0 auto 0 0; width:24%; border-radius:inherit; background:#B79767; animation:startup-progress-wait 1.6s ease-in-out infinite alternate; }
@keyframes startup-progress-wait { to { left:76%; } }
@media (prefers-reduced-motion:reduce) { .startup-progress-wait { animation:none; left:38%; } .startup-progress-fill { transition:none; } }
@container (aspect-ratio > 1.2) { .startup-progress { left:61.184%; top:89.231%; width:30%; } }
