/* First-load intro curtain (markup in index.html, dismissed by src/main.tsx).
   A file, not inline, because the CSP allows only same-origin styles. Hex values mirror the --vv-* brand tokens. */
#vv-intro { display: none; }
[data-intro] #vv-intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(50% 45% at 50% 48%, rgb(244 241 234 / 0.06), transparent) #131417; color: #f4f1ea;
  font: 500 10.5px/1.2 'IBM Plex Mono', ui-monospace, Menlo, monospace; letter-spacing: 0.26em; text-transform: uppercase;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1) 0.45s;
}
[data-theme='dark'] #vv-intro { background-color: #1a1c21; }
#vv-intro .topo {
  position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #f4f1ea; stroke-width: 1.1;
  mask-image: radial-gradient(ellipse min(46vw, 300px) 150px at 50% 47%, transparent 40%, #000 100%);
  animation: vv-zoom 2s cubic-bezier(0.16, 1, 0.3, 1) backwards; transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1) 0.3s;
}
#vv-intro .topo path { stroke-opacity: 0.07; stroke-dasharray: 1; stroke-dashoffset: 1; animation: vv-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--k) * 70ms) forwards; }
#vv-intro .topo .idx { stroke-opacity: 0.16; }
#vv-intro .meta { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 4vw, 48px); color: #948e82; animation: vv-fade 0.9s ease 0.5s both; }
#vv-intro .meta.top { top: clamp(20px, 4vh, 40px); }
#vv-intro .meta.bottom { bottom: clamp(20px, 4vh, 40px); }
#vv-intro .meta i { font-style: normal; color: #6b6e73; }
@media (max-width: 600px) { #vv-intro .meta .wide { display: none; } }
#vv-intro .lockup { position: relative; display: grid; gap: 28px; width: min(64vw, 340px); transition: opacity 0.5s ease 0.3s, transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.3s; }
#vv-intro .lockup svg { display: block; width: 100%; overflow: visible; }
#vv-intro .readout { display: flex; justify-content: space-between; margin-top: -14px; color: #b6afa2; animation: vv-fade 0.8s ease 0.3s both; }
#vv-intro .motto { height: 1.2em; overflow: hidden; }
#vv-intro .motto span { display: block; animation: vv-motto 2.1s cubic-bezier(0.76, 0, 0.24, 1) 0.3s both; }
#vv-intro .motto b { display: block; font-weight: inherit; }
@property --vv-p { syntax: '<integer>'; inherits: false; initial-value: 0; }
#vv-intro .count { font-variant-numeric: tabular-nums; counter-reset: p var(--vv-p); animation: vv-count 7.5s linear 0.2s forwards; }
#vv-intro .count::before { content: counter(p, decimal-leading-zero) '%'; }
#vv-intro .glyphs path { fill: currentColor; transform-box: fill-box; animation: vv-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) calc(0.4s + var(--i) * 70ms) both; }
#vv-intro .mountain {
  fill: #6b6e73; fill-opacity: 0; stroke: #6b6e73; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: vv-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards, vv-fill 0.6s ease 0.95s forwards;
}
#vv-intro .summit { fill: #e8442a; transform-box: fill-box; animation: vv-drop 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both; }
#vv-intro .bar { height: 1px; background: #2a2c32; overflow: hidden; }
#vv-intro .bar i { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); animation: vv-load 7.5s linear 0.2s forwards; }
#vv-intro.is-done { transform: translateY(-100%); }
#vv-intro.is-done .lockup { opacity: 0; transform: translateY(-32px); }
/* The finishing animation stacks on the running one, so it climbs to 100% from wherever the loader got to. */
#vv-intro.is-done .bar i { animation: vv-load 7.5s linear 0.2s forwards, vv-full 0.35s ease forwards; }
#vv-intro.is-done .count { animation: vv-count 7.5s linear 0.2s forwards, vv-count-full 0.35s ease forwards; }
#vv-intro.is-done .topo { transform: scale(1.1); }
@keyframes vv-zoom { from { transform: scale(1.12); } }
@keyframes vv-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes vv-motto { 0% { transform: translateY(1.2em); } 14%, 36% { transform: none; } 50%, 72% { transform: translateY(-1.2em); } 86%, 100% { transform: translateY(-2.4em); } }
/* Loader: 86% in 1.5s, then a slow crawl toward 99% so a slow connection never looks frozen. */
@keyframes vv-count { from { --vv-p: 0; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } 20% { --vv-p: 86; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } to { --vv-p: 99; } }
@keyframes vv-count-full { to { --vv-p: 100; } }
@keyframes vv-rise { from { transform: translateY(115%); } }
@keyframes vv-draw { to { stroke-dashoffset: 0; } }
@keyframes vv-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes vv-drop { from { transform: translateY(-70%); opacity: 0; } }
@keyframes vv-load { from { transform: scaleX(0); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } 20% { transform: scaleX(0.86); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } to { transform: scaleX(0.99); } }
@keyframes vv-full { to { transform: scaleX(1); } }
/* Letters rise outward from the mountain: T M R A V I V. */
#vv-intro .glyphs :nth-child(1) { --i: 6; }
#vv-intro .glyphs :nth-child(2) { --i: 5; }
#vv-intro .glyphs :nth-child(3) { --i: 4; }
#vv-intro .glyphs :nth-child(4) { --i: 3; }
#vv-intro .glyphs :nth-child(5) { --i: 0; }
#vv-intro .glyphs :nth-child(6) { --i: 1; }
#vv-intro .glyphs :nth-child(7) { --i: 2; }
