/* The origin section (home/origin.js): no AI acts until you ask, and four short notes each labelled in their header
   by who wrote them, the way the app's provenance plugin shows it (its values, icons and tints). */
.origin {
  max-width: 1100px;
  /* (Right under the pinned fan, whose blank room is already there: see .assemble in index.html.) */
  margin: calc(var(--after-fan) - (100vh - var(--fan)) / 2) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  grid-template-areas: "copy win" "steps win";
  grid-template-rows: auto 1fr;
  column-gap: 64px;
  row-gap: 32px;
  align-items: start;
}
.origin-copy { grid-area: copy; align-self: end; }
.origin h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.origin h2 em { color: var(--teal); }
.origin-copy p { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

/* The values, as the app tints them: Human green, AI purple, Mixed teal, Reviewed blue. */
.origin [data-v="human"] { --t: #2f8a4f; }
.origin [data-v="ai"] { --t: #7a62cf; }
.origin [data-v="mixed"] { --t: var(--teal); }
.origin [data-v="reviewed"] { --t: #3a76c2; }

.pv-legend { grid-area: steps; }
.pv-steps { list-style: none; display: grid; gap: 4px; }
.pv-more { margin-top: 12px; padding-left: 10px; color: var(--muted); font-size: 0.9rem; }
.pv-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-size: 0.9rem; color: var(--muted); transition: background 0.3s, color 0.3s; }
.pv-steps li > span:last-child { line-height: 1.35; }
.pv-tag { display: inline-flex; flex: none; align-items: center; gap: 5px; width: 100px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 550; color: var(--muted); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.pv-tag .icon { width: 13px; height: 13px; }
.pv-steps li.now { color: var(--fg); }
.pv-steps li.lit { background: color-mix(in srgb, var(--t) 7%, transparent); color: var(--fg); }
.pv-steps li.lit .pv-tag { border-color: transparent; background: color-mix(in srgb, var(--t) 15%, transparent); color: color-mix(in srgb, var(--t) 80%, var(--fg)); }

.pv-window { grid-area: win; align-self: center; background: var(--paper); }
.pv-window .window-bar span { font-size: 0.8rem; }
.pv-pane { position: relative; height: 330px; overflow: hidden; transition: opacity 0.4s; }
.origin.fade .pv-pane { opacity: 0; }
.pv-head { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--edge); font-size: 0.8rem; color: var(--muted); }
.pv-crumbs { margin-right: auto; }
.pv-crumbs b { font-weight: 500; color: var(--fg); }

/* The label in the note's header (the app's PropertyChip): dashed while unlabelled, tinted once it has a value. */
.pv-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: 0.76rem; font-weight: 550; color: var(--faint); transition: transform 0.12s; }
.pv-chip .icon { width: 12px; height: 12px; }
.pv-chip[data-v]:not([data-v=""]) { border: 1px solid transparent; background: color-mix(in srgb, var(--t) 15%, transparent); color: color-mix(in srgb, var(--t) 80%, var(--fg)); }
.pv-chip.pop { animation: cpop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.pv-chip.press { transform: scale(0.94); }

.pv-menu { position: absolute; top: 40px; right: 12px; width: 236px; padding: 5px; border-radius: 12px; border: 1px solid var(--edge); background: var(--raised); box-shadow: 0 14px 30px -10px rgba(var(--shade), 0.3); opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top right; pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.pv-menu.open { opacity: 1; transform: none; }
.pv-menu div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 0.8rem; transition: background 0.15s; }
.pv-menu div.on { background: var(--wash); }
.pv-menu .icon { width: 14px; height: 14px; color: var(--t); }
.pv-menu b { font-weight: 550; }
.pv-menu span { grid-column: 2; color: var(--muted); font-size: 0.74rem; }

.pv-body { padding: 30px 32px 0 40px; font-size: 1rem; line-height: 1.65; }
.pv-body h3 { font-family: Inter, sans-serif; font-weight: 650; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.8rem; }
.pv-lines .line { min-height: 1.65em; transition: background 0.4s; border-radius: 3px; }
.pv-lines .li { position: relative; padding-left: 24px; }
.pv-lines .li::before { content: ""; position: absolute; left: 9px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--bullet); }
/* A line you've read through (the Reviewed note). */
.pv-lines .line.read { background: color-mix(in srgb, #3a76c2 9%, transparent); }

.pv-cursors { position: absolute; inset: 0; pointer-events: none; }
/* The status bar's corner, as the app draws it: the note's words and characters, and the token count plugin's estimate. */
.pv-status { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-top-left-radius: 8px; border-top: 0.5px solid var(--line); border-left: 0.5px solid var(--line); background: var(--well); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
/* Your own pointer, for the label's menu (the agents' cursors are companions.css's .ccursor). */
.pv-pointer { position: absolute; top: 0; left: 0; transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.3s; }
.pv-pointer svg { display: block; width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); transition: transform 0.12s; transform-origin: 3px 2px; }
.pv-pointer path { fill: #1b1a17; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.pv-pointer.press svg { transform: scale(0.82); }
.pv-pointer.gone { opacity: 0; }

@media (max-width: 760px) {
  .origin { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "win" "steps"; grid-template-rows: none; row-gap: 28px; padding: 0 16px; }
  .pv-pane { height: 300px; }
  .pv-body { padding: 22px 18px 0 22px; font-size: 0.92rem; }
  .pv-body h3 { font-size: 1.3rem; }
  .pv-tag { width: 94px; }
}
@media (prefers-reduced-motion: reduce) {
  .origin *, .origin .pv-pane { animation: none !important; transition: none !important; }
  .origin .typed { background: none; }
}
