/* Entry sequence (landing only), in the signal-field language: markup in #intro, logic in boot.js.
   A reading being taken: the mark, a live signal line, then each real figure resolves out of hex noise. */
html.boot-on { overflow: hidden; }
.intro.boot { display: block; filter: none; background: #020403; transition: clip-path .7s cubic-bezier(.7,0,.84,0), opacity .7s linear .1s; clip-path: inset(0 0 0 0); }
.intro.boot::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(140,255,200,.035) 0 1px, transparent 1px 3px); }
.intro.boot::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(92,242,168,.05), transparent); animation: bootPass 3.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes bootPass { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.intro.boot.out { filter: none; clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
.boot-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; width: min(600px, 100vw - 32px); margin: 0 auto; }
/* corner brackets around the reading */
.boot-in::before { content: ''; position: absolute; left: -22px; right: -22px; top: calc(50% - 250px); bottom: calc(50% - 250px); pointer-events: none;
  background: linear-gradient(rgba(140,255,200,.26) 0 0) 0 0 / 14px 1px, linear-gradient(rgba(140,255,200,.26) 0 0) 0 0 / 1px 14px,
    linear-gradient(rgba(140,255,200,.26) 0 0) 100% 0 / 14px 1px, linear-gradient(rgba(140,255,200,.26) 0 0) 100% 0 / 1px 14px,
    linear-gradient(rgba(140,255,200,.26) 0 0) 0 100% / 14px 1px, linear-gradient(rgba(140,255,200,.26) 0 0) 0 100% / 1px 14px,
    linear-gradient(rgba(140,255,200,.26) 0 0) 100% 100% / 14px 1px, linear-gradient(rgba(140,255,200,.26) 0 0) 100% 100% / 1px 14px;
  background-repeat: no-repeat; }
.boot-head { display: flex; align-items: center; gap: 12px; color: #e6eee8; padding-bottom: 16px; }
.boot-head svg { width: 22px; height: 18px; color: #5cf2a8; animation: bootHop .9s steps(2) infinite; }
.boot-head b { font: 600 17px/1 'Chakra Petch', Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.boot-head i { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 10px Inter, sans-serif; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #6b7770; }
.boot-head i::before { content: ''; width: 4px; height: 4px; background: #ffb81f; animation: bootBlink 1s steps(2) infinite; }
.boot-head i.on { color: #5cf2a8; } .boot-head i.on::before { background: #5cf2a8; }
@keyframes bootHop { 50% { transform: translateY(-2px); } }
@keyframes bootBlink { 50% { opacity: .15; } }
/* the signal line: a dotted trace with a pulse running along it */
.boot-sig { position: relative; height: 16px; overflow: hidden; }
.boot-sig::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(140,255,200,.26) 0 1px, transparent 1px) 0 0 / 4px 1px repeat-x; }
.boot-sig::after { content: ''; position: absolute; bottom: 0; left: 18%; width: 120px; height: 16px; background: var(--ds-ecg) 0 0 / 120px 16px no-repeat; }
.boot-sig i { position: absolute; bottom: 0; left: 0; width: 140px; height: 1px; background: linear-gradient(90deg, transparent, #5cf2a8 80%, #fff); box-shadow: 0 0 10px #5cf2a8; animation: bootPulse 1.6s linear infinite; }
.intro.boot.ready .boot-sig i { animation-duration: 3.2s; }
@keyframes bootPulse { from { transform: translateX(-160px); } to { transform: translateX(640px); } }
.boot-lines { min-height: 268px; padding-top: 12px; }
.boot-line { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 9px 0; opacity: 0; clip-path: inset(0 100% 0 0); }
.boot-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(140,255,200,.12) 0 1px, transparent 1px) 0 0 / 3px 1px repeat-x; }
.boot-line.on { opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .2s linear, clip-path .45s cubic-bezier(.16,1,.3,1); }
.boot-line span { font: 600 10px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #6b7770; white-space: nowrap; }
.boot-line b { font: 500 18px/1 'Chakra Petch', Inter, sans-serif; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: #3e4842; text-align: right; white-space: nowrap; transition: color .3s; }
.boot-line.done b { color: #e6eee8; }
.boot-line.c-amber.done b { color: #ffb81f; } .boot-line.c-mint.done b { color: #5cf2a8; } .boot-line.c-pink.done b { color: #ff3f8e; } .boot-line.c-violet.done b { color: #b98cff; }
.boot-line.fact { justify-content: flex-start; gap: 12px; }
.boot-line.fact::after { display: none; }
.boot-line.fact::before { content: ''; flex: none; width: 10px; height: 10px; background: #5cf2a8; -webkit-mask: var(--ds-tick) center / contain no-repeat; mask: var(--ds-tick) center / contain no-repeat; transform: translateY(1px); }
.boot-line.fact span { color: #a6b2ab; white-space: normal; line-height: 1.5; letter-spacing: .16em; }
.boot-line.fact + .boot-line.fact { padding-top: 2px; }
.boot-line.first-fact { margin-top: 12px; padding-top: 16px; }
.boot-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 30px; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .6s, transform .6s cubic-bezier(.16,1,.3,1); }
.boot-go.on { opacity: 1; pointer-events: auto; transform: none; }
.intro.boot .boot-enter { min-width: 200px; }
.boot-hint { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font: 600 10px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #3e4842; }
@media (max-width: 520px) {
  .boot-in::before { left: -8px; right: -8px; }
  .boot-line { gap: 12px; padding: 8px 0; }
  .boot-line span { font-size: 9px; letter-spacing: .14em; }
  .boot-line b { font-size: 15px; }
  .boot-go { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .intro.boot { display: none; } }
