/* Scoped vector motion. The document itself is never hidden or made inert. */
#quarry-intro {
  --qi-ready: 1;
  position: fixed; inset: 0; z-index: 1000; isolation: isolate;
  overflow: hidden; background: #030a10; color: #e5f6fb;
  font-family: 'Manrope', Arial, sans-serif; cursor: pointer;
}
#quarry-intro[hidden] { display: none; }
#quarry-intro *, #quarry-intro *::before, #quarry-intro *::after { box-sizing: border-box; }
#quarry-intro .qi-art {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100%, 177.7778vh); height: min(100vh, 56.25vw);
}
#quarry-intro.qi-mobile .qi-art { width: min(100%, 53.75vh); height: min(100vh, 186.0465vw); }
#quarry-intro.qi-mobile .qi-label:not(.qi-micro-label) { font-size: 16px; letter-spacing: 1.3px; }
#quarry-intro.qi-mobile .qi-micro-label { display: none; }
#quarry-intro .qi-security-label { fill: #91cfdb; font-size: 11px; letter-spacing: .7px; }
#quarry-intro.qi-mobile .qi-label.qi-security-label { font-size: 12px; letter-spacing: .35px; }
#quarry-intro .qi-art > svg { width: 100%; height: 100%; stroke-width: initial; }
/* Keep the network on a clean dark field; omit the geological survey backdrop. */
#quarry-intro .qi-geology, #quarry-intro .qi-survey { display: none; }
#quarry-intro .qi-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 52% 45%, transparent 22%, #030a1080 75%, #030a10 100%);
}
#quarry-intro .qi-frame {
  position: absolute; top: 6%; left: 6%; right: 6%; display: flex;
  justify-content: space-between; font: 10px/1.5 Consolas, monospace;
  letter-spacing: .2em; color: #73929e;
}
#quarry-intro .qi-frame span:first-child { color: #b4d6df; }
#quarry-intro .qi-support {
  position: absolute; bottom: 14%; width: 100%; text-align: center;
  font-size: clamp(13px, 1.2vw, 19px); font-weight: 400; letter-spacing: .09em;
  color: #adc8d2; opacity: 0;
}
#quarry-intro .qi-skip {
  position: absolute; bottom: max(25px, env(safe-area-inset-bottom)); right: 6%;
  padding: 10px 16px; border: 1px solid #45616c; border-radius: 3px;
  background: #07131be6; color: #b9d3dc; font: 12px/1.5 Arial, sans-serif;
  letter-spacing: .06em; z-index: 5;
}
#quarry-intro .qi-skip:hover { background: #15313e; color: white; }
#quarry-intro .qi-skip:focus-visible { outline: 2px solid #93eaff; outline-offset: 4px; }
#quarry-intro .qi-title {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; opacity: 0;
  pointer-events: none; transform: translateY(12px) scale(1.025);
}
#quarry-intro .qi-mark { width: clamp(100px, 10vw, 170px); height: auto; overflow: visible; }
#quarry-intro .qi-mark path { fill: none; stroke: #80dfff; stroke-width: 2; stroke-linejoin: miter; }
#quarry-intro .qi-wordmark { font-size: clamp(28px, 3.8vw, 60px); letter-spacing: .18em; font-weight: 700; line-height: 1.2; }
#quarry-intro .qi-wordmark span { font-weight: 400; color: #bb8cff; text-shadow: 0 0 24px #9863ed40; }
#quarry-intro .qi-strapline { font-size: clamp(15px, 1.5vw, 23px); font-weight: 400; letter-spacing: .07em; color: #c1d6e1; }
#quarry-intro .qi-bloom {
  position: absolute; width: 40vmax; height: 40vmax; left: 50%; top: 50%;
  margin: -20vmax; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #f3ffff 0%, #e4ffffe6 9%, #8be8ff99 21%, #5bd3f945 38%, #66cbe31a 56%, transparent 72%);
  transform: scale(.015); mix-blend-mode: screen;
}
#quarry-intro.qi-mobile .qi-bloom { left: 50%; top: 56.25%; }
#quarry-intro .qi-wire { stroke-dasharray: 1; stroke-dashoffset: 1; }
#quarry-intro .qi-node, #quarry-intro .qi-label, #quarry-intro .qi-geology, #quarry-intro .qi-survey { opacity: 0; }
#quarry-intro .qi-route { opacity: 0; fill: none; stroke-linecap: butt; }
#quarry-intro .qi-route-halo { --qi-segment: .09px; stroke: #02e4ff; stroke-width: 11; stroke-dasharray: .09 1; stroke-dashoffset: .09; filter: blur(5px); }
#quarry-intro .qi-route-tail { --qi-segment: .12px; stroke: #ad7aff; stroke-width: 3; stroke-dasharray: .12 1; stroke-dashoffset: .12; }
#quarry-intro .qi-route-core { --qi-segment: .026px; stroke: #f0ffff; stroke-width: 2; stroke-dasharray: .026 1; stroke-dashoffset: .026; }
#quarry-intro .qi-route-afterglow { stroke: #9beaff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
#quarry-intro.qi-playing { animation: qi-exit 7.35s linear both; }
#quarry-intro.qi-playing .qi-geology { animation: qi-foundation 2.6s ease-out both; }
#quarry-intro.qi-playing .qi-survey { animation: qi-survey-in .65s .1s ease-out both; }
#quarry-intro.qi-playing .qi-wire { animation: qi-plot .75s .28s cubic-bezier(.2,.7,.3,1) both, qi-line-charge .6s 1.36s ease-out; }
#quarry-intro.qi-playing .qi-label { animation: qi-label-in .4s .8s both; }
#quarry-intro.qi-playing .qi-node { animation: qi-node-in .35s .72s both, qi-node-charge .12s 1.3s ease-out forwards; }
/* Charge times follow cumulative route distance and the pulse's easing curve. */
#quarry-intro.qi-playing .qi-node-2 { animation-delay: .8s, 1.463s; --qi-charge-delay: 1.463s; }
#quarry-intro.qi-playing .qi-node-3 { animation-delay: .89s, 1.539s; --qi-charge-delay: 1.539s; }
#quarry-intro.qi-playing .qi-node-4 { animation-delay: .98s, 1.657s; --qi-charge-delay: 1.657s; }
#quarry-intro.qi-playing .qi-node-5 { animation-delay: 1.03s, 1.764s; --qi-charge-delay: 1.764s; }
#quarry-intro.qi-playing .qi-node-6 { animation-delay: 1.08s, 1.839s; --qi-charge-delay: 1.839s; }
#quarry-intro.qi-playing .qi-node-7 { animation-delay: 1.13s, 1.925s; --qi-charge-delay: 1.925s; }
#quarry-intro.qi-playing .qi-node-8 { animation-delay: 1.18s, 2.150s; --qi-charge-delay: 2.150s; }
#quarry-intro.qi-playing.qi-mobile .qi-node-2 { animation-delay: .8s, 1.505s; --qi-charge-delay: 1.505s; }
#quarry-intro.qi-playing.qi-mobile .qi-node-3 { animation-delay: .89s, 1.593s; --qi-charge-delay: 1.593s; }
#quarry-intro.qi-playing.qi-mobile .qi-node-4 { animation-delay: .98s, 1.720s; --qi-charge-delay: 1.720s; }
#quarry-intro.qi-playing.qi-mobile .qi-node-7 { animation-delay: 1.13s, 1.880s; --qi-charge-delay: 1.880s; }
#quarry-intro.qi-playing .qi-route:not(.qi-route-afterglow) { animation: qi-pulse .85s 1.3s cubic-bezier(.42,0,.7,1) both; }
#quarry-intro.qi-playing .qi-route.qi-route-core { animation-name: qi-core; }
#quarry-intro.qi-playing .qi-route-afterglow { animation: qi-afterglow 1.4s 1.3s cubic-bezier(.42,0,.7,1) both; }
#quarry-intro.qi-playing .qi-topology { animation: qi-topology-out .4s 2.60s ease-out both; }
#quarry-intro.qi-playing .qi-support { animation: qi-support-in 1.7s .9s ease-out both; }
#quarry-intro.qi-playing .qi-bloom { animation: qi-impact .45s 2.52s cubic-bezier(.16,.8,.2,1) both; }
#quarry-intro.qi-playing .qi-title { animation: qi-title-resolve .65s 2.66s cubic-bezier(.18,.75,.25,1) both; }
#quarry-intro.qi-playing .qi-mark path { stroke-dasharray: 1; animation: qi-mark-engrave .5s 2.69s ease-out both; }
@keyframes qi-foundation { 0% { opacity: 0; transform: scale(1.018); } 30%,70% { opacity: .85; } 100% { opacity: .23; transform: scale(1); } }
@keyframes qi-survey-in { from { opacity: 0; } to { opacity: .6; } }
@keyframes qi-plot { to { stroke-dashoffset: 0; } }
@keyframes qi-line-charge { 35% { stroke: #a6eeff; } }
@keyframes qi-label-in { from { opacity: 0; } to { opacity: .82; } }
@keyframes qi-node-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes qi-node-charge { from { filter: none; } to { filter: drop-shadow(0 0 3px #ad79ff) drop-shadow(0 0 10px #03defac0); } }
@keyframes qi-pulse { 0% { opacity: 0; stroke-dashoffset: var(--qi-segment); } 10%,88% { opacity: .8; } 100% { opacity: 0; stroke-dashoffset: calc(var(--qi-segment) - 1px); } }
@keyframes qi-core { 0% { opacity: 0; stroke-dashoffset: var(--qi-segment); } 6%,95% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: calc(var(--qi-segment) - 1px); } }
@keyframes qi-afterglow { 0% { opacity: 0; stroke-dashoffset: 1; } 10% { opacity: .3; } 70% { opacity: .55; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes qi-topology-out { from { opacity: 1; } to { opacity: 0; transform: scale(1.008); } }
@keyframes qi-support-in { 0% { opacity: 0; transform: translateY(6px); } 23%,73% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes qi-impact { 0% { opacity: 0; transform: scale(.015); } 14% { opacity: .9; } 39% { opacity: .85; transform: scale(6); } 100% { opacity: 0; transform: scale(7); } }
@keyframes qi-title-resolve { 0% { opacity: 0; filter: blur(5px) brightness(3); } 25% { opacity: 1; } 100% { opacity: 1; filter: blur(0) brightness(1); transform: translateY(0) scale(1); } }
@keyframes qi-mark-engrave { 0% { stroke-dashoffset: 1; stroke: #f4ffff; } 100% { stroke-dashoffset: 0; stroke: #80dfff; } }
/* CSS independently releases the page, even if JavaScript stops mid-sequence. */
@keyframes qi-exit { 0%,91.12245% { opacity: 1; visibility: visible; } 99.40816% { opacity: 0; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (max-width: 1000px) { #quarry-intro .qi-frame { font-size: 9px; } }
@media (max-width: 700px) {
  #quarry-intro .qi-frame { top: max(24px, env(safe-area-inset-top)); font-size: 8px; letter-spacing: .12em; }
  #quarry-intro .qi-frame span:nth-child(2) { display: none; }
  #quarry-intro .qi-support { bottom: 11%; font-size: 12px; letter-spacing: .03em; }
  #quarry-intro .qi-title { gap: 20px; }
  #quarry-intro .qi-wordmark { font-size: clamp(24px, 7vw, 34px); letter-spacing: .14em; }
  #quarry-intro .qi-mark { width: 110px; }
  #quarry-intro .qi-skip { padding: 8px 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { #quarry-intro { display: none !important; } }

/* Each shield shares its node's packet arrival time, including the mobile route. */
#quarry-intro .qi-node { --qi-charge-delay: 1.3s; }
#quarry-intro.qi-playing .qi-layer-shield,
#quarry-intro.qi-playing .qi-layer-check {
  animation: qi-shield-charge .28s var(--qi-charge-delay) ease-out forwards;
}
@keyframes qi-shield-charge {
  0% { stroke: #6fd4df; filter: none; }
  30% { stroke: #e6c4ff; opacity: 1; filter: drop-shadow(0 0 4px #db9cff) drop-shadow(0 0 13px #a32fff); }
  100% { stroke: #bb79ff; opacity: .95; filter: drop-shadow(0 0 3px #c584ff) drop-shadow(0 0 8px #9d39ff); }
}

/* Authored glyph contours: a short luminous stroke travels around each letter. */
#quarry-intro .qi-wordmark-vector { width: min(80vw, 660px); height: auto; overflow: visible; }
#quarry-intro .qi-letter-base { fill: #e5f6fb; stroke: none; }
#quarry-intro .qi-letter-labs .qi-letter-base { fill: #bb8cff; }
#quarry-intro .qi-letter-trail {
  fill: none; stroke: #bffaff; stroke-width: 1.8; stroke-linejoin: round;
  stroke-dasharray: .16 1; stroke-dashoffset: .16; opacity: 0;
  filter: drop-shadow(0 0 2px #08e8ff) drop-shadow(0 0 5px #ab48ff);
}
#quarry-intro.qi-playing .qi-letter-trail {
  animation: qi-letter-outline .36s linear both;
}
@keyframes qi-letter-outline {
  0% { opacity: 0; stroke-dashoffset: .16px; }
  8%,85% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -.84px; }
}
#quarry-intro.qi-playing .qi-letter-0 .qi-letter-trail { animation-delay: 2.820s; }
#quarry-intro.qi-playing .qi-letter-1 .qi-letter-trail { animation-delay: 2.905s; }
#quarry-intro.qi-playing .qi-letter-2 .qi-letter-trail { animation-delay: 2.990s; }
#quarry-intro.qi-playing .qi-letter-3 .qi-letter-trail { animation-delay: 3.075s; }
#quarry-intro.qi-playing .qi-letter-4 .qi-letter-trail { animation-delay: 3.160s; }
#quarry-intro.qi-playing .qi-letter-5 .qi-letter-trail { animation-delay: 3.245s; }
#quarry-intro.qi-playing .qi-letter-6 .qi-letter-trail { animation-delay: 3.330s; }
#quarry-intro.qi-playing .qi-letter-7 .qi-letter-trail { animation-delay: 3.415s; }
#quarry-intro.qi-playing .qi-letter-8 .qi-letter-trail { animation-delay: 3.500s; }
#quarry-intro.qi-playing .qi-letter-9 .qi-letter-trail { animation-delay: 3.585s; }

/* A single Quarry mark draws, charges, and resolves into the brand reveal. */
#quarry-intro .qi-title { display: block; opacity: 1; transform: none; }
#quarry-intro.qi-playing .qi-title { animation: none; }
#quarry-intro .qi-mark {
  position: absolute; left: 50%; top: 50%;
  width: clamp(120px, 12vw, 204px);
  transform: translate(-50%, -50%);
}
#quarry-intro .qi-mark path { stroke-width: 1.8; stroke-linecap: round; }
#quarry-intro .qi-wordmark-vector {
  position: absolute; left: 50%; top: calc(50% + clamp(88px, 8vw, 128px));
  transform: translateX(-50%); opacity: 0;
}
#quarry-intro .qi-strapline {
  position: absolute; left: 0; top: calc(50% + clamp(88px, 8vw, 128px) + min(9.364vw, 77.25px) + 20px);
  width: 100%; margin: 0; text-align: center; opacity: 0;
}
#quarry-intro.qi-playing .qi-wordmark-vector,
#quarry-intro.qi-playing .qi-strapline { animation: qi-brand-reveal .65s 2.66s ease-out both; }
#quarry-intro.qi-playing .qi-mark path { stroke-dasharray: 1; animation: qi-central-charge 3.15s linear both; }
#quarry-intro.qi-mobile .qi-bloom { top: 50%; }
@media (max-width: 700px) { #quarry-intro .qi-mark { width: 132px; } }
@keyframes qi-central-charge {
  0% { opacity: 0; stroke-dashoffset: 1; filter: none; }
  12% { opacity: .55; stroke: #8973bd; }
  40% { opacity: .85; stroke-dashoffset: 0; stroke: #ae88ff; filter: drop-shadow(0 0 3px #a54eff); }
  65% { opacity: 1; stroke-dashoffset: 0; stroke: #b3baff; filter: drop-shadow(0 0 5px #9968ff); }
  80% { opacity: 1; stroke-dashoffset: 0; stroke: #edffff; filter: drop-shadow(0 0 9px #39ecff); }
  100% { opacity: 1; stroke-dashoffset: 0; stroke: #80dfff; filter: drop-shadow(0 0 2px #39ecff80); }
}
@keyframes qi-brand-reveal {
  0% { opacity: 0; filter: blur(5px) brightness(3); }
  30% { opacity: 1; }
  100% { opacity: 1; filter: none; }
}

/* Clean journey icons: no surrounding stones or intro header caption. */
#quarry-intro .qi-frame span { display:none; }
#quarry-intro .qi-journey-step { opacity:0; }
#quarry-intro .qi-step-icon { fill:none;stroke:#93e7ef;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
#quarry-intro .qi-step-label { fill:#c0d7e2;stroke:none;font:16px Consolas,monospace;letter-spacing:2px; }
#quarry-intro.qi-mobile .qi-step-label { font-size:13px;letter-spacing:1px; }
#quarry-intro.qi-playing .qi-journey { animation:qi-journey-reveal 2.6s .05s both; }
#quarry-intro.qi-playing .qi-journey-step { animation:qi-step-awaken .6s var(--qi-step-delay) ease-out forwards; }
#quarry-intro .qi-journey-step-0 { --qi-step-delay:.55s; }
#quarry-intro .qi-journey-step-1 { --qi-step-delay:.75s; }
#quarry-intro .qi-journey-step-2 { --qi-step-delay:.95s; }
#quarry-intro .qi-journey-step-3 { --qi-step-delay:1.15s; }
#quarry-intro .qi-journey-guide { fill:none;stroke:#795798;stroke-width:1;opacity:.2; }
#quarry-intro .qi-journey-spark { fill:none;stroke-dasharray:.12 1;stroke-dashoffset:.12;opacity:0; }
#quarry-intro .qi-spark-halo { stroke:#a863ff;stroke-width:8;filter:blur(4px); }
#quarry-intro .qi-spark-core { stroke:#b9faff;stroke-width:2.5;filter:drop-shadow(0 0 5px #00e5ff); }
#quarry-intro.qi-playing .qi-journey-spark { animation:qi-journey-flow var(--qi-flow-duration) var(--qi-spark-delay) cubic-bezier(.35,.1,.65,1) both; }
#quarry-intro .qi-journey-spark-0 { --qi-spark-delay:1.15s;--qi-flow-duration:1.37s; }
#quarry-intro .qi-journey-spark-1 { --qi-spark-delay:1.4s;--qi-flow-duration:1.12s; }
#quarry-intro .qi-journey-spark-2 { --qi-spark-delay:1.65s;--qi-flow-duration:.87s; }
#quarry-intro .qi-journey-spark-3 { --qi-spark-delay:1.9s;--qi-flow-duration:.62s; }
@keyframes qi-journey-reveal { 0%{opacity:0}20%,80%{opacity:1}100%{opacity:0} }
@keyframes qi-step-awaken { 0%{opacity:0;filter:none}40%{opacity:1}100%{opacity:1;filter:drop-shadow(0 0 5px #a06eff80)} }
@keyframes qi-journey-flow { 0%{opacity:0;stroke-dashoffset:.12px}10%,85%{opacity:1}100%{opacity:0;stroke-dashoffset:-.88px} }
