/* QuriousOS boot sequence, DNA signal, and staggered wordmark reveal. */
.boot{position:fixed;z-index:100;inset:0;display:grid;place-items:center;background:#050505;pointer-events:none;animation:boot-away .5s 1.8s forwards}
.boot-text{color:#aaa;font:400 11px var(--display);letter-spacing:.16em;text-align:center;padding:24px}
.boot-text::after{content:"";animation:boot-copy 1.6s steps(1) forwards}
.boot-text[data-typing-ready]::after{content:none;animation:none}
.boot-typing-line{position:relative;display:inline-block;white-space:nowrap}
.boot-typing-measure{visibility:hidden}
.boot-typing-value{position:absolute;inset:0 auto auto 0;white-space:nowrap}
.boot-typing-value::after{content:"";display:inline-block;width:1px;height:1em;margin-left:4px;vertical-align:-.12em;background:#c5e4a1;animation:entry-caret .5s steps(1) 3 both}
.boot-text[data-typing-complete] .boot-typing-value::after{animation:none;opacity:.65}
.hero .eyebrow{opacity:0;animation:entry-fade-up .7s 2s forwards}
.hero .entry-letter{display:inline-block;font-style:normal;opacity:0;transform:translateY(70px) rotateX(-80deg);filter:blur(12px);animation:entry-letter-build .75s cubic-bezier(.16,1,.3,1) calc(2.05s + var(--d)*.07s) forwards}
.hero .hero-os .entry-letter{animation-name:entry-letter-outline}
.hero-tagline{opacity:0;animation:entry-fade-up .8s 2.9s forwards}
.hero-bottom{opacity:0;animation:entry-fade-up .8s 3.2s forwards}
@keyframes boot-copy{0%{content:"INITIALIZING QURIOUS OS..."}45%{content:"CURIOSITY ENGINE / ONLINE"}75%,100%{content:"SYSTEM READY"}}
@keyframes boot-away{to{opacity:0;visibility:hidden}}
@keyframes entry-letter-build{to{opacity:1;transform:none;filter:blur(0)}}
@keyframes entry-letter-outline{0%{opacity:0;transform:scaleX(.1);filter:blur(12px)}65%{color:transparent;-webkit-text-stroke:1px #e4e8d9}100%{opacity:1;transform:none;filter:blur(0);color:transparent;-webkit-text-stroke:1px #e4e8d9}}
@keyframes entry-fade-up{to{opacity:1;transform:translateY(0)}}
@keyframes entry-caret{0%,100%{opacity:.85}50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.boot{display:none}.hero .eyebrow,.hero .entry-letter,.hero-tagline,.hero-bottom{animation:none;opacity:1;transform:none;filter:none}}

/* A decorative double helix; the original text remains at the screen center. */
.boot { overflow: hidden; }
.boot-dna {
  position: absolute;
  inset: auto auto calc(50% + 30px) 50%;
  width: min(520px, calc(100% - 64px));
  height: auto;
  max-height: 28svh;
  transform: translateX(-50%);
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.boot-dna--a { --boot-neon: #c5e4a1; }
.boot-dna--b { --boot-neon: #82e4ec; }
.boot-dna-axis { stroke: #edeee7; stroke-width: .65; opacity: .045; }
.boot-dna-rungs { stroke: #c4e4d9; stroke-width: .85; }
.boot-dna-rungs path {
  opacity: 0;
  animation: boot-dna-rung-in .4s ease-out var(--rung-delay) both;
}
.boot-dna-track { stroke: var(--boot-neon); stroke-width: .9; opacity: .18; }
.boot-dna-draw {
  stroke: var(--boot-neon);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .8;
  filter: drop-shadow(0 0 2px var(--boot-neon));
  animation: boot-dna-build 1.1s cubic-bezier(.22,.7,.25,1) .05s both;
}
.boot-dna-draw.boot-dna--b { animation-delay: .13s; }
.boot-dna-light {
  stroke: #f2fff9;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: .1 .9;
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--boot-neon)) drop-shadow(0 0 1px var(--boot-neon));
  animation: boot-dna-travel 1.25s linear .08s both;
}
.boot-dna-light.boot-dna--b { animation-delay: .2s; }
.boot-dna-origin { fill: #c5e4a1; opacity: .5; }
.boot-dna-terminal {
  fill: #c5e4a1;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 3px #c5e4a1);
  animation: boot-dna-ready .45s ease-out 1.2s both;
}
@keyframes boot-dna-build { to { stroke-dashoffset: 0; } }
@keyframes boot-dna-rung-in { to { opacity: .36; } }
@keyframes boot-dna-travel {
  0% { stroke-dashoffset: 0; opacity: 0; }
  10%, 80% { opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes boot-dna-ready {
  0% { transform: scale(.65); opacity: .3; }
  55% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: .85; }
}
@media (max-width: 700px) {
  .boot-dna { width: min(380px, calc(100% - 48px)); }
}
@media (prefers-reduced-motion: reduce) {
  .boot-dna, .boot-dna * { animation: none; }
}
