/* ============================================================
   ViewAlyzer intro — "Hardware + Software Trace Fusion" pitch slides
   Ported from the Claude Design handoff (ETM Fusion.dc.html).
   Flat / calm system: warm near-black, one orange accent, no glow.
   All selectors are scoped under #va-intro and all classes are
   vi-prefixed so nothing collides with va.css.
   ============================================================ */

#va-intro {
  --vi-bg:     #110f10;
  --vi-card:   #1a1718;
  --vi-card2:  #141213;
  --vi-line:   rgba(255,255,255,0.085);
  --vi-line2:  rgba(255,255,255,0.05);
  --vi-white:  #f5f5f6;
  --vi-grey:   #a2a2a9;
  --vi-dim:    #6f6f77;
  --vi-faint:  #46464d;
  --vi-orange: #f26a1f;
  --vi-orange-dim: #9c5226;
  --vi-steel:  #c9ccd4;
  --vi-red:    #e2533b;
  --vi-disp: 'Hanken Grotesk', system-ui, sans-serif;
  --vi-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

html.vi-lock, html.vi-lock body { overflow: hidden; }

#va-intro {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--vi-bg);
  display: flex; flex-direction: column;
  font-family: var(--vi-disp);
  -webkit-font-smoothing: antialiased;
  opacity: 1; transition: opacity .5s ease;
}
#va-intro.vi-closing { opacity: 0; pointer-events: none; }

#va-intro * { box-sizing: border-box; margin: 0; padding: 0; }
#va-intro [data-code] { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

/* ── stage (1920×1080, scaled to fit) ──────────────────────── */
#va-intro .vi-stagewrap {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#va-intro .vi-stage {
  width: 1920px; height: 1080px;
  position: relative; flex-shrink: 0;
  background: var(--vi-bg);
  overflow: hidden; cursor: pointer;
  transform-origin: center;
}
#va-intro .vi-bg {
  position: absolute; inset: 0;
  background: radial-gradient(58% 50% at 28% 30%, rgba(255,255,255,0.022), transparent 70%);
}

/* ── slides & reveals ──────────────────────────────────────── */
#va-intro .vi-slide { position: absolute; inset: 0; display: none; }
#va-intro .vi-slide.vi-on  { display: block; animation: viFadeIn .27s ease-out both; }
#va-intro .vi-slide.vi-out { animation: viFadeOut .3s ease both; pointer-events: none; }

@keyframes viFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes viFadeOut { from { opacity: 1; } to { opacity: 0; } }

#va-intro .vi-slide .vi-rev { opacity: 0; }
#va-intro .vi-slide.vi-run .vi-rev {
  animation: viReveal var(--rdur, .37s) cubic-bezier(.215,.61,.355,1) var(--d, 0s) both;
}
@keyframes viReveal {
  from { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 18px)); }
  to   { opacity: 1; transform: translate(0, 0); }
}

/* ── shared atoms ──────────────────────────────────────────── */
#va-intro .vi-kick { display: flex; align-items: center; gap: 18px; }
#va-intro .vi-kick i { width: 34px; height: 1.5px; background: var(--vi-faint); }
#va-intro .vi-kick span {
  font-family: var(--vi-mono); font-size: 17px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--vi-dim); white-space: nowrap;
}
#va-intro .vi-kick b { color: var(--vi-white); font-weight: 400; margin-right: .55em; }

#va-intro .vi-caption {
  font-family: var(--vi-mono); font-size: 14.5px; letter-spacing: .05em;
  color: var(--vi-dim); margin-bottom: 13px; white-space: nowrap;
}
#va-intro .vi-caption.vi-o { color: var(--vi-orange-dim); }

#va-intro .vi-panel {
  background: var(--vi-card); border: 1px solid var(--vi-line);
  border-radius: 14px; overflow: hidden; position: relative;
}

#va-intro .vi-badge {
  font-family: var(--vi-mono); font-size: 14px; color: var(--vi-white);
  border: 1px solid var(--vi-line); padding: 5px 12px; border-radius: 7px;
  font-weight: 500; letter-spacing: .08em; white-space: nowrap;
}
#va-intro .vi-badge.vi-o { color: var(--vi-orange); border-color: rgba(242,106,31,0.5); letter-spacing: .06em; }

#va-intro .vi-cardhead { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
#va-intro .vi-cardhead .vi-t { font-family: var(--vi-disp); font-size: 25px; color: var(--vi-white); font-weight: 600; white-space: nowrap; }

#va-intro .vi-checks { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
#va-intro .vi-check { display: flex; align-items: center; gap: 13px; font-family: var(--vi-disp); font-size: 23px; font-weight: 500; color: var(--vi-faint); }
#va-intro .vi-check .vi-m { color: var(--vi-faint); font-size: 17px; font-weight: 700; width: 16px; text-align: center; }
#va-intro .vi-check span:last-child { white-space: nowrap; }
#va-intro .vi-check.vi-ok { color: var(--vi-white); }
#va-intro .vi-check.vi-ok .vi-m { color: var(--vi-orange); }

/* ── flame graph (hardware trace · neutral grey) ───────────── */
#va-intro .vi-flame { position: absolute; inset: 0; padding: 14px 16px; }
#va-intro .vi-flame .vi-frow { position: relative; height: 11%; }
#va-intro .vi-flame .vi-fcell {
  position: absolute; top: 6%; height: 78%;
  border-radius: 4px; display: flex; align-items: center;
  padding-left: 9px; overflow: hidden;
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.10);
  transform-origin: left center;
}
#va-intro .vi-flame .vi-fcell span { font-family: var(--vi-mono); font-size: 12.5px; color: rgba(255,255,255,0.34); font-weight: 500; white-space: nowrap; }
#va-intro .vi-flame .vi-fcell.vi-fsub { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.20); }
#va-intro .vi-flame .vi-fcell.vi-fsub span { color: rgba(255,255,255,0.78); }
#va-intro .vi-flame .vi-fcell.vi-ffocus { background: var(--vi-steel); border-color: var(--vi-steel); }
#va-intro .vi-flame .vi-fcell.vi-ffocus span { color: #101012; font-weight: 700; }
#va-intro .vi-flame .vi-fboxes { position: absolute; top: 8%; height: 60%; display: flex; gap: 1.4%; }
#va-intro .vi-flame .vi-fboxes i { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 3px; }

#va-intro .vi-flame:not(.vi-st) .vi-fcell,
#va-intro .vi-flame:not(.vi-st) .vi-fboxes { opacity: 0; }
#va-intro .vi-slide.vi-run .vi-flame:not(.vi-st) .vi-fcell,
#va-intro .vi-slide.vi-run .vi-flame:not(.vi-st) .vi-fboxes {
  animation: viFlameIn .45s cubic-bezier(.215,.61,.355,1) var(--d, .3s) both;
}
@keyframes viFlameIn {
  from { opacity: 0; transform: scaleX(.7); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* ── signal panel (software trace · orange) ────────────────── */
#va-intro .vi-signal { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; }
#va-intro .vi-pills { display: flex; gap: 9px; flex-wrap: wrap; }
#va-intro .vi-pills span {
  font-family: var(--vi-mono); font-size: 12.5px; padding: 5px 11px; border-radius: 7px;
  color: var(--vi-dim); border: 1px solid var(--vi-line); background: transparent;
}
#va-intro .vi-pills span.vi-active { color: var(--vi-orange); border-color: rgba(242,106,31,0.5); background: rgba(242,106,31,0.08); }
#va-intro .vi-scope { flex: 1; position: relative; border-radius: 9px; border: 1px solid var(--vi-line2); background: rgba(0,0,0,0.4); overflow: hidden; }
#va-intro .vi-scope svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#va-intro .vi-sstats { display: flex; gap: 9px; }
#va-intro .vi-sstats > div { flex: 1; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.025); border: 1px solid var(--vi-line2); }
#va-intro .vi-sstats .vi-k { font-family: var(--vi-mono); font-size: 11px; color: var(--vi-dim); letter-spacing: .06em; text-transform: uppercase; display: block; }
#va-intro .vi-sstats .vi-v { font-family: var(--vi-mono); font-size: 20px; color: var(--vi-orange); font-weight: 600; font-variant-numeric: tabular-nums; }

#va-intro .vi-signal:not(.vi-st) .vi-pills,
#va-intro .vi-signal:not(.vi-st) .vi-sstats { opacity: 0; }
#va-intro .vi-slide.vi-run .vi-signal:not(.vi-st) .vi-pills,
#va-intro .vi-slide.vi-run .vi-signal:not(.vi-st) .vi-sstats { animation: viFadeIn .45s ease-out .3s both; }
#va-intro .vi-signal:not(.vi-st) .vi-scope svg { clip-path: inset(0 100% 0 0); }
#va-intro .vi-slide.vi-run .vi-signal:not(.vi-st) .vi-scope svg { animation: viWipe .55s cubic-bezier(.215,.61,.355,1) .3s both; }
@keyframes viWipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ── task timeline rows (unified) ──────────────────────────── */
#va-intro .vi-trows { position: absolute; inset: 0; padding: 6px 0; }
#va-intro .vi-trow { display: flex; align-items: center; border-bottom: 1px solid var(--vi-line2); }
#va-intro .vi-tname {
  width: 168px; flex-shrink: 0; padding-left: 18px;
  font-family: var(--vi-mono); font-size: 13px; color: var(--vi-dim);
  white-space: nowrap; overflow: hidden;
}
#va-intro .vi-trow.vi-taccent .vi-tname { color: var(--vi-orange); }
#va-intro .vi-tname i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 9px; vertical-align: middle; }
#va-intro .vi-ttrack { flex: 1; position: relative; height: 56%; margin-right: 18px; }
#va-intro .vi-ttrack b { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
#va-intro .vi-playhead { position: absolute; top: 6px; bottom: 6px; width: 1.5px; background: rgba(255,255,255,0.16); animation: viPlayhead 8.9s linear infinite; }
@keyframes viPlayhead {
  from { left: calc(168px + 0%); }
  to   { left: calc(168px + 80%); }
}
#va-intro .vi-trows:not(.vi-st) .vi-ttrack { clip-path: inset(0 100% 0 0); }
#va-intro .vi-slide.vi-run .vi-trows:not(.vi-st) .vi-ttrack { animation: viWipe .51s cubic-bezier(.215,.61,.355,1) var(--d, .4s) both; }

/* ── slide 1 · the thesis ──────────────────────────────────── */
#va-intro .vi-s1 .vi-head { position: absolute; left: 0; right: 0; top: 184px; text-align: center; }
#va-intro .vi-s1 h2 { font-family: var(--vi-disp); font-weight: 800; font-size: 60px; color: var(--vi-white); letter-spacing: -.025em; white-space: nowrap; line-height: 1.04; }
#va-intro .vi-s1 h2 em { font-style: normal; color: var(--vi-orange); }
#va-intro .vi-s1 .vi-sub { font-family: var(--vi-disp); font-size: 23px; color: var(--vi-grey); margin-top: 16px; white-space: nowrap; }
#va-intro .vi-s1 .vi-cols { position: absolute; left: 0; right: 0; top: 352px; display: flex; justify-content: center; gap: 64px; }
#va-intro .vi-s1 .vi-col { width: 650px; }

/* ── slide 2 · the fusion ──────────────────────────────────── */
#va-intro .vi-s2 .vi-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 54px; }
#va-intro .vi-s2 .vi-mergebox { position: relative; width: 920px; height: 300px; }
#va-intro .vi-s2 .vi-mv { position: absolute; top: 0; }
#va-intro .vi-s2 .vi-mv .vi-panel { width: 430px; height: 272px; }
#va-intro .vi-s2 .vi-ml { left: calc(50% - 875px); }
#va-intro .vi-s2 .vi-mr { left: calc(50% + 445px); }
#va-intro .vi-s2.vi-run .vi-ml { animation: viMergeL .867s cubic-bezier(.65,0,.35,1) .4s both; }
#va-intro .vi-s2.vi-run .vi-mr { animation: viMergeR .867s cubic-bezier(.65,0,.35,1) .4s both; }
@keyframes viMergeL { from { left: calc(50% - 875px); } to { left: calc(50% - 445px); } }
@keyframes viMergeR { from { left: calc(50% + 445px); } to { left: calc(50% + 15px); } }
#va-intro .vi-s2 .vi-ml .vi-panel { transform: rotate(-4deg); }
#va-intro .vi-s2 .vi-mr .vi-panel { transform: rotate(4deg); }
#va-intro .vi-s2.vi-run .vi-mv .vi-panel { animation: viUnrot .867s cubic-bezier(.65,0,.35,1) .4s both; }
@keyframes viUnrot { to { transform: rotate(0deg); } }
#va-intro .vi-s2 .vi-arrows { position: absolute; top: 28px; left: 0; width: 920px; height: 300px; pointer-events: none; opacity: 0; }
#va-intro .vi-s2.vi-run .vi-arrows { animation: viArrows .867s linear .4s both; }
@keyframes viArrows {
  0% { opacity: 0; } 62% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; }
}
#va-intro .vi-s2 .vi-fusecopy { text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
#va-intro .vi-s2 h2 { font-family: var(--vi-disp); font-weight: 800; font-size: 52px; color: var(--vi-white); letter-spacing: -.02em; white-space: nowrap; }
#va-intro .vi-s2 .vi-duo { display: flex; gap: 40px; font-family: var(--vi-mono); font-size: 19px; color: var(--vi-grey); white-space: nowrap; }
#va-intro .vi-s2 .vi-duo .vi-o { color: var(--vi-orange); }
#va-intro .vi-s2 .vi-duo .vi-st2 { color: var(--vi-steel); }
#va-intro .vi-s2 .vi-duo .vi-dsep { color: var(--vi-faint); }

/* ── slide 3 · one click ───────────────────────────────────── */
#va-intro .vi-s3 .vi-split { position: absolute; inset: 0; padding: 0 150px; display: flex; align-items: center; gap: 80px; }
#va-intro .vi-s3 .vi-ltext { width: 520px; flex-shrink: 0; }
#va-intro .vi-s3 h2 { font-family: var(--vi-disp); font-weight: 800; font-size: 72px; color: var(--vi-white); letter-spacing: -.025em; line-height: 1.04; margin-top: 26px; }
#va-intro .vi-s3 h2 em { font-style: normal; color: var(--vi-orange); }
#va-intro .vi-s3 .vi-sub { font-family: var(--vi-disp); font-size: 24px; color: var(--vi-grey); line-height: 1.5; margin-top: 24px; max-width: 460px; }
#va-intro .vi-s3 .vi-cause {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--vi-mono); font-size: 17px; color: var(--vi-orange);
  border: 1px solid rgba(242,106,31,0.45); border-radius: 9px; padding: 11px 15px;
  background: rgba(242,106,31,0.06); white-space: nowrap;
}
#va-intro .vi-s3 .vi-cause b { font-weight: 700; }
#va-intro .vi-s3 .vi-rvis { flex: 1; position: relative; }
#va-intro .vi-s3 .vi-viewtl .vi-panel, #va-intro .vi-s3 .vi-viewcode .vi-panel { width: 100%; height: 430px; }
#va-intro .vi-s3 .vi-viewtl svg.vi-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#va-intro .vi-s3 .vi-arc, #va-intro .vi-s3 .vi-dotA, #va-intro .vi-s3 .vi-dotB { opacity: 0; }
#va-intro .vi-s3.vi-run .vi-arc  { animation: viFadeIn .4s linear .933s both; }
#va-intro .vi-s3.vi-run .vi-dotA { animation: viFadeIn .267s linear .933s both; }
#va-intro .vi-s3.vi-run .vi-dotB { animation: viFadeIn .267s linear 1.067s both; }
#va-intro .vi-s3 .vi-invbadge {
  position: absolute; left: 52%; top: 64px; opacity: 0;
  font-family: var(--vi-mono); font-size: 13.5px; color: var(--vi-white);
  background: var(--vi-red); padding: 6px 12px; border-radius: 7px; white-space: nowrap;
}
#va-intro .vi-s3.vi-run .vi-invbadge { animation: viFadeIn .267s linear 1.2s both; }
/* timeline view vanishes at the click; code view appears */
#va-intro .vi-s3.vi-run .vi-viewtl { animation: viVanish .01s linear 2.133s both; }
@keyframes viVanish { to { opacity: 0; visibility: hidden; } }
#va-intro .vi-s3 .vi-viewcode { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
#va-intro .vi-s3.vi-run .vi-viewcode { animation: viCodeIn .33s cubic-bezier(.215,.61,.355,1) 2.2s both; }
@keyframes viCodeIn {
  from { opacity: 0; visibility: visible; transform: translateX(20px); }
  to   { opacity: 1; visibility: visible; transform: translateX(0); }
}
#va-intro .vi-s3 .vi-code { position: absolute; inset: 0; padding: 20px 0; font-family: var(--vi-mono); font-size: 20px; line-height: 2.1; white-space: nowrap; }
#va-intro .vi-s3 .vi-ln { display: flex; align-items: center; height: 40px; border-left: 3px solid transparent; opacity: 0; }
#va-intro .vi-s3.vi-run .vi-ln { animation: viFadeIn .2s linear var(--d) both; }
#va-intro .vi-s3 .vi-ln.vi-flag { background: rgba(242,106,31,0.10); border-left-color: var(--vi-orange); }
#va-intro .vi-s3 .vi-no { width: 62px; text-align: right; color: var(--vi-faint); padding-right: 18px; flex-shrink: 0; font-size: 15px; }
#va-intro .vi-s3 .vi-tx { color: #c8c8ce; white-space: pre; }
#va-intro .vi-s3 .vi-ln.vi-cm .vi-tx { color: var(--vi-dim); }
#va-intro .vi-s3 .vi-ln.vi-flag .vi-tx { color: var(--vi-orange); font-weight: 700; }
/* cursor */
#va-intro .vi-s3 .vi-cursor { position: absolute; left: 570px; top: 610px; z-index: 50; pointer-events: none; }
#va-intro .vi-s3.vi-run .vi-cursor { animation: viCursor 1.267s cubic-bezier(.65,0,.35,1) .6s both, viVanish .01s linear 2.133s both; }
@keyframes viCursor { from { left: 570px; top: 610px; } to { left: 250px; top: 238px; } }
#va-intro .vi-s3 .vi-ring {
  position: absolute; left: -25px; top: -25px; width: 50px; height: 50px;
  border-radius: 50%; border: 2px solid var(--vi-orange); opacity: 0;
}
#va-intro .vi-s3.vi-run .vi-ring { animation: viRing .233s ease-out 1.933s both; }
@keyframes viRing {
  0%   { opacity: 0; transform: scale(.4); }
  10%  { opacity: 1; transform: scale(.54); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* ── shared eyebrow (opener / closer) ──────────────────────── */
#va-intro .vi-eyebrow { font-family: var(--vi-mono); font-size: 18px; letter-spacing: .3em; color: var(--vi-dim); text-transform: uppercase; white-space: nowrap; }

/* ── opener · accelerate (logo lockup + line) ──────────────── */
#va-intro .vi-sa .vi-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
#va-intro .vi-sa .vi-sasub { font-family: var(--vi-disp); font-size: 24px; color: var(--vi-grey); white-space: nowrap; }
#va-intro .vi-sa .vi-lockup { display: flex; align-items: center; justify-content: center; margin-top: 6px; }
#va-intro .vi-sa .vi-gif  { height: 98px; width: auto; display: block; }
#va-intro .vi-sa .vi-word { height: 132px; width: auto; display: block; margin-left: -18px; margin-top: -6px; }
#va-intro .vi-sa h2 { font-family: var(--vi-disp); font-weight: 800; font-size: 74px; color: var(--vi-white); letter-spacing: -.03em; text-align: center; line-height: 1.06; white-space: nowrap; }
#va-intro .vi-sa h2 em { font-style: normal; color: var(--vi-orange); }
#va-intro .vi-sa .vi-foreng { font-family: var(--vi-mono); font-size: 19px; color: var(--vi-dim); letter-spacing: .16em; white-space: nowrap; margin-top: 6px; }
#va-intro .vi-sa .vi-foreng em { font-style: normal; color: var(--vi-orange); }

/* ── slide · the frontier (depth-of-insight ladder) ────────── */
#va-intro .vi-sf .vi-fhead { position: absolute; left: 0; right: 0; top: 206px; text-align: center; }
#va-intro .vi-sf h2 { font-family: var(--vi-disp); font-weight: 800; font-size: 66px; color: var(--vi-white); letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
#va-intro .vi-sf h2 em { font-style: normal; color: var(--vi-orange); }
#va-intro .vi-sf .vi-sub { font-family: var(--vi-disp); font-size: 24px; color: var(--vi-grey); margin-top: 22px; white-space: nowrap; }
#va-intro .vi-sf .vi-depth { position: absolute; left: 50%; top: 474px; transform: translateX(-50%); width: 1160px; }
#va-intro .vi-sf .vi-dhdr { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
#va-intro .vi-sf .vi-dh1 { font-family: var(--vi-mono); font-size: 14px; letter-spacing: .24em; color: var(--vi-dim); text-transform: uppercase; white-space: nowrap; }
#va-intro .vi-sf .vi-dhdr i { flex: 1; height: 1px; background: var(--vi-line2); }
#va-intro .vi-sf .vi-dh2 { font-family: var(--vi-mono); font-size: 13px; letter-spacing: .12em; color: var(--vi-faint); text-transform: uppercase; white-space: nowrap; }
#va-intro .vi-sf .vi-drows { display: flex; flex-direction: column; gap: 12px; }
#va-intro .vi-sf .vi-drows .vi-rev { width: 100%; }
#va-intro .vi-sf .vi-drow { display: flex; align-items: center; gap: 20px; height: 74px; padding: 0 26px; border-radius: 13px; background: rgba(255,255,255,0.02); border: 1px dashed var(--vi-line); }
#va-intro .vi-sf .vi-drow.vi-dcore { height: 96px; background: rgba(242,106,31,0.07); border: 1px solid rgba(242,106,31,0.55); }
#va-intro .vi-sf .vi-dname { width: 300px; flex-shrink: 0; font-family: var(--vi-disp); font-weight: 600; font-size: 23px; color: var(--vi-grey); white-space: nowrap; }
#va-intro .vi-sf .vi-dcore .vi-dname { font-weight: 800; font-size: 28px; color: var(--vi-white); }
#va-intro .vi-sf .vi-ddesc { flex: 1; font-family: var(--vi-disp); font-size: 19px; color: var(--vi-dim); white-space: nowrap; }
#va-intro .vi-sf .vi-dcore .vi-ddesc { font-size: 22px; color: #e6c6ac; }
#va-intro .vi-sf .vi-dtag { flex-shrink: 0; font-family: var(--vi-mono); font-size: 13px; letter-spacing: .1em; font-weight: 600; padding: 7px 14px; border-radius: 7px; color: var(--vi-dim); background: transparent; border: 1px solid var(--vi-line); }
#va-intro .vi-sf .vi-dcore .vi-dtag { color: #15110c; background: var(--vi-orange); border: none; }

/* ── closer · fusion for every engineer (what · when · why) ── */
#va-intro .vi-sz .vi-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
#va-intro .vi-sz h2 { font-family: var(--vi-disp); font-weight: 800; font-size: 88px; color: var(--vi-white); letter-spacing: -.03em; text-align: center; line-height: 1.05; white-space: nowrap; }
#va-intro .vi-sz h2 em { font-style: normal; color: var(--vi-orange); }
/* ── glitch word swap (opener + closer) ────────────────────── */
#va-intro .vi-flip { display: inline-block; position: relative; }
#va-intro .vi-flip .vi-fghost { visibility: hidden; }
#va-intro .vi-flip .vi-fcur { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
#va-intro .vi-sa .vi-foreng .vi-fcur { color: var(--vi-orange); }
#va-intro .vi-flip .vi-fcur.vi-glitching { animation: viGlitch .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes viGlitch {
  0%   { transform: translate(0,0) skewX(0);    text-shadow: none; clip-path: inset(0 0 0 0); }
  15%  { transform: translate(-3px,1px) skewX(-7deg); text-shadow: 3px 0 rgba(242,106,31,.85), -3px 0 rgba(110,180,255,.7); clip-path: inset(0 0 62% 0); }
  32%  { transform: translate(3px,-1px) skewX(5deg);  text-shadow: -3px 0 rgba(242,106,31,.85), 3px 0 rgba(110,180,255,.7); clip-path: inset(58% 0 0 0); }
  50%  { transform: translate(-2px,0) skewX(-3deg);   text-shadow: 2px 0 rgba(242,106,31,.7), -2px 0 rgba(110,180,255,.6); clip-path: inset(28% 0 34% 0); }
  68%  { transform: translate(2px,1px) skewX(3deg);   text-shadow: -2px 0 rgba(242,106,31,.7), 2px 0 rgba(110,180,255,.6); clip-path: inset(0 0 0 0); }
  85%  { transform: translate(-1px,0) skewX(0);       text-shadow: 1px 0 rgba(242,106,31,.5); }
  100% { transform: translate(0,0) skewX(0);    text-shadow: none; clip-path: inset(0 0 0 0); }
}
#va-intro .vi-sz .vi-sub { font-family: var(--vi-disp); font-size: 26px; color: var(--vi-grey); white-space: nowrap; }
#va-intro .vi-sz .vi-triad { display: flex; align-items: baseline; gap: 18px; font-family: var(--vi-mono); font-size: 24px; letter-spacing: .16em; color: var(--vi-white); margin-top: 10px; }
#va-intro .vi-sz .vi-triad .vi-rev { display: flex; align-items: baseline; gap: 18px; }
#va-intro .vi-sz .vi-triad i { font-style: normal; color: var(--vi-orange); }

/* ── centered prev / next + enter site (in-canvas, under the content) ───── */
#va-intro .vi-cnav {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
#va-intro .vi-cnavrow { display: flex; align-items: center; justify-content: center; gap: 16px; }
#va-intro .vi-cnav button {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--vi-mono); font-size: 16px; letter-spacing: .14em;
  padding: 14px 26px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--vi-line);
  color: var(--vi-grey);
  transition: color .2s, border-color .2s, background .2s, opacity .25s;
}
#va-intro .vi-cnav button:hover { color: var(--vi-white); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
#va-intro .vi-cnav .vi-prev:disabled { opacity: .22; cursor: default; }
#va-intro .vi-cnav .vi-prev:disabled:hover { color: var(--vi-grey); border-color: var(--vi-line); background: rgba(255,255,255,0.03); }
#va-intro .vi-cnav .vi-next { color: var(--vi-white); }
#va-intro .vi-cnav .vi-arr { font-family: var(--vi-disp); font-size: 21px; line-height: 1; color: var(--vi-orange); font-weight: 700; }
#va-intro.vi-settled .vi-cnav .vi-next {
  border-color: rgba(242,106,31,0.55);
  animation: viPulse 2.1s ease-in-out infinite;
}
@keyframes viPulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
#va-intro .vi-enter {
  font-family: var(--vi-mono); font-size: 13px; letter-spacing: .14em;
  padding: 10px 18px; border-radius: 9px; cursor: pointer; line-height: 1;
  background: transparent; border: 1px solid var(--vi-line2);
  color: var(--vi-dim);
  transition: color .2s, border-color .2s, background .2s;
}
#va-intro .vi-enter:hover { color: var(--vi-white); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
/* last slide: NEXT disappears, ENTER SITE becomes the highlighted action */
#va-intro.vi-last .vi-next { display: none; }
#va-intro.vi-last .vi-enter {
  font-size: 16px; padding: 14px 26px; border-radius: 10px;
  color: var(--vi-white); border-color: var(--vi-line); background: rgba(255,255,255,0.03);
}
#va-intro.vi-settled.vi-last .vi-enter {
  border-color: rgba(242,106,31,0.55);
  animation: viPulse 2.1s ease-in-out infinite;
}

/* ── skip button ───────────────────────────────────────────── */
#va-intro .vi-skip {
  position: absolute; top: 22px; right: 26px; z-index: 20;
  font-family: var(--vi-mono); font-size: 13px; letter-spacing: .14em;
  color: var(--vi-grey); background: rgba(255,255,255,0.03);
  border: 1px solid var(--vi-line); border-radius: 9px;
  padding: 10px 16px; cursor: pointer; line-height: 1;
  transition: color .15s, border-color .15s, background .15s;
}
#va-intro .vi-skip:hover { color: var(--vi-white); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }

/* debug (?animend=1): jump every animation to its settled state */
#va-intro.vi-animend *, #va-intro.vi-animend { animation-delay: 0s !important; animation-duration: 1ms !important; transition: none !important; }

@media (max-width: 640px) {
  #va-intro .vi-skip { top: 14px; right: 14px; padding: 8px 12px; }
}
