/* ==========================================================================
   vector.html: the Vector studio (Coming). Follows movie.html.
   Sections: hero (design-preview still), what it will do (one live scene +
   three cards), closing. No dark bands: the only dark is inside window shots.
   Page-local classes are prefixed vc-. Shared tokens only.
   ========================================================================== */

body { background: var(--surface); }

/* ------------------------------------------------------------ Shared bits */
.vc-kicker {
  font-size: var(--t-19); line-height: 1.2; font-weight: var(--w-semibold);
  letter-spacing: -0.012em; color: var(--ink-3);
}
.vc-head > * + * { margin-top: 10px; }
.vc-h3 { font-size: var(--t-24); line-height: var(--lh-24); letter-spacing: var(--tr-24); font-weight: var(--w-semibold); }
.vc-h4 { font-size: var(--t-19); line-height: 1.3; letter-spacing: -0.014em; font-weight: var(--w-semibold); }
.vc-p { margin-top: 8px; color: var(--ink-3); font-size: var(--t-17); line-height: var(--lh-17); text-wrap: pretty; }

/* Brand colours of the client's mark (Casa Lume), not Tino's. */
.vc-plans { --cl-night: #1B2235; --cl-gold: #D9A05B; --cl-plaster: #EEE6DA; }

/* ------------------------------------------------------------------- Hero */
.vc-hero { padding-top: clamp(48px, 6vw, 80px); padding-bottom: calc(var(--section-y) * 0.55); overflow: hidden; }
.vc-hero-copy { text-align: center; }
.vc-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--t-24); line-height: 1.2; font-weight: var(--w-semibold); letter-spacing: -0.02em; color: var(--ink);
}
.vc-eyebrow .badge { letter-spacing: 0.01em; }
.vc-h1 { margin-top: 14px; }
.vc-sub {
  max-width: 31em; margin: 22px auto 0;
  font-size: var(--t-19); line-height: var(--lh-19); letter-spacing: var(--tr-19); color: var(--ink-2);
}
.vc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 34px; }
.vc-actions .btn-link { font-size: var(--t-17); }
.vc-free { margin-top: 16px; font-size: var(--t-14); color: var(--ink-3); }

.vc-hero-shot {
  width: 100%; max-width: calc(1280px + var(--gutter) * 2);
  margin: clamp(56px, 6.5vw, 88px) auto 0; padding-inline: var(--gutter);
}
.vc-hero-shot .window-shot { aspect-ratio: 16 / 10; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.42), 0 40px 100px -20px rgba(17,17,20,0.32), 0 12px 32px rgba(17,17,20,0.12); }
.vc-hero-shot .window-shot img { width: 100%; height: 100%; object-fit: cover; }
.vc-shot-cap {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 22px; font-size: var(--t-14); line-height: var(--lh-14); color: var(--ink-3); text-align: center;
}

/* --------------------------------------------------------- What it will do */
.vc-plans { padding-top: calc(var(--section-y) * 0.55); padding-bottom: calc(var(--section-y) * 0.5); }
.vc-plans .vc-head { max-width: 820px; }
.vc-point { margin-top: clamp(40px, 5vw, 64px); }

/* The live scene: a crop of the studio, Pro mode, a note on the mark */
.vc-scene {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  border-radius: 14px; background: #0E0E10; color: var(--studio-text);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.42), 0 30px 80px -20px rgba(17,17,20,0.30), 0 8px 24px rgba(17,17,20,0.10);
  overflow: visible;
}
.vc-scene-viewer { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 14px 0 0 14px; }
.vc-scene-bar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 16px; }
.vc-lights { display: inline-flex; gap: 8px; }
.vc-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.18); }
.vc-lights i:nth-child(2) { background: #FEBC2E; }
.vc-lights i:nth-child(3) { background: #28C840; }
.vc-seg {
  display: inline-flex; padding: 2px; border-radius: 16px; margin-left: 8px;
  background: rgba(255,255,255,0.075); box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.10);
  font-size: 13px; line-height: 1;
}
.vc-seg span { padding: 7px 11px; border-radius: 14px; color: var(--studio-text-2); }
.vc-seg .is-on { background: rgba(255,255,255,0.14); color: var(--studio-text); font-weight: var(--w-semibold); }
.vc-scene-title { font-size: 13px; font-weight: var(--w-semibold); letter-spacing: -0.01em; white-space: nowrap; }
.vc-scene-title em { font-style: normal; font-weight: var(--w-regular); color: var(--studio-text-3); margin-left: 6px; font-size: 12px; }
.vc-tools {
  display: inline-flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 12px;
  background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.10);
  color: var(--studio-text-2);
}
.vc-tools svg { width: 28px; height: 26px; padding: 5px 6px; border-radius: 8px; }
.vc-tools svg:first-child { background: rgba(255,255,255,0.12); color: var(--studio-text); }

.vc-ruler {
  position: relative; display: flex; height: 22px; margin: 0 0 0 0;
  border-top: 1px solid var(--studio-line); border-bottom: 1px solid var(--studio-line);
  font-family: var(--font-mono); font-size: 10px; line-height: 22px; color: var(--studio-text-3);
  padding-left: 9%;
}
.vc-ruler span { flex: 0 0 18%; padding-left: 4px; box-shadow: inset 1px 0 0 rgba(255,255,255,0.18); }

.vc-canvas {
  position: relative; flex: 1;
  display: grid; place-items: center;
  padding: 44px clamp(20px, 4vw, 56px) clamp(32px, 4vw, 52px);
}
.vc-board-name {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: min(500px, 72%);
  font-size: 12px; color: var(--studio-text-2);
}
.vc-board {
  position: relative; width: min(500px, 72%); aspect-ratio: 1;
  background: var(--cl-plaster); border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.10), 0 18px 48px rgba(0,0,0,0.5);
  container-type: inline-size;
}
.vc-mark { position: absolute; left: 50%; top: 8%; width: 46%; aspect-ratio: 200 / 240; transform: translateX(-50%); }
.vc-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vc-arch { fill: var(--cl-night); }
.vc-refl { fill: var(--cl-gold); }
.vc-sun { fill: var(--cl-gold); }
.vc-sun-g { transform-box: view-box; transition: transform 900ms var(--ease-in-out); }
.vc-mark.is-tino-done .vc-sun-g { transform: translateY(-22px); }
/* Tino's newest stroke: a 2px pink preview over the true edge, then it settles. */
.vc-pen {
  fill: none; stroke: var(--pink); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linecap: round;
  stroke-dasharray: 110; stroke-dashoffset: 110; opacity: 0;
}
.vc-mark.is-tino-done .vc-pen { animation: vc-pen 1500ms var(--ease-out) forwards; }
@keyframes vc-pen {
  0% { stroke-dashoffset: 110; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
/* The selection: neutral white hairline and handles (yours, not Tino's) */
.vc-sel {
  position: absolute; left: calc(33% - 4px); width: calc(34% + 8px); top: calc(60% - 4px); height: calc(14.17% + 6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72), 0 0 0 0.5px rgba(17,17,20,0.25);
  transition: top 900ms var(--ease-in-out);
}
.vc-sel i { position: absolute; width: 7px; height: 7px; background: #fff; box-shadow: 0 0 0 1px rgba(17,17,20,0.55); }
.vc-sel i:nth-child(1) { left: -3px; top: -3px; } .vc-sel i:nth-child(2) { right: -3px; top: -3px; }
.vc-sel i:nth-child(3) { left: -3px; bottom: -3px; } .vc-sel i:nth-child(4) { right: -3px; bottom: -3px; }
.vc-mark.is-tino-done .vc-sel { top: calc(50.83% - 4px); }
/* Line under the sun's new bounds */
.vc-sun-line { position: absolute; left: 33%; width: 34%; top: 50.83%; height: 14.17%; }
.vc-sun-line[data-tino-line]::after { transition-delay: 760ms; bottom: -9px; }
.vc-stop { position: absolute; left: 50%; top: 50.83%; width: 0; height: 0; }

/* The person's note: neutral. People are never pink. */
.vc-pin {
  position: absolute; left: 57.4%; top: 47.7%; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--studio-text);
  box-shadow: 0 0 0 3px rgba(20,20,22,0.55), 0 4px 12px rgba(0,0,0,0.35);
}
.vc-note {
  position: absolute; left: calc(57.4% + 18px); top: calc(47.7% - 12px);
  display: block; width: max-content; max-width: 200px;
  padding: 9px 12px 10px; border-radius: 12px;
  background: rgba(28,28,31,0.94); box-shadow: inset 0 0 0 1px var(--studio-line-2), 0 10px 30px rgba(0,0,0,0.35);
  font-size: 12.5px; line-height: 17px; color: var(--studio-text);
}
.vc-note-who { display: block; margin-bottom: 3px; font-size: 11px; font-weight: var(--w-semibold); color: var(--studio-text-2); }
.vc-name {
  position: absolute; left: 0; right: 0; top: 70%; text-align: center;
  font-size: 5.6cqw; letter-spacing: 0.32em; padding-left: 0.32em; font-weight: var(--w-medium); color: var(--cl-night);
}
.vc-place {
  position: absolute; left: 0; right: 0; top: 80.5%; text-align: center;
  font-size: 2.5cqw; letter-spacing: 0.28em; padding-left: 0.28em; color: #8C8279;
}

/* Panel */
.vc-scene-panel {
  position: relative; display: flex; flex-direction: column;
  background: var(--studio-panel); box-shadow: inset 1px 0 0 var(--studio-line-2);
  border-radius: 0 14px 14px 0; min-width: 0;
}
.vc-panel-head { display: flex; align-items: center; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--studio-line); }
.vc-home { height: 19px; color: var(--studio-text); }
.vc-panel-body { flex: 1; padding: 22px 18px 0; font-size: 13px; line-height: 19px; }
.vc-msg-you {
  margin-left: auto; width: max-content; max-width: 88%;
  padding: 9px 13px; border-radius: 16px 16px 6px 16px;
  background: var(--studio-raised); color: var(--studio-text);
}
.vc-msg-tino { position: relative; margin-top: 18px; min-height: 80px; }
.vc-msg-name { font-size: 12px; font-weight: var(--w-semibold); margin-bottom: 4px; }
.vc-reply-wait, .vc-reply-done { color: var(--studio-text); transition: opacity 320ms var(--ease); }
.vc-reply-wait { color: var(--studio-text-3); position: absolute; top: 23px; left: 0; }
.vc-reply-done { opacity: 0; }
.vc-msg-tino.is-tino-done .vc-reply-wait { opacity: 0; }
.vc-msg-tino.is-tino-done .vc-reply-done { opacity: 0.94; transition-delay: 200ms; }
.vc-change {
  position: relative; display: flex; align-items: center; gap: 8px;
  margin-top: 16px; height: 38px; padding: 0 14px 0 16px;
  border-radius: 12px; background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px var(--studio-line);
  font-size: 12.5px; white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity 320ms var(--ease), transform 420ms var(--ease-out);
}
.vc-change.is-tino-done { opacity: 1; transform: none; transition-delay: 360ms; }
.vc-change b { font-weight: var(--w-semibold); }
.vc-change span { color: var(--studio-text-2); overflow: hidden; text-overflow: ellipsis; }
.vc-change em { margin-left: auto; font-style: normal; font-weight: var(--w-medium); }
.vc-change[data-tino-line]::after { transition-delay: 520ms; }
/* Earlier in the conversation: the brief, the pick, then today's note */
.vc-msg-past { min-height: 0; color: var(--studio-text); }
.vc-msg-past p:last-child { opacity: 0.94; }
.vc-day {
  display: flex; align-items: center; gap: 10px; margin: 20px 0 18px;
  font-size: 11px; line-height: 14px; color: var(--studio-text-3);
}
.vc-day::before, .vc-day::after { content: ""; flex: 1; height: 1px; background: var(--studio-line); }
.vc-msg-quote { margin-top: 0; }
.vc-quote {
  margin-bottom: 7px; padding: 1px 0 1px 10px;
  box-shadow: inset 2px 0 0 var(--studio-line-2);
  font-size: 12px; line-height: 17px; color: var(--studio-text-2);
}
.vc-quote b { font-weight: var(--w-semibold); color: var(--studio-text); }
.vc-quote span { display: block; }
.vc-panel-ask {
  margin: 16px; padding: 12px 14px 40px; border-radius: 14px;
  background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--studio-line-2);
  font-size: 13px; color: var(--studio-text-3);
}

/* Copy under the scene */
.vc-point-copy { margin-top: 40px; }
.vc-point-copy .vc-p { max-width: 30em; }

/* Three cards */
.vc-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(64px, 8vw, 112px); }
.vc-card { min-width: 0; }
.vc-mini {
  position: relative; height: 232px; margin-bottom: 24px; padding: 22px;
  border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.vc-mini-note { margin-top: 14px; text-align: center; }
.vc-mini-note .mono { font-size: 11px; color: var(--ink-3); }

/* From a word: the prompt, three directions, B picked (an ink ring: your choice) */
.vc-prompt {
  padding: 11px 14px; border-radius: 12px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  font-size: 13px; line-height: 18px; color: var(--ink);
}
.vc-dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.vc-dir {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.86;
  border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.vc-dir svg { width: 46%; height: auto; }
.vc-dir b { position: absolute; left: 8px; bottom: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: var(--w-regular); color: var(--ink-3); }
.vc-dir.is-picked { box-shadow: 0 0 0 1.5px var(--ink); }

/* Icons: one grid, one stroke. The newest carries Tino's line until kept. */
.vc-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vc-icons > span {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2);
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 25% 25%; background-position: -1px -1px;
}
.vc-icons svg { width: 50%; height: 50%; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vc-icon-new[data-tino-line]::after { left: 22%; right: 22%; bottom: 8px; }

/* Kit: the mark lands in the shared kit, used by Movie and Deck */
.vc-kit {
  padding: 16px; border-radius: 14px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
}
.vc-kit-head { display: flex; align-items: center; gap: 12px; }
.vc-kit-logo { width: 40px; height: 40px; flex: none; }
.vc-kit-head b { display: block; font-size: 14px; line-height: 18px; font-weight: var(--w-semibold); }
.vc-kit-head em { display: block; font-style: normal; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.vc-swatches { display: flex; gap: 6px; margin-top: 14px; }
.vc-swatches i { flex: 1; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(17,17,20,0.08); }
.vc-kit-apps { display: flex; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
.vc-kit-apps span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vc-kit-apps img { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- Closing */
.vc-close { padding-bottom: calc(var(--section-y) * 1.1); }
.vc-close-icon { margin: 0 auto 28px; }
.vc-close .vc-actions { margin-top: 30px; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1068px) {
  .vc-scene { grid-template-columns: minmax(0, 1fr) 260px; }
  .vc-tools { display: none; }
  .vc-trio { grid-template-columns: 1fr 1fr; }
  .vc-trio .vc-card:last-child { grid-column: 1 / -1; }
  .vc-trio .vc-card:last-child .vc-mini { height: auto; min-height: 232px; }
  .vc-trio .vc-card:last-child .vc-kit { width: min(100%, 360px); margin-inline: auto; }
}
@media (max-width: 733px) {
  .vc-eyebrow { font-size: 19px; }
  .vc-sub { margin-top: 16px; }
  .vc-actions { flex-direction: column; gap: 18px; }
  .vc-hero-shot .window-shot { aspect-ratio: 572 / 600; border-radius: 10px; }
  .vc-shot-cap { margin-top: 16px; }
  .vc-scene { grid-template-columns: 1fr; border-radius: 12px; }
  .vc-scene-viewer { border-radius: 12px 12px 0 0; }
  .vc-scene-bar { height: 44px; gap: 10px; padding: 0 12px; }
  .vc-scene-bar .vc-lights { display: none; }
  .vc-seg { margin-left: 0; font-size: 12px; }
  .vc-seg span { padding: 6px 9px; }
  .vc-canvas { padding: 40px 16px 92px; }
  .vc-board, .vc-board-name { width: 84%; }
  .vc-board-name { top: 16px; }
  .vc-note { left: 0; right: 0; top: calc(100% + 14px); max-width: none; width: auto; display: flex; gap: 8px; align-items: baseline; }
  .vc-note .vc-note-who { margin: 0; flex: none; }
  .vc-scene-panel { border-radius: 0 0 12px 12px; box-shadow: inset 0 1px 0 var(--studio-line-2); }
  .vc-panel-head { height: 44px; padding: 0 16px; }
  .vc-panel-body { padding: 16px 14px 16px; }
  .vc-panel-ask { display: none; }
  .vc-msg-tino { min-height: 60px; }
  .vc-earlier, .vc-quote { display: none; }
  .vc-point-copy { margin-top: 32px; }
  .vc-trio { grid-template-columns: 1fr; gap: 48px; }
  .vc-trio .vc-card:last-child { grid-column: auto; }
  .vc-mini { height: auto; min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .vc-sun-g, .vc-sel, .vc-change { transition-duration: 0ms; }
  .vc-mark.is-tino-done .vc-pen { animation: none; }
}
/* Stills (screenshots): show the end state, with the pen stroke still drawn */
.is-shot .vc-sun-g, .is-shot .vc-sel, .is-shot .vc-change, .is-shot .vc-reply-done, .is-shot .vc-reply-wait { transition: none !important; }
.is-shot .vc-mark.is-tino-done .vc-pen { animation: none; stroke-dashoffset: 0; opacity: 1; }
