/* ---------------------------------------------------------------- VRTL Discover — instrument log on warm paper */
.vx {
  /* warm paper palette */
  --paper: #FBFBF9;
  --sand: #F5F4F0;
  --taupe: #ECE9E4;
  --stone: #D6D4CE;
  --ink: #292A2D;
  --ink-soft: #463F3C;
  --muted: #73726C;
  --teal: #004250;
  --teal-2: #2A6373;
  --mint: #DDF0E9;
  --green: #328C74;
  --line: rgba(41, 42, 45, 0.1);
  --line-strong: rgba(41, 42, 45, 0.2);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --snap: cubic-bezier(0.7, 0, 0.2, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --col-left: clamp(24px, 9vw, 150px);
  position: relative; display: flex; height: 100dvh; overflow: hidden;
  font-family: var(--sans); color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(217, 212, 202, 0.9), transparent 70%),
    linear-gradient(180deg, #EEECE3 0%, var(--sand) 42%, var(--paper) 100%);
}
.vx ::selection { background: var(--teal); color: var(--paper); }
.vx-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
@keyframes vxRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes vxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vxLineUp { to { transform: none; } }
@keyframes vxRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vxFlick { 50% { opacity: 0.35; } }

/* ---------------------------------------------------------------- top bar */
.vx-main { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vx-top {
  position: relative; display: flex; align-items: center; gap: 18px; height: 64px; flex-shrink: 0;
  padding: 0 clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line);
  animation: vxFade 0.8s ease both;
}
.vx-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.mark-icon { display: block; width: 34px; height: 34px; transition: transform 0.4s var(--snap); }
.mark:hover .mark-icon { transform: scale(1.06); }
.vx.thinking .mark-icon { animation: vxIconPulse 1.6s ease-in-out infinite; }
@keyframes vxIconPulse { 50% { transform: scale(0.92); opacity: 0.75; } }
.vx-book {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink); background: rgba(230, 232, 233, 0.85);
  transition: background 0.2s, transform 0.3s var(--snap);
}
.vx-book:hover { background: var(--taupe); color: var(--ink); transform: translateY(-1px); }
.vx-start {
  margin-left: auto; padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 0.88rem var(--sans); color: var(--paper); background: var(--teal);
}
.vx-start:hover { background: var(--ink); }
.vx-book .short, .vx-login .short { display: none; }
.vx-login b { font-weight: inherit; }
.vx-login {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink); background: rgba(230, 232, 233, 0.85);
  transition: background 0.2s, color 0.2s;
}
.vx-login span { transition: transform 0.3s var(--snap); }
.vx-login:hover { background: var(--ink); color: var(--paper); }
.vx-login:hover span { transform: translateX(3px); }

/* ---------------------------------------------------------------- log */
.vx-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--stone) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 20px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 20px), transparent 100%);
}
.vx-log { max-width: 880px; margin-left: var(--col-left); margin-right: clamp(16px, 4vw, 40px); padding: 8px 0 44px; }
.vx-resume { display: flex; justify-content: space-between; gap: 18px; margin: 12px 0 4px; padding: 10px 14px; border: 1px solid rgba(0,66,80,.15); border-radius: 12px; background: var(--mint); font-size: .86rem; }
.vx-resume a { flex: none; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* hero — folds away once the visitor engages */
.vx-hero { display: grid; grid-template-rows: 1fr; padding: 11vh 0 5vh; transition: grid-template-rows 0.9s var(--snap), opacity 0.5s ease, padding 0.9s var(--snap); }
.vx-hero-in { min-height: 0; overflow: hidden; }
@media (max-height: 820px) { .vx-hero { padding-top: 6vh; } }
.vx.engaged .vx-hero { grid-template-rows: 0fr; opacity: 0; padding: 0; pointer-events: none; }
.hero-kicker {
  display: inline-block; margin-bottom: 24px; padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--teal); background: var(--mint);
  animation: vxRise 0.7s var(--out) 0.1s both;
}
.hero-title { max-width: 15em; margin: 0 0 26px; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; word-spacing: 0.08em; color: var(--ink); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.08em; }
.hero-title .ln > span { display: inline-block; text-wrap: balance; transform: translateY(110%); animation: vxLineUp 1.1s var(--snap) calc(var(--d) * 0.14s + 0.2s) forwards; }
.hero-title em { font-style: normal; color: var(--muted); }
.hero-proof { display: inline-flex; align-items: center; gap: 9px; margin: -8px 0 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); animation: vxRise 0.8s var(--out) 0.7s both; }
.hero-proof span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(50, 140, 116, 0.15); }
.hero-partner { max-width: 580px; margin: 14px 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); animation: vxRise 0.8s var(--out) 0.8s both; }
.hero-partner strong { color: var(--ink); }
.hero-partner span { display: block; color: var(--muted, var(--ink-soft)); }
/* The opening message: in the page for search engines, typed out after the intro on a first visit. */
.turn.welcome.waiting { display: none; }
.welcome .text { margin: 0; }
.welcome-alt { max-width: 64ch; margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.6s var(--out); }
.welcome.typed .welcome-alt { opacity: 1; transform: none; }
.welcome-alt a { color: var(--teal, #004250); font-weight: 600; border-bottom: 1px solid rgba(0, 66, 80, 0.3); }
.welcome-alt a:hover { border-color: currentColor; }
@media (max-width: 560px) {
  .vx-top { gap: 10px; }
  .vx-start, .vx-login { padding: 8px 12px; font-size: 0.8rem; }
  .vx-book { display: none; }
  .vx-login .long { display: none; }
  .vx-login .short { display: inline; }
}
/* turns */
.turn { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 18px; padding: 26px 0; }
.turn::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left; animation: vxRule 0.7s var(--snap) both; }
.turn.assistant::after { content: ""; position: absolute; top: -1px; left: 0; width: 22px; height: 2px; background: var(--teal-2); animation: vxRule 0.5s var(--snap) 0.2s both; transform-origin: left; }
.gutter { padding-top: 3px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; animation: vxFade 0.4s ease 0.2s both; }
.gutter .ts { opacity: 0.75; }
.turn-body { min-width: 0; animation: vxRise 0.55s var(--out) 0.15s both; }
.who { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.82rem; font-weight: 600; color: var(--teal-2); }
.who-v { width: 16px; height: 16px; }
.turn.user .who { color: var(--muted); }
.text { max-width: 64ch; font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }
.text .content { white-space: pre-line; }
.text strong { color: var(--ink); font-weight: 650; box-shadow: inset 0 -0.45em 0 var(--mint); }
.text em { color: var(--muted); font-size: 0.9em; }
.turn.user .text { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); }
.ghost { color: var(--muted); opacity: 0.22; filter: blur(1.5px); }

.thinking-dots { display: inline-flex; gap: 6px; padding: 8px 0; }
.thinking-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-2); animation: vxDot 1.3s ease-in-out infinite; }
.thinking-dots i:nth-child(2) { animation-delay: 0.16s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes vxDot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* analysis progress */
.readout {
  max-width: 520px; padding: 18px 22px 16px; font-size: 0.93rem;
  background: rgba(255, 255, 255, 0.78); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(41, 42, 45, 0.04), 0 12px 32px -18px rgba(70, 63, 60, 0.25);
}
.analysis-turn .turn-body { animation: none; opacity: 1; transform: none; }
.ro-intro { margin: 0 0 12px; color: var(--ink-soft); }
.ro-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ro-track { flex: 1; height: 4px; border-radius: 4px; overflow: hidden; background: var(--taupe); }
.ro-pct { min-width: 3.2ch; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--teal-2); }
.ro-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.ro-note.warn { color: #9a5b13; }
.ro-track span { display: block; height: 100%; border-radius: 4px; background: var(--teal-2); transition: width 0.4s linear;
  background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.55) 50%, transparent 100%); background-size: 60% 100%; background-repeat: no-repeat;
  animation: vxShimmer 1.6s ease-in-out infinite; }
@keyframes vxShimmer { from { background-position: -120% 0; } to { background-position: 220% 0; } }
.ro { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: rgba(115, 114, 108, 0.6); transition: color 0.3s; }
.ro-i { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; transition: all 0.3s; }
.ro.run { color: var(--ink); }
.ro.run .ro-i { border-color: var(--teal-2); border-top-color: transparent; animation: vxSpin 0.8s linear infinite; }
.ro.ok { color: var(--ink-soft); }
.ro.ok .ro-i { background: var(--green); border-color: var(--green); color: #fff; }
@keyframes vxSpin { to { transform: rotate(360deg); } }

/* spec sheet (product reveal) */
.spec {
  position: relative; max-width: 580px; margin-top: 26px; padding: 24px 26px 26px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(41, 42, 45, 0.05), 0 24px 48px -24px rgba(70, 63, 60, 0.35);
  animation: vxRise 0.7s var(--out) both;
}
.crop { position: absolute; width: 14px; height: 14px; border: 0 solid var(--teal-2); animation: vxCrop 0.6s var(--snap) both; }
.crop.tl { top: -9px; left: -9px; border-top-width: 1.5px; border-left-width: 1.5px; --cx: -10px; --cy: -10px; }
.crop.tr { top: -9px; right: -9px; border-top-width: 1.5px; border-right-width: 1.5px; --cx: 10px; --cy: -10px; animation-delay: 0.08s; }
.crop.bl { bottom: -9px; left: -9px; border-bottom-width: 1.5px; border-left-width: 1.5px; --cx: -10px; --cy: 10px; animation-delay: 0.16s; }
.crop.br { bottom: -9px; right: -9px; border-bottom-width: 1.5px; border-right-width: 1.5px; --cx: 10px; --cy: 10px; animation-delay: 0.24s; }
@keyframes vxCrop { from { opacity: 0; transform: translate(var(--cx), var(--cy)); } to { opacity: 1; transform: none; } }
.spec-head { display: inline-block; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: var(--teal); background: var(--mint); }
.spec-name { margin: 16px 0 16px; overflow: hidden; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.035em; word-spacing: 0.08em; color: var(--ink); }
.spec-name span { display: inline-block; transform: translateY(110%); animation: vxLineUp 0.9s var(--snap) 0.3s forwards; }
.spec-points { list-style: none; margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.spec-points li { position: relative; padding: 5px 0 5px 26px; font-size: 0.95rem; color: var(--ink-soft); animation: vxRise 0.5s var(--out) both; }
.spec-points li:nth-child(1) { animation-delay: 0.45s; }
.spec-points li:nth-child(2) { animation-delay: 0.55s; }
.spec-points li:nth-child(3) { animation-delay: 0.65s; }
.spec-points li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--teal); background: var(--mint); }
.spec-cta {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(var(--teal), var(--teal)) left / 0% 100% no-repeat, var(--ink);
  color: var(--paper); font-weight: 500; font-size: 0.95rem; transition: background-size 0.45s var(--snap);
}
.spec-cta span, .spec-cta b { position: relative; transition: transform 0.35s var(--snap); }
.spec-cta b { font-weight: 400; }
.spec-cta:hover { color: var(--paper); background-size: 100% 100%, auto; }
.spec-cta:hover b { transform: translateX(5px); }
.spec-more { display: inline-block; margin-left: 18px; font-size: 0.92rem; font-weight: 500; color: var(--teal-2); text-decoration: underline; text-underline-offset: 3px; }
.spec-more:hover { color: var(--ink); }
@media (max-width: 520px) { .spec-more { display: block; margin: 14px 0 0; } }
.cmds.quick { margin: 14px 0 0; }
.cmd:disabled { opacity: 0.5; cursor: progress; }

/* free report capture (sits under the spec sheet) */
.report {
  max-width: 580px; margin-top: 22px; padding: 20px 22px; border-radius: 18px;
  background: var(--mint); border: 1px solid rgba(0, 66, 80, 0.12);
  animation: vxRise 0.7s var(--out) 0.9s both;
}
.report-head { display: flex; gap: 14px; align-items: flex-start; }
.report-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--mint); }
.report-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--teal); }
.report-sub { margin: 4px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.report-fields { display: grid; grid-template-columns: 0.8fr 1.3fr auto; gap: 8px; margin-top: 16px; }
.report-fields input {
  width: 100%; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(0, 66, 80, 0.18); background: #fff; color: var(--ink); font: inherit; font-size: 0.95rem;
}
.report-fields input:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(42, 99, 115, 0.15); }
.report-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--teal); color: var(--paper); font: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
  transition: background 0.25s ease;
}
.report-send b { font-weight: 400; transition: transform 0.3s var(--snap); }
.report-send:hover { background: var(--ink); }
.report-send:hover b { transform: translateX(4px); }
.report-send:disabled { opacity: 0.6; cursor: progress; }
.report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.report-consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; }
.report-consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.report-error { margin: 10px 0 0; font-size: 0.88rem; color: var(--rose); }
.report-fine { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }
.report-fine a { color: var(--teal-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- dock */
.vx-dock { position: relative; z-index: 2; flex-shrink: 0; padding: 4px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom)) var(--col-left); }
.vx-dock > * { max-width: 880px; }
.vx-step { margin: 0 0 6px 4px; font-size: .78rem; font-weight: 650; color: var(--ink-soft); }
.cmds { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.cmd {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft); background: rgba(255, 255, 255, 0.65); border: 1px solid var(--line-strong);
  animation: vxRise 0.5s var(--out) calc(var(--i) * 0.1s) both; transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.cmd:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }

.prompt { animation: vxRise 0.8s var(--out) 0.4s both; }
.prompt-line {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 24px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: 0 10px 30px -20px rgba(70, 63, 60, 0.4); transition: border-color 0.3s, box-shadow 0.3s;
}
.prompt-line:focus-within { border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(42, 99, 115, 0.1), 0 10px 30px -20px rgba(70, 63, 60, 0.4); }
.prompt-line input { flex: 1; min-width: 0; padding: 8px 0; background: transparent; border: 0; font-family: var(--sans); font-size: 1.08rem; color: var(--ink); caret-color: var(--teal-2); }
.prompt-line input:focus { outline: none; border: 0; }
.prompt-line input::placeholder { color: rgba(115, 114, 108, 0.7); }
.key {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; border: 0;
  display: grid; place-items: center; color: var(--paper); background: var(--ink);
  transition: transform 0.15s, background 0.2s, opacity 0.2s;
}
.key:hover:not([disabled]) { background: var(--teal); transform: scale(1.06); }
.key:active:not([disabled]) { transform: scale(0.94); }
.key[disabled] { cursor: default; opacity: 0.25; }

.vx-foot { display: flex; align-items: baseline; gap: 14px; margin: 12px 0 0; font-size: 0.75rem; animation: vxFade 1s ease 0.8s both; }
.vx-trust { display: flex; gap: 12px; }
.vx-foot-toggle {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: rgba(115, 114, 108, 0.75); transition: color 0.2s;
}
.vx-foot-toggle:hover, .vx-foot.open .vx-foot-toggle { color: var(--ink); }
.vx-foot-toggle svg { transition: transform 0.3s var(--snap); }
.vx-foot.open .vx-foot-toggle svg { transform: rotate(180deg); }
.vx-foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.vx-foot-links nav { display: contents; }
.foot-in, .foot-out { transition: opacity 0.25s ease, transform 0.35s var(--out); }
.foot-from { opacity: 0; transform: translateX(-8px); }
.vx-foot a { color: rgba(115, 114, 108, 0.75); transition: color 0.2s; }
.vx-foot a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- index strip */
.ix {
  position: relative; z-index: 30; flex-shrink: 0; width: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(245, 244, 240, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-right: 1px solid transparent;
  transition: width 0.7s var(--snap), border-color 0.7s ease;
}
.vx.has-index .ix { width: 64px; border-right-color: var(--line-strong); }
.vx.has-index.index-open .ix { width: 300px; }
.ix-toggle {
  flex-shrink: 0; width: 64px; padding: 18px 0 16px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ink); font-family: inherit;
  transition: background 0.2s;
}
.ix-toggle:hover { background: var(--taupe); }
.ix-toggle-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; }
.ix-toggle.ping { animation: vxIxPing 1.8s ease-in-out 2; }
@keyframes vxIxPing { 50% { background: var(--mint); } }
.ix-list { width: 300px; flex: 1; margin: 0; padding: 10px 0; list-style: none; overflow-y: auto; }
.vx.has-index .ix-list li { animation: vxRise 0.5s var(--out) calc(var(--i) * 0.06s + 0.45s) both; }
.ix-list a { position: relative; display: flex; align-items: center; height: 44px; color: var(--muted); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.ix-list a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--teal-2); transform: scaleY(0); transition: transform 0.3s var(--snap); }
.ix-list a:hover { color: var(--ink); background: var(--taupe); }
.ix-list a:hover::before { transform: scaleY(1); }
.ix-list .n {
  width: 30px; height: 30px; margin: 0 17px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.ix-list a:hover .n { color: var(--teal); background: var(--mint); border-color: transparent; }
.ix-list .nm { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s ease, transform 0.4s var(--snap); }
.vx.index-open .ix-list .nm { opacity: 1; transform: none; transition-delay: calc(var(--i) * 0.03s + 0.15s); }
.ix-meta { width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 16px 0 20px 64px; border-top: 1px solid var(--line); opacity: 0; transition: opacity 0.3s ease; }
.vx.index-open .ix-meta { opacity: 1; transition-delay: 0.3s; }
.ix-meta a { font-size: 0.85rem; color: var(--muted); }
.ix-meta a:hover { color: var(--ink); }
.ix-backdrop, .ix-mobile { display: none; }

/* ---------------------------------------------------------------- intro overlay (homepage only) */
.intro-overlay { background: linear-gradient(180deg, #EEECE3, #F5F4F0); }
.intro-skip { color: #73726C; }
.intro-skip:hover { color: #292A2D; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 860px) {
  .vx { --col-left: 16px; }
  .ix { position: fixed; top: 0; bottom: 0; left: 0; }
  .vx.has-index .ix { width: 0; border-right-color: transparent; }
  .vx.has-index.index-open .ix { width: 300px; border-right-color: var(--line-strong); }
  .ix-backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(41, 42, 45, 0.3); }
  .ix-mobile { display: block; padding: 7px 14px; border-radius: 999px; background: rgba(230, 232, 233, 0.85); border: 0; color: var(--ink); cursor: pointer; font-family: inherit; font-size: 0.82rem; font-weight: 500; }
  .ix-mobile.ping { animation: vxIxPing 1.8s ease-in-out 2; }
  .vx-hero { padding-top: 7vh; }
  .turn { grid-template-columns: 34px minmax(0, 1fr); gap: 0 12px; padding: 20px 0; }
  .gutter .ts { display: none; }
  .spec { padding: 20px 18px 22px; }
  .report { padding: 18px 16px; }
  .report-fields { grid-template-columns: 1fr; }
  .prompt-line input { font-size: 1rem; }
  .vx-scroll { -webkit-mask-image: none; mask-image: none; }
  .vx-foot { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .vx-foot::-webkit-scrollbar { display: none; }
  .vx-foot-links { flex-wrap: nowrap; }
  .vx-resume { flex-direction: column; gap: 4px; }
}

/* Returning visitors: restored conversation and page chrome appear in place, without entrance animations */
.vx.returning .vx-hero, .vx.returning .vx-hero *, .vx.returning .prompt, .vx.returning .vx-dock .cmd,
.vx.returning .vx-foot, .vx.returning .ix-list li, .turn.restored, .turn.restored *, .turn.restored::before,
.turn.restored::after, .turn.restored *::before, .turn.restored *::after { animation: none !important; }
.vx.returning .hero-title .ln > span, .turn.restored .spec-name span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .vx *, .vx *::before, .vx *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Neon edge: a short teal light that travels round chat buttons. ::after is the crisp line,
   ::before the blurred glow; both are masked to a ring outside the button so content is untouched. */
@property --snake { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes vxSnake { to { --snake: 360deg; } }
.vx :is(.cmd, .spec-cta, .report-send, .key) { position: relative; }
.vx :is(.cmd, .spec-cta, .report-send, .key:not([disabled]))::before,
.vx :is(.cmd, .spec-cta, .report-send, .key:not([disabled]))::after {
  content: ""; position: absolute; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--snake), transparent 0turn 0.6turn, rgba(42, 99, 115, 0) 0.6turn,
    #2A6373 0.76turn, #328C74 0.88turn, #8FE0C8 0.965turn, #E6FBF3 0.995turn, transparent 1turn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: vxSnake 3.4s linear infinite !important; animation-delay: calc(var(--i, 0) * -0.7s) !important;
}
.vx :is(.cmd, .spec-cta, .report-send, .key:not([disabled]))::after { inset: 0; padding: 1px; }
.vx :is(.cmd, .spec-cta, .report-send, .key:not([disabled]))::before { display: none; }
.vx .cmd:disabled::before, .vx .cmd:disabled::after, .vx .report-send:disabled::before, .vx .report-send:disabled::after { opacity: 0.3; }
@media (prefers-reduced-motion: reduce) {
  .vx :is(.cmd, .spec-cta, .report-send, .key)::before, .vx :is(.cmd, .spec-cta, .report-send, .key)::after { display: none; }
}
