/* ============================================================
   ALMIN PROJECTS — Virtual Quarry Experience
   Blueprint-style interactive SVG tour. Used by virtual-quarry.html
   ============================================================ */

:root{
  --bp-bg:      #0c1310;
  --bp-bg-2:    #101a15;
  --bp-line:    #d8e4dc;
  --bp-faint:   rgba(216,228,220,.22);
  --bp-grid:    rgba(216,228,220,.05);
  --bp-yellow:  #ffcc29;
  --bp-green:   #18b673;
  --bp-green-2: #0a8a52;
  --bp-danger:  #ff5d4d;
}

/* ---------- Intro strip ---------- */
.vq-intro{
  background:var(--bp-bg);
  color:var(--bp-line);
  text-align:center;
  padding:84px 24px 64px;
  position:relative;
  overflow:hidden;
}
.vq-intro::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size:40px 40px;
  pointer-events:none;
}
.vq-intro > *{ position:relative; }
.vq-intro h1{
  color:#fff; font-size:clamp(2rem,4.4vw,3.4rem); font-weight:900;
  letter-spacing:-.02em; margin:0 auto 18px; max-width:900px;
}
.vq-intro h1 .accent{ color:var(--bp-yellow); }
.vq-intro p{
  max-width:640px; margin:0 auto; color:rgba(216,228,220,.75); font-size:1.08rem;
}
.vq-intro .vq-hint{
  display:inline-flex; align-items:center; gap:12px;
  margin-top:34px; padding:12px 22px;
  border:1px dashed rgba(255,204,41,.5); border-radius:99px;
  color:var(--bp-yellow); font-weight:700; font-size:.88rem; letter-spacing:.08em;
  text-transform:uppercase;
}
.vq-hint svg{ width:18px; height:18px; animation:vq-bounce 1.6s ease infinite; }
@keyframes vq-bounce{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ---------- Stage ---------- */
.vq-wrap{ background:var(--bp-bg); position:relative; }
.vq-stage{
  position:relative; height:calc(100vh - 86px); min-height:560px;
  overflow:hidden;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(24,182,115,.08), transparent 70%),
    var(--bp-bg);
}
.vq-stage::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size:40px 40px;
  pointer-events:none;
}
.vq-world{
  position:absolute; top:0; left:0; height:100%;
  will-change:transform;
}
.vq-world svg{ height:100%; width:auto; display:block; }

/* SVG drawing style */
.vq-world svg *{ vector-effect:non-scaling-stroke; }
.ln{ fill:none; stroke:var(--bp-line); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ln--thin{ stroke-width:1.2; opacity:.75; }
.ln--faint{ stroke:var(--bp-faint); stroke-width:1.2; }
.ln--y{ stroke:var(--bp-yellow); }
.ln--g{ stroke:var(--bp-green); }
.ln--dash{ stroke-dasharray:7 7; }
.fill-y{ fill:var(--bp-yellow); }
.fill-g{ fill:var(--bp-green); }
.fill-ink{ fill:var(--bp-bg-2); }
.fill-line{ fill:var(--bp-line); }
.glass{ fill:rgba(24,182,115,.16); }
.vq-label{
  font-family:"Archivo", sans-serif; font-size:15px; font-weight:700;
  letter-spacing:.14em; fill:var(--bp-yellow); text-transform:uppercase;
}
.vq-dim{
  font-family:"Archivo", sans-serif; font-size:12.5px; font-weight:500;
  letter-spacing:.06em; fill:var(--bp-faint);
}
.vq-dim--bright{ fill:rgba(216,228,220,.65); }

/* Station hotspot pulse */
.vq-hotspot{ cursor:pointer; }
.vq-hotspot circle.core{ fill:var(--bp-yellow); }
.vq-hotspot circle.ring{
  fill:none; stroke:var(--bp-yellow); stroke-width:2;
  transform-origin:center; transform-box:fill-box;
  animation:vq-pulse 2.2s ease-out infinite;
}
@keyframes vq-pulse{
  0%{ transform:scale(.4); opacity:.9; }
  100%{ transform:scale(2.1); opacity:0; }
}
.vq-hotspot text{
  font-family:"Archivo", sans-serif; font-weight:800; font-size:15px;
  fill:var(--bp-bg);
}
.vq-hotspot .tag{
  fill:var(--bp-yellow);
}
.vq-hotspot:hover .tag, .vq-hotspot:focus .tag{ fill:#fff; }
.vq-hotspot:focus{ outline:none; }
.vq-hotspot:focus-visible circle.core{ stroke:#fff; stroke-width:3; }

/* ---------- HUD ---------- */
.vq-hud{
  position:absolute; left:0; right:0; bottom:0; z-index:6;
  display:flex; align-items:flex-end; justify-content:space-between;
  padding:0 28px 22px; pointer-events:none; gap:20px;
}
.vq-rail{
  pointer-events:auto;
  display:flex; align-items:center; gap:10px;
  background:rgba(12,19,16,.82); backdrop-filter:blur(8px);
  border:1px solid rgba(216,228,220,.14); border-radius:99px;
  padding:10px 16px;
}
.vq-rail button{
  width:34px; height:34px; border-radius:50%;
  border:2px solid rgba(216,228,220,.25); background:transparent;
  color:var(--bp-line); font-weight:800; font-size:.78rem;
  font-family:"Archivo", sans-serif;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s ease; padding:0;
}
.vq-rail button:hover{ border-color:var(--bp-yellow); color:var(--bp-yellow); }
.vq-rail button.is-active{
  background:var(--bp-yellow); border-color:var(--bp-yellow); color:var(--bp-bg);
}
.vq-rail .vq-rail-line{ width:14px; height:2px; background:rgba(216,228,220,.2); flex:none; }
.vq-arrows{
  pointer-events:auto; display:flex; gap:10px;
}
.vq-arrows button{
  width:46px; height:46px; border-radius:50%;
  border:1px solid rgba(216,228,220,.2);
  background:rgba(12,19,16,.82); backdrop-filter:blur(8px);
  color:var(--bp-line); display:flex; align-items:center; justify-content:center;
  transition:all .2s ease;
}
.vq-arrows button:hover{ background:var(--bp-yellow); color:var(--bp-bg); border-color:var(--bp-yellow); }
.vq-arrows svg{ width:20px; height:20px; }

/* Compass / location readout */
.vq-loc{
  position:absolute; top:20px; left:28px; z-index:6;
  background:rgba(12,19,16,.82); backdrop-filter:blur(8px);
  border:1px solid rgba(216,228,220,.14); border-radius:8px;
  padding:10px 16px; color:var(--bp-line); pointer-events:none;
  font-family:"Archivo", sans-serif;
}
.vq-loc small{
  display:block; font-size:.66rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--bp-yellow); font-weight:700;
}
.vq-loc strong{ font-size:.98rem; font-weight:800; }

/* ---------- Station panel ---------- */
.vq-panel{
  position:absolute; top:0; right:0; bottom:0; z-index:7;
  width:min(440px, 92vw);
  background:rgba(13,20,16,.96); backdrop-filter:blur(14px);
  border-left:1px solid rgba(255,204,41,.35);
  transform:translateX(105%);
  transition:transform .45s cubic-bezier(.2,.8,.2,1);
  display:flex; flex-direction:column;
  color:var(--bp-line);
}
.vq-panel.is-open{ transform:translateX(0); }
.vq-panel::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background:repeating-linear-gradient(-45deg, var(--bp-yellow) 0 14px, var(--bp-bg) 14px 28px);
}
.vq-panel__head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  padding:30px 30px 0;
}
.vq-panel__step{
  font-size:.72rem; font-weight:800; letter-spacing:.2em; text-transform:uppercase;
  color:var(--bp-yellow); margin-bottom:8px; display:block;
}
.vq-panel h2{ color:#fff; font-size:1.5rem; margin:0; }
.vq-panel__close{
  flex:none; width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(216,228,220,.25); background:transparent; color:var(--bp-line);
  display:flex; align-items:center; justify-content:center; transition:all .2s ease;
}
.vq-panel__close:hover{ background:var(--bp-yellow); color:var(--bp-bg); border-color:var(--bp-yellow); }
.vq-panel__close svg{ width:18px; height:18px; }
.vq-panel__body{ padding:20px 30px 30px; overflow-y:auto; flex:1; }
.vq-panel__body p{ color:rgba(216,228,220,.8); font-size:.98rem; }
.vq-panel__facts{
  display:grid; gap:10px; margin:20px 0;
}
.vq-panel__facts li{
  display:flex; justify-content:space-between; gap:14px; font-size:.88rem;
  border-bottom:1px dashed rgba(216,228,220,.18); padding-bottom:9px;
}
.vq-panel__facts span{ color:rgba(216,228,220,.55); }
.vq-panel__facts strong{ color:#fff; text-align:right; }
.vq-panel .btn{ width:100%; margin-top:6px; }
.vq-panel__body .btn + .btn{ margin-top:12px; }

/* ---------- Blast control ---------- */
.vq-blastbox{
  margin:22px 0; padding:20px;
  border:1px solid rgba(255,93,77,.4); border-radius:8px;
  background:rgba(255,93,77,.06);
}
.vq-blastbox p{ font-size:.85rem; margin-bottom:14px; color:rgba(216,228,220,.7); }
.vq-blast-btn{
  width:100%; padding:16px; border-radius:8px; border:0;
  background:var(--bp-yellow); color:var(--bp-bg);
  font-family:"Archivo", sans-serif; font-weight:900; font-size:1.02rem;
  letter-spacing:.06em; text-transform:uppercase;
  display:flex; align-items:center; justify-content:center; gap:10px;
  transition:all .2s ease;
}
.vq-blast-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(255,204,41,.3); }
.vq-blast-btn[disabled]{ opacity:.55; transform:none; box-shadow:none; cursor:default; }
.vq-blast-btn svg{ width:20px; height:20px; }

/* Blast stage effects */
.vq-flash{
  position:absolute; inset:0; z-index:5; background:#fff; opacity:0; pointer-events:none;
}
.vq-countdown{
  position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center;
  pointer-events:none; opacity:0;
}
.vq-countdown span{
  font-family:"Archivo", sans-serif; font-weight:900; font-size:clamp(5rem,18vw,12rem);
  color:var(--bp-yellow); text-shadow:0 0 60px rgba(255,204,41,.5);
}
.vq-toast{
  position:absolute; top:20px; right:28px; z-index:8;
  background:rgba(13,20,16,.95); border:1px solid var(--bp-green);
  border-left:4px solid var(--bp-green);
  color:var(--bp-line); padding:14px 20px; border-radius:8px;
  font-size:.9rem; max-width:330px;
  opacity:0; transform:translateY(-12px); transition:all .4s ease;
  pointer-events:none;
}
.vq-toast.is-show{ opacity:1; transform:none; }
.vq-toast strong{ color:var(--bp-green); display:block; margin-bottom:3px; }

/* shake */
@keyframes vq-shake{
  0%,100%{ transform:translate(0,0); }
  20%{ transform:translate(-7px,4px); }
  40%{ transform:translate(6px,-5px); }
  60%{ transform:translate(-5px,3px); }
  80%{ transform:translate(4px,-2px); }
}
.vq-stage.is-shaking .vq-world{ animation:vq-shake .5s linear 2; }

/* Seismo live trace */
.vq-seismo-trace{ stroke:var(--bp-green); }
.vq-seismo-spike{ stroke:var(--bp-danger); opacity:0; }
.vq-stage.has-blasted .vq-seismo-spike{ opacity:1; }

/* Post-blast states */
#vq-rubble{ opacity:0; }
#vq-prefrag{ opacity:1; }
#vq-debris{ opacity:0; }
.vq-stage.has-blasted #vq-rubble{ opacity:1; }
.vq-stage.has-blasted #vq-prefrag{ opacity:0; }

/* ---------- Outro ---------- */
.vq-outro{
  background:var(--bp-bg); padding:90px 24px 100px; text-align:center;
  color:var(--bp-line); position:relative; overflow:hidden;
}
.vq-outro::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size:40px 40px; pointer-events:none;
}
.vq-outro > *{ position:relative; }
.vq-outro h2{ color:#fff; font-size:clamp(1.8rem,3.4vw,2.8rem); margin-bottom:16px; }
.vq-outro h2 .accent{ color:var(--bp-yellow); }
.vq-outro p{ max-width:560px; margin:0 auto 34px; color:rgba(216,228,220,.75); }
.vq-outro .actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- Fallback (no JS / reduced motion / small screens) ---------- */
.vq-static{ display:none; background:var(--bp-bg); }
.vq-static .container{ padding-block:70px; }
.vq-card{
  background:var(--bp-bg-2); border:1px solid rgba(216,228,220,.12); border-radius:10px;
  overflow:hidden; margin-bottom:34px;
}
.vq-card svg{ width:100%; height:auto; display:block; background:var(--bp-bg); }
.vq-card__body{ padding:26px 28px 30px; color:var(--bp-line); }
.vq-card__body h2{ color:#fff; font-size:1.4rem; margin-bottom:10px; }
.vq-card__body p{ color:rgba(216,228,220,.78); font-size:.97rem; }
.vq-card__body .vq-panel__step{ margin-bottom:6px; }
.vq-card__body .btn{ margin-top:14px; }

html.vq-fallback .vq-wrap{ display:none; }
html.vq-fallback .vq-static{ display:block; }
/* Without JS the pinned tour can't run — always show the static version */
html.no-js .vq-wrap{ display:none; }
html.no-js .vq-static{ display:block; }

@media (max-width:680px){
  .vq-intro{ padding:60px 20px 48px; }
  .vq-loc{ display:none; }
  .vq-hud{ padding:0 16px 16px; }
  .vq-rail button{ width:30px; height:30px; font-size:.7rem; }
  .vq-rail .vq-rail-line{ width:8px; }
}
