/* A deliberately single-theme page: a 3D scene is its own visual world, so
   every colour is painted explicitly rather than inherited from the host.

   The chrome follows Apple's design language for the web (the apple-design
   skill in .agents/skills): the platform system font with size-specific
   tracking, translucent materials whose weight encodes hierarchy, feedback on
   pointer-down, motion that is short, symmetric and interruptible, and one
   accent. The scene palette itself lives in palette.js and is untouched. */

:root {
  --void: #080b0e;

  /* materials, heaviest to lightest: structure, side panels, popovers */
  --material-1: rgba(28, 28, 30, 0.74);
  --material-2: rgba(38, 38, 42, 0.62);
  --material-3: rgba(50, 50, 54, 0.58);
  --edge: rgba(255, 255, 255, 0.14);        /* the light catching a surface's top edge */
  --hair: rgba(255, 255, 255, 0.10);
  --hair-2: rgba(255, 255, 255, 0.06);
  --fill: rgba(120, 120, 128, 0.24);        /* recessed: inputs, segmented tracks */
  --fill-2: rgba(120, 120, 128, 0.14);
  --raised: rgba(99, 99, 102, 0.9);         /* the selected segment */

  --ink: #f5f5f7;
  --ink-2: #b0b0b6;
  --muted: #a1a1a8;                          /* ≥ 5.2:1 on every surface, incl. input fills */

  --s1: #0a84ff;                             /* the one accent: links, marks, rings (4.9:1 on panels) */
  --s1-fill: #0071e3;                        /* the accent as a fill under white text (4.7:1) */
  --s2: #ff9f0a;                             /* the caveat rule */
  --hit-gold: #ffd166;

  --sans: -apple-system, system-ui, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, system-ui, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-panel: 12px;
  --r-ctl: 8px;
  --r-chip: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* critically damped, no overshoot */
  --panel-shadow: 0 10px 34px rgba(0, 0, 0, 0.38), 0 1px 0 var(--edge) inset;
}

/* compatibility: older rules still name these */
:root { --panel: rgba(28, 28, 30, 0.9); --panel-2: var(--fill); }

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

#scene { position: fixed; inset: 0; }

/* ---------- hub labels projected from 3D ---------- */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

.hublab {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 0 3px #080b0e, 0 0 7px #080b0e, 0 0 12px #080b0e;
  opacity: 0;
  transition: opacity 0.2s;
}
.hublab.on { opacity: 0.92; }

/* ---------- employer logos ---------- */
.complogo {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(247, 249, 251, 0.94);
  box-shadow: 0 0 0 1px rgba(8, 11, 14, 0.55), 0 2px 10px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.complogo.on { opacity: 1; }
.complogo img {
  width: 74%; height: 74%;
  object-fit: contain;
  display: block;
}

/* ---------- panels ---------- */
.panel {
  position: fixed;
  z-index: 10;
  background: var(--material-2);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hair-2);
  border-top-color: var(--edge);
  border-radius: var(--r-panel);
  box-shadow: var(--panel-shadow);
}
/* the control panel is the structural layer: the heaviest material */
#ctl { background: var(--material-1); }

#ctl {
  top: 18px; left: 18px; width: 284px;
  padding: 17px 17px 15px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

#meta { top: 18px; right: 18px; width: 212px; padding: 15px 16px; }

@media (max-width: 900px) {
  #ctl { width: calc(100vw - 36px); max-height: 44vh; }
  #meta { display: none; }
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;     /* large text wants negative tracking */
  line-height: 1.15;
  margin: 0;
}

.demo-tag {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 4px;
  font: 600 9.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hit-gold);
  background: rgba(255, 209, 102, 0.12);
  border-radius: var(--r-chip);
  padding: 4px 6px;
}
.ctl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 0; border-radius: var(--r-ctl);
  background: var(--fill-2);
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms ease-out, color 150ms ease-out;
}
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.icon-btn.has-key { color: var(--hit-gold); }

.sub { font-size: 11.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }

.lab {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;      /* small text wants a little positive tracking, not a lot */
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 7px;
}

.grp { margin-bottom: 15px; }
.grp:last-child { margin-bottom: 0; }

/* ---------- controls ---------- */
.seg {
  position: relative;
  display: flex;
  padding: 2px;
  gap: 2px;
  background: var(--fill);
  border-radius: var(--r-ctl);
}

.seg button {
  flex: 1;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 6px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 150ms ease-out, box-shadow 180ms var(--ease-out), transform 100ms ease-out;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

select, input[type="search"] {
  width: 100%;
  background: var(--fill);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 13px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}
select:hover, input[type="search"]:hover { background: rgba(120, 120, 128, 0.3); }
select:focus, input[type="search"]:focus { outline: none; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(10, 132, 255, 0.35); }
input[type="search"]::placeholder { color: var(--muted); }

input:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.45); }

/* feedback on press, not on release */
button:active, .ares:active, .drow:active, .icon-btn:active, .linky:active, a.lp-btn:active { transform: scale(0.97); transition: transform 100ms ease-out; }

.chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.chk input { accent-color: var(--s1); width: 14px; height: 14px; cursor: pointer; }

/* ---------- legend + stats ---------- */
.legend {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 232px; overflow-y: auto;
  padding-right: 4px; margin-right: -4px;
}
.legend::-webkit-scrollbar { width: 5px; }
.legend::-webkit-scrollbar-thumb { background: var(--hair); border-radius: var(--r-chip); }
.lgi {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--ink-2);
  padding: 1px 0; border: 0; background: none; text-align: left;
  width: 100%; cursor: pointer; font-family: inherit;
}
.lgi:hover { color: var(--ink); }
.lgi.sel { color: var(--ink); font-weight: 600; }
.lgi-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lgn {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stat {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 5px 0; border-bottom: 1px solid var(--hair-2);
}
.stat:last-child { border-bottom: 0; }
.stat-k { font-size: 11.5px; color: var(--ink-2); }
.stat-v {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

/* ---------- tooltip ---------- */
#tip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  max-width: 288px;
  background: var(--material-3);
  border: 1px solid var(--hair);
  border-radius: var(--r-ctl);
  padding: 9px 11px;
  opacity: 0;
  transition: opacity 0.1s;
}
#tip.on { opacity: 1; }
#tip .tn { font-weight: 600; font-size: 13px; display: block; margin-bottom: 2px; }
#tip .tr { font-size: 12px; color: var(--ink-2); display: block; line-height: 1.35; }
#tip .tm {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

/* ---------- status + caveat ---------- */
#status {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  width: max-content;
  max-width: min(560px, calc(100vw - 150px));
  text-align: center;
  line-height: 1.4;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
  background: var(--material-2);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hair);
  padding: 7px 15px;
  border-radius: 16px;
  /* it reports, it never takes a click: faded or not, the scene under it stays live */
  pointer-events: none;
  transition: opacity 0.4s;
}
#status.gone { opacity: 0; }

/* The edges caveat lives behind an "i": always one click away, never in the
   way of the scene. */
/* The corner toolbar: settings and the "i". When a panel is open on the
   right it slides to the panel's left edge instead of hiding under it. */
#noteWrap {
  position: fixed;
  bottom: 16px; right: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: right 300ms var(--ease-out);
}
body.answering #noteWrap, body.detailing #noteWrap { right: 398px; }
.corner-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--material-2);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--panel-shadow);
  color: var(--ink-2);
}
.corner-btn svg { width: 14px; height: 14px; }
.info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--material-2);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: var(--ink-2);
  font: italic 600 13px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
  box-shadow: var(--panel-shadow);
  transition: color 150ms ease-out, background 150ms ease-out;
}
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--ink); background: var(--material-3); }
#note {
  position: absolute;
  right: 0; bottom: 38px;
  width: 300px;
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
  background: var(--material-2);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hair);
  border-left: 2px solid var(--s2);
  border-radius: 10px;
  padding: 10px 13px;
  box-shadow: var(--panel-shadow);
  transform-origin: 100% 100%;
  animation: nc-note-in 200ms var(--ease-out);
}
#note[hidden] { display: none; }
#note strong { color: var(--ink); font-weight: 600; }
@keyframes nc-note-in { from { opacity: 0; transform: translateY(4px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #note { animation: nc-fade 150ms ease-out; } }

@media (max-width: 900px) { #noteWrap, body.answering #noteWrap, body.detailing #noteWrap { right: 18px; } }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ---------- search hit marker ---------- */
/* Locked to the found person's projected position. Three staggered pings, a
   slowly turning reticle, and a card that opens the profile. Everything is
   pointer-transparent except the card. */
.nchit {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 0;
  height: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
  --hit: #ffd166;
}
.nchit.on.vis { opacity: 1; }

.nchit .ring,
.nchit .retic,
.nchit .core {
  position: absolute;
  left: 0; top: 0;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.nchit .ring {
  width: 230px; height: 230px;
  border: 1.5px solid var(--hit);
  opacity: 0;
}
.nchit.on .ring { animation: nc-ping 2.6s cubic-bezier(0.12, 0.68, 0.3, 1) infinite; }
.nchit.on .ring:nth-child(2) { animation-delay: 0.85s; }
.nchit.on .ring:nth-child(3) { animation-delay: 1.7s; }

@keyframes nc-ping {
  0%   { transform: translate(-50%, -50%) scale(0.12); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* targeting brackets — a square with its edges cut away, turning slowly */
.nchit .retic {
  width: 96px; height: 96px;
  border-radius: var(--r-ctl);
  border: 1.5px solid var(--hit);
  opacity: 0.75;
  -webkit-mask-image:
    linear-gradient(#000 0 0), linear-gradient(#000 0 0),
    linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-size: 26px 26px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left top, right top, left bottom, right bottom;
  mask-image:
    linear-gradient(#000 0 0), linear-gradient(#000 0 0),
    linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-size: 26px 26px;
  mask-repeat: no-repeat;
  mask-position: left top, right top, left bottom, right bottom;
}
.nchit.on .retic { animation: nc-spin 9s linear infinite; }
.nchit.burst .retic { animation: nc-lock 0.55s cubic-bezier(0.16, 1, 0.3, 1), nc-spin 9s linear 0.55s infinite; }

@keyframes nc-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes nc-lock {
  from { transform: translate(-50%, -50%) rotate(-70deg) scale(3.4); opacity: 0; }
  to   { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.75; }
}

/* a pin that stays visible whether it lands on the white node or on the void */
.nchit .core {
  width: 15px; height: 15px;
  background: transparent;
  border: 2.5px solid var(--hit);
  box-shadow: 0 0 10px var(--hit), 0 0 26px rgba(255, 209, 102, 0.55), inset 0 0 6px rgba(255, 209, 102, 0.5);
}
.nchit.on .core { animation: nc-throb 1.6s ease-in-out infinite; }

@keyframes nc-throb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.45); }
}

/* leader line from the marker out to the card */
.nchit .stem {
  position: absolute;
  left: 66px; top: 0;
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--hit), rgba(255, 209, 102, 0.25));
}
.nchit.flip .stem { left: auto; right: 66px; background: linear-gradient(270deg, var(--hit), rgba(255, 209, 102, 0.25)); }

.nchit .card {
  position: absolute;
  left: 104px;
  top: 0;
  transform: translateY(-50%);
  width: 250px;
  pointer-events: auto;
  background: var(--material-3);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: var(--r-ctl);
  padding: 9px 11px;
  box-shadow: 0 0 0 1px rgba(8, 11, 14, 0.6), 0 6px 26px rgba(0, 0, 0, 0.6);
}
.nchit.flip .card { left: auto; right: 104px; }
.nchit.burst .card { animation: nc-cardin 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards; }
.nchit.flip.burst .card { animation-name: nc-cardin-flip; }

@keyframes nc-cardin {
  from { opacity: 0; transform: translateY(-50%) translateX(-12px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes nc-cardin-flip {
  from { opacity: 0; transform: translateY(-50%) translateX(12px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.nchit .hn { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.nchit .hr,
.nchit .hc { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.nchit .hr:empty,
.nchit .hc:empty,
.nchit .hgo:empty { display: none; }
.nchit .hm {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.nchit .hgo {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--hit);
}

@media (prefers-reduced-motion: reduce) {
  .nchit.on .ring,
  .nchit.on .retic,
  .nchit.burst .retic,
  .nchit.on .core,
  .nchit.burst .card { animation: none; }
  .nchit .ring:first-child { opacity: 0.5; transform: translate(-50%, -50%) scale(0.42); }
}

.hint {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- landing ---------- */
/* The front door. The demo constellation turns slowly behind it, so the first
   thing a visitor sees is what the tool makes, before they give it anything.
   A veil keeps the left-hand text legible and lets the scene show through on
   the right; the sections below the fold close over it as you scroll. */

#landing {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  transition: opacity 0.35s var(--ease-out);
}
#landing.gone { opacity: 0; pointer-events: none; }

.lp-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.94) 0%, rgba(8, 11, 14, 0.8) 30%, rgba(8, 11, 14, 0.12) 58%, rgba(8, 11, 14, 0.3) 100%),
    linear-gradient(180deg, rgba(8, 11, 14, 0.5) 0%, rgba(8, 11, 14, 0) 22%);
}

.lp-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 40px;
}
/* a material only once there is something to scroll under it */
#landing .lp-top::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: rgba(8, 11, 14, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hair-2);
  opacity: 0;
  transition: opacity 200ms ease-out;
}
#landing.scrolled .lp-top::before { opacity: 1; }
.lp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 650; font-size: 15px; letter-spacing: -0.01em;
}
.mark { display: block; flex: none; }
.lp-nav { display: flex; align-items: center; gap: 22px; }
.lp-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 13.5px;
  transition: color 150ms ease-out;
}
.lp-nav a:hover { color: var(--ink); }
.lp-back {
  font: 600 13px/1 var(--sans);
  color: var(--ink);
  background: var(--fill);
  border: 0; border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 150ms ease-out, transform 100ms ease-out;
}
.lp-back::before { content: "\2190\00a0"; }
.lp-back:hover { background: rgba(120, 120, 128, 0.34); }

.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: 24px 40px 72px;
}

.lp-eyebrow, .lp-k {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-eyebrow { color: var(--hit-gold); margin-bottom: 18px; }

.lp-h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.lp-lede {
  max-width: 34em;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--sans);
  color: #fff;
  background: var(--s1-fill);
  border: 0; border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 150ms ease-out, background 150ms ease-out, transform 100ms ease-out;
}
/* hover rings rather than brightens: a lighter blue under white text fails AA */
.lp-btn:hover { box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.28); }
.lp-btn.ghost { background: var(--fill); color: var(--ink); }
.lp-btn.ghost:hover { background: rgba(120, 120, 128, 0.34); box-shadow: none; }

.lp-asks { margin-top: 40px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.lp-chip {
  font: 500 13.5px/1 var(--sans);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 9px 13px 9px 30px;
  cursor: pointer;
  position: relative;
  transition: background 150ms ease-out, border-color 150ms ease-out, transform 100ms ease-out;
}
/* a small magnifier, drawn rather than fetched */
.lp-chip::before {
  content: "";
  position: absolute; left: 12px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border: 1.5px solid var(--muted); border-radius: 50%;
}
.lp-chip::after {
  content: "";
  position: absolute; left: 19.5px; top: 50%;
  width: 1.5px; height: 4px; margin-top: 2px;
  background: var(--muted); transform: rotate(-45deg);
}
.lp-chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); }

.lp-fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* the drop card: the one heavy surface above the fold */
.lp-drop {
  background: var(--material-1);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hair-2);
  border-top-color: var(--edge);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 1px 0 var(--edge) inset;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-drop .lp-fine { text-align: center; }
.landing-main { display: flex; flex-direction: column; }

/* below the fold: the scene fades out behind solid ground */
.lp-more {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 11, 14, 0) 0, rgba(8, 11, 14, 0.94) 140px, var(--void) 100%);
  padding-top: 40px;
}
.lp-sec { max-width: 1240px; margin: 0 auto; padding: 72px 40px 0; scroll-margin-top: 24px; }
.lp-drop { scroll-margin-top: 80px; }
.lp-h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0;
}
.lp-sub { max-width: 40em; margin: 12px 0 28px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.lp-sec > .lp-fine { margin-top: 18px; }

.lp-grid3, .lp-grid4 { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }

.lp-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  padding: 22px 22px 24px;
}
.lp-tile h3 {
  font-family: var(--display);
  font-size: 17px; font-weight: 650; letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.lp-tile p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.lp-tile em { font-style: normal; color: var(--ink); font-weight: 600; }
.lp-tile a { color: var(--s1); text-decoration: none; }
.lp-tile a:hover { text-decoration: underline; }

.lp-n {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.12);
  color: var(--hit-gold);
  font: 600 13px/1 var(--mono);
}
.lp-dot {
  display: block; width: 10px; height: 10px; margin-bottom: 14px;
  border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent);
}

.lp-code {
  margin: 0 0 20px;
  padding: 16px 18px;
  max-width: 640px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  font: 13px/1.7 var(--mono);
  color: var(--ink);
}
.lp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.lp-link { color: var(--s1); text-decoration: none; font-size: 14.5px; }
.lp-link:hover { text-decoration: underline; }

.lp-foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 40px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 12.5px; color: var(--muted);
}

/* no demo to offer: the sample would not load, or a graph is already running */
#landing.no-demo #tryDemo,
#landing.no-demo #demoAsks { display: none; }
/* a graph is already loaded: no demo from here, and a way back */
#landing.returning .lp-cta,
#landing.returning #demoAsks { display: none; }

@media (max-width: 1060px) {
  .lp-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .lp-top { padding: 14px 20px; }
  .lp-nav a { display: none; }
  .lp-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    min-height: 0;
    padding: 28px 20px 40px;
  }
  .lp-veil {
    background: linear-gradient(180deg, rgba(8, 11, 14, 0.9) 0%, rgba(8, 11, 14, 0.72) 45%, rgba(8, 11, 14, 0.9) 100%);
  }
  .lp-lede { font-size: 16.5px; }
  .lp-cta .lp-btn { flex: 1 1 auto; }
  .lp-drop { padding: 16px; }
  .lp-sec { padding: 56px 20px 0; }
  .lp-grid3, .lp-grid4 { grid-template-columns: minmax(0, 1fr); }
  .lp-foot { padding: 56px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  #landing { scroll-behavior: auto; }
}

/* the drop target */
#dropzone {
  position: relative;
  padding: 46px 32px 40px;
  border: 1px dashed rgba(255, 209, 102, 0.34);
  border-radius: 14px;
  background: radial-gradient(90% 120% at 50% 40%, rgba(255, 209, 102, 0.07), rgba(8, 11, 14, 0.82) 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
#dropzone:hover,
#dropzone:focus-visible,
#dropzone.over {
  border-color: rgba(255, 209, 102, 0.72);
  background: radial-gradient(90% 120% at 50% 40%, rgba(255, 209, 102, 0.13), rgba(8, 11, 14, 0.82) 72%);
}

/* the search marker's cut corners, reused */
#dropzone .br {
  position: absolute;
  width: 22px; height: 22px;
  border-left: 1.5px solid var(--hit-gold);
  border-top: 1.5px solid var(--hit-gold);
  opacity: 0.85;
}
#dropzone .tl { left: -1px; top: -1px; }
#dropzone .tr { right: -1px; top: -1px; transform: rotate(90deg); }
#dropzone .br2 { right: -1px; bottom: -1px; transform: rotate(180deg); }
#dropzone .bl { left: -1px; bottom: -1px; transform: rotate(270deg); }

.dz-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.dz-sub { font-size: 13px; color: var(--ink-2); }
.dz-hint {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.linky {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--s1);
  cursor: pointer;
  transition: opacity 120ms ease-out;
}
.linky:hover { opacity: 0.8; }


/* what we read out of the file */
.landing-state:empty { display: none; }
.landing-state {
  margin-top: 17px;
  background: var(--material-2);
  border: 1px solid var(--hair);
  border-left: 2px solid var(--s1);
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.landing-state.bad { border-left-color: var(--s2); }

.ls-mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.ls-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ls-note { font-size: 11px; line-height: 1.5; color: var(--muted); }

.cols { display: flex; flex-wrap: wrap; gap: 6px; }
.col {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink);
  border: 1px solid var(--hair);
  border-radius: var(--r-ctl);
  padding: 3px 7px;
}
.col-k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.map { display: flex; flex-direction: column; gap: 7px; }
.map-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; }
.map-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: var(--s1-fill);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: box-shadow 150ms ease-out, transform 100ms ease-out;
}
.primary:hover { box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.28); }
.primary:disabled { background: var(--fill); color: var(--muted); cursor: not-allowed; filter: none; }

#dataGrp .seg button { cursor: pointer; }

@media (max-width: 900px) {
  #dropzone { padding: 30px 18px 26px; }
  .dz-title { font-size: 21px; }
  .linky, .primary { min-height: 44px; }
  .primary { width: 100%; }
}

/* While the landing is up, the app chrome underneath must not show through it.
   The scene still does, deliberately — that is the point of the landing. */
body.landing-up #ctl,
body.landing-up #meta,
body.landing-up #tip,
body.landing-up #status,
body.landing-up #noteWrap,
body.landing-up #answer,
body.landing-up #detail,
body.landing-up #labels { display: none; }

/* ---------- the answer panel ---------- */
/* Results live in their own column rather than inside #ctl. A matched headline
   is the evidence behind a shortlist, and 284px cannot show one. */

#answer {
  top: 18px;
  right: 18px;
  width: 368px;
  max-height: calc(100vh - 36px);
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#answer[hidden] { display: none; }
/* The answer takes the stats panel's slot while it is open. */
body.answering #meta { display: none; }

.ans-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ans-head { position: relative; padding-right: 32px; }
.ans-head .d-close { position: absolute; top: -4px; right: -8px; }
.ans-head .lab { margin: 0; }
#askCount {
  font-family: var(--mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

#askQuery {
  background: rgba(8, 11, 14, 0.6);
  border: 1px solid var(--hair-2);
  border-left: 2px solid var(--hit-gold);
  border-radius: var(--r-ctl);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.aq-lab {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.aq-text {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

#askEmpty { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

#askList {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
  margin-right: -4px;
}
#askList::-webkit-scrollbar { width: 5px; }
#askList::-webkit-scrollbar-thumb { background: var(--hair); border-radius: var(--r-chip); }

.ares {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 11px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--hair-2);
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}
.ares:hover { border-color: var(--hair); background: rgba(24, 32, 39, 0.6); }
.ares.on { border-color: rgba(255, 209, 102, 0.34); background: rgba(255, 209, 102, 0.07); }

.ar-top { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.ar-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.ar-role { font-size: 11.5px; color: var(--muted); }
.ar-co { font-size: 11.5px; color: var(--ink-2); }
.ar-head { font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }
.ar-why { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.why {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  padding: 2px 5px;
}

.ans-foot {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 9px;
  border-top: 1px solid var(--hair-2);
}


/* The edges caveat sits where the answer panel lands, and while you are reading
   a shortlist the shortlist is the thing that matters. */

/* ---------- enrich with Claude ---------- */

.enrich-body { display: flex; flex-direction: column; gap: 9px; padding: 0 11px 12px; }
.ehelp { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.ehelp.small { font-size: 10.5px; color: var(--muted); }
.ehelp strong { color: var(--ink); font-weight: 600; }
.elab {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
#apiKey {
  width: 100%;
  background: var(--fill);
  color: var(--ink);
  border: 1px solid transparent;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
  border-radius: var(--r-ctl);
  padding: 7px 9px;
  font-family: var(--mono);
  font-size: 12px;
}
#apiKey::placeholder { color: var(--muted); }

.erow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.ebar { height: 6px; border-radius: 2px; background: var(--hair-2); overflow: hidden; }
.ebar span { display: block; height: 100%; width: 0; background: var(--hit-gold); transition: width 0.25s; }
#enrichProgress { display: flex; flex-direction: column; gap: 7px; }
#enrichProgress[hidden] { display: none; }

/* the location caveat, in the answer */
#askCaveat {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
  background: rgba(217, 89, 38, 0.06);
  border: 1px solid var(--hair-2);
  border-left: 2px solid var(--s2);
  border-radius: var(--r-ctl);
  padding: 9px 11px;
}
#askCaveat strong { color: var(--ink); font-weight: 600; }

.aq-added, .aq-read {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted);
}
.aq-read { font-family: var(--sans); font-size: 11px; font-style: italic; }

/* Claude is re-reading the question; the regex answer is already on screen. */
#answer.thinking .aq-lab::after {
  content: " · asking claude";
  color: var(--hit-gold);
  animation: nc-pulse 1.4s ease-in-out infinite;
}
@keyframes nc-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- the detail panel ---------- */
/* One person or one employer, in full. It takes the right column; when an
   answer is open too, the detail sits on top and the answer is pinned below. */

#detail {
  top: 18px;
  right: 18px;
  width: 368px;
  max-height: calc(100vh - 36px);
  padding: 14px 17px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 11;
}
#detail[hidden] { display: none; }
body.detailing #meta { display: none; }
/* A detail needs the full column unless it is sharing that column with an
   active answer. */
/* A profile takes the answer's place: one thing on the right at a time. The
   answer is hidden, not cleared, so closing the profile brings it straight
   back — and the lit set in the scene stays lit throughout. */
body.detailing #answer { display: none; }

.d-head { display: flex; align-items: center; justify-content: space-between; }
.d-head .lab { margin: 0; }
.d-close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  width: 28px; height: 28px;
  border-radius: var(--r-ctl);
  cursor: pointer;
}
.d-close:hover { color: var(--ink); background: var(--panel-2); }

#detailBody {
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
  margin-right: -4px;
}
#detailBody::-webkit-scrollbar { width: 5px; }
#detailBody::-webkit-scrollbar-thumb { background: var(--hair); border-radius: var(--r-chip); }

.d-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
.d-role { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.d-co { align-self: flex-start; font-size: 12.5px; }
.d-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.d-dim { text-transform: none; letter-spacing: 0; }
.d-go {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--hit-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 209, 102, 0.45);
}
.d-go:hover { color: #ffe0a0; }

.d-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--hair-2); }
.d-sec .lab { margin: 0; }
.d-text { font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.d-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.d-note { font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.d-note em { color: var(--ink-2); font-style: normal; }
.d-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--hit-gold);
  animation: nc-pulse 1.4s ease-in-out infinite;
}
.d-status.bad { color: var(--s2); animation: none; }
.d-chips { display: flex; gap: 5px; flex-wrap: wrap; }

.d-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--ink-2); }
.d-kv span:last-child { color: var(--ink); text-align: right; }
.d-kv em { color: var(--muted); font-style: normal; }

.d-label { align-self: flex-start; padding: 7px 10px; }

.drow {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  background: transparent;
}
.drow:hover { border-color: var(--hair); background: rgba(24, 32, 39, 0.6); }
.drow-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.drow-role { font-size: 11px; color: var(--muted); }
.d-more { align-self: flex-start; font-size: 11.5px; }

.d-bar { display: grid; grid-template-columns: 118px 1fr 28px; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-2); }
.d-bar-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-bar-t { height: 5px; border-radius: 2px; background: var(--hair-2); overflow: hidden; }
.d-bar-t span { display: block; height: 100%; background: var(--ink-2); opacity: 0.7; }
.d-bar-n { font-family: var(--mono); font-size: 10px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* On a phone the right-hand column becomes a bottom sheet: the answer or the
   profile over the lower part of the screen, the question box still above it
   and the lit scene between. Same one-at-a-time rule as the desktop. */
@media (max-width: 900px) {
  :root { --sheet-h: 58vh; --sheet-h: 58svh; }
  #answer, #detail {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto;
    max-height: var(--sheet-h);
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    animation: nc-sheet-in 320ms var(--ease-out);
  }
  /* the grabber: this is a sheet, it came from below */
  #answer::before, #detail::before {
    content: "";
    position: absolute; top: 6px; left: 50%;
    width: 36px; height: 5px; margin-left: -18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
  }
  body.answering #ctl, body.detailing #ctl { max-height: 30vh; max-height: 30svh; }
  body.answering #overview, body.detailing #overview { display: none; }
  body.answering #noteWrap, body.detailing #noteWrap { display: none; }
  body.answering #status, body.detailing #status { display: none; }   /* the sheet says it */
}
@keyframes nc-sheet-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .d-status, #answer.thinking .aq-lab::after { animation: none; } }


/* ---------- overview ---------- */

#overview { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
#overview:empty { display: none; }
.ov-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ov-stat {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 10px;
  border-radius: var(--r-ctl);
  background: var(--fill-2);
}
.ov-n { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-k { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.ov-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--fill-2); }
.ov-seg { display: block; height: 100%; }
.ov-bands { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--ink-2); }
.ov-band { display: inline-flex; align-items: center; gap: 5px; }
.ov-band .dot { width: 7px; height: 7px; }
.ov-dim { color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 11px; color: var(--ink-2); }
.ov-line .ov-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.ov-field { white-space: nowrap; }

/* ---------- the settings sheet ---------- */
/* A modal task: translucent surface over a dimming scrim. Side panels never
   get a scrim; this does, because it is the one place money and a key change
   hands. */

.sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.sheet[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); animation: nc-fade 220ms ease-out; }
.sheet-panel {
  position: relative;
  width: min(392px, calc(100vw - 32px));
  max-height: min(84vh, 720px);
  overflow-y: auto;
  padding: 14px 17px 18px;
  background: var(--material-1);
  animation: nc-sheet-in 320ms var(--ease-out);
  transform-origin: 50% 40%;
}
.sheet-body { margin-top: 6px; }
.sheet-body .enrich-body { padding: 0; }
.sheet-body .enrich-body + .enrich-body { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair-2); }
.sheet-h {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* Arriving from one person or one employer: only the key, and that one action. */
#settings.key-only #employerSection,
#settings.key-only #keyHead { display: none; }
body.sheet-up { overflow: hidden; }

@keyframes nc-fade { from { opacity: 0; } to { opacity: 1; } }
/* materialise: blur and scale arrive together, so the surface reads as real */
@keyframes nc-sheet-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes nc-panel-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
#answer, #detail { animation: nc-panel-in 300ms var(--ease-out); }

/* ---------- the research brief ---------- */

.d-research { align-self: flex-start; }
.d-brief-pre { margin: 0; padding: 8px 10px; border-radius: var(--r-ctl); background: rgba(255, 159, 10, 0.1); border-left: 2px solid var(--s2); font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.d-brief-sec { display: flex; flex-direction: column; gap: 3px; }
.d-brief-sec p { margin: 0; }
.d-conf { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink); padding: 6px 9px; border-radius: var(--r-ctl); background: var(--fill-2); }
.d-conf span { color: var(--ink-2); letter-spacing: 0; font-family: var(--sans); font-size: 11px; }
.d-conf-high { border-left: 2px solid #30d158; }
.d-conf-medium { border-left: 2px solid var(--s2); }
.d-conf-low { border-left: 2px solid #ff453a; }
.d-sources { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; line-height: 1.4; }
.d-sources a { color: var(--s1); text-decoration: none; }
.d-sources a:hover { text-decoration: underline; }

/* ---------- accessibility preferences ---------- */

@media (prefers-reduced-transparency: reduce) {
  .panel, #status, #note, #tip, .nchit .card, .landing-state, .sheet-panel, .lp-drop {
    background: #1c1c1e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .panel, .sheet-panel { border-color: rgba(255, 255, 255, 0.35); }
  :root { --muted: #c2c2c8; --ink-2: #dcdce0; }
}
@media (prefers-reduced-motion: reduce) {
  #answer, #detail, .sheet-panel, .scrim { animation: nc-fade 160ms ease-out; transform: none !important; filter: none !important; }
  button:active, .ares:active, .drow:active, .icon-btn:active, .linky:active { transform: none; }
  .seg button { transition: none; }
}

/* ---------- profile photo ---------- */
.d-photo-wrap { display: flex; align-items: center; gap: 12px; }
.d-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--fill);
  box-shadow: 0 0 0 1px var(--hair), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.d-photo-wrap .d-name { margin: 0; }

/* top fields: a ranked, clickable list */
.ov-fields { display: flex; flex-direction: column; gap: 2px; }
.ov-fields > .ov-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.ov-frow {
  display: grid;
  /* rank · dot · name on the first line; bar and numbers beneath the name */
  grid-template-columns: 12px 8px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank dot name name"
    ".    .   bar  num";
  align-items: center;
  column-gap: 7px;
  row-gap: 3px;
  width: 100%;
  padding: 6px 7px;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease-out;
}
.ov-frow:hover { background: var(--fill-2); }
.ov-frow.on { background: var(--fill); }
.ov-rank { grid-area: rank; font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: right; }
.ov-frow .dot { grid-area: dot; width: 8px; height: 8px; }
.ov-fname { grid-area: name; font-size: 12px; font-weight: 500; line-height: 1.3; }
.ov-fn { grid-area: num; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 64px; }
.ov-fn .ov-dim { font-weight: 400; }
.ov-fbar { grid-area: bar; height: 4px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
.ov-fbar span { display: block; height: 100%; border-radius: 2px; opacity: 0.85; }

/* ---------- person view ---------- */

.d-hero { display: flex; flex-direction: column; gap: 9px; }
.d-hero-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-hero .d-name { font-size: 21px; }
.d-hero .d-role { font-size: 13px; color: var(--ink-2); }
.d-hero .d-co { font-size: 13px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.d-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--ink);
  background: var(--fill-2);
  border-radius: 999px;
  padding: 3px 9px;
}
.d-tag .dot { width: 7px; height: 7px; }
.d-linkedin {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--fill);
  border-radius: var(--r-ctl);
  padding: 6px 11px;
  transition: background 150ms ease-out;
}
.d-linkedin:hover { background: rgba(120, 120, 128, 0.34); }

/* the enrich card: what you get, one button, the fine print */
.d-enrich {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
  padding: 13px 14px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.14), rgba(10, 132, 255, 0.05));
  border: 1px solid rgba(10, 132, 255, 0.28);
}
.d-enrich.done { background: var(--fill-2); border-color: var(--hair); }
.d-enrich.failed { background: rgba(255, 69, 58, 0.08); border-color: rgba(255, 69, 58, 0.3); }
.de-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.de-head svg { color: #64b5ff; flex: none; }
.d-enrich.done .de-head svg { color: var(--hit-gold); }
.de-lead { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.de-btn { align-self: stretch; padding: 10px 16px; font-size: 13.5px; }
.de-fine { margin: 0; font-size: 11px; line-height: 1.45; color: var(--muted); }
.de-cancel { align-self: flex-start; font-size: 12px; }
.de-clock { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.de-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.de-track span { display: block; width: 35%; height: 100%; border-radius: 2px; background: var(--s1); animation: nc-track 1.6s ease-in-out infinite; }
@keyframes nc-track { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.de-conf { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.de-conf-high { color: #30d158; background: rgba(48, 209, 88, 0.14); }
.de-conf-medium { color: var(--s2); background: rgba(255, 159, 10, 0.14); }
.de-conf-low { color: #ff6961; background: rgba(255, 69, 58, 0.14); }
.de-warn { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-ctl); background: rgba(255, 159, 10, 0.1); border-left: 2px solid var(--s2); }
.de-sec { display: flex; flex-direction: column; gap: 3px; }
.de-h { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.de-sec p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.de-approach { padding: 9px 11px; border-radius: var(--r-ctl); background: rgba(10, 132, 255, 0.1); }
.de-approach .de-h { color: #64b5ff; }
.de-sources summary { cursor: pointer; font-size: 11.5px; color: var(--ink-2); list-style: none; }
.de-sources summary::-webkit-details-marker { display: none; }
.de-sources summary::before { content: "\25B8  "; color: var(--muted); }
.de-sources[open] summary::before { content: "\25BE  "; }
.de-sources ol { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; line-height: 1.4; }
.de-sources a { color: var(--s1); text-decoration: none; }
.de-sources a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .de-track span { animation: none; width: 100%; opacity: 0.5; } }

/* ---------- the answer panel, readable ---------- */
/* The count leads, the matching reads as plain parts, and each row is a
   person: an initial in their field's colour, name, role and employer, the
   headline with the question's words marked, and only the reasons that say
   something new. */

#answer { gap: 12px; padding: 16px 16px 12px; }
.ans-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
#askCount.ans-count { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ans-sub { font-size: 12px; color: var(--muted); }

#askQuery {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: var(--fill-2);
  border: 0;
  border-radius: 10px;
}
.aq-read { margin: 0 0 2px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.aq-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: baseline; }
.aq-k { font-size: 11px; color: var(--muted); }
.aq-v { display: flex; flex-wrap: wrap; gap: 4px; }
.aq-chip { font-size: 11.5px; color: var(--ink); background: var(--fill); border-radius: 999px; padding: 2px 8px; }
.aq-claude { color: #9ccfff; background: rgba(10, 132, 255, 0.16); }
.aq-claude::before { content: "\2726  "; font-size: 9px; }
.aq-note { margin: 0; font-size: 11px; color: var(--muted); }
.aq-spark { color: #9ccfff; }

#askList {
  gap: 2px;
  /* a soft fade where the list runs under the edge, not a hard line */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
  padding-bottom: 14px;
}
.ares {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  gap: 11px;
  align-items: start;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.ares:hover { background: var(--fill-2); }
.ares.on { background: rgba(10, 132, 255, 0.14); border: 0; }
.ar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff;
  background: color-mix(in oklab, var(--c) 55%, #1c1c1e);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 70%, transparent);
}
.ar-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ar-sub { font-size: 12px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-head {
  font-size: 12px; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ares mark { background: rgba(255, 209, 102, 0.16); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.ar-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ar-tag { font-size: 11px; color: var(--ink-2); background: var(--fill-2); border-radius: 999px; padding: 1px 8px; }
.ar-go { align-self: center; font-size: 18px; line-height: 1; color: var(--muted); opacity: 0; transition: opacity 150ms ease-out; }
.ares:hover .ar-go, .ares.on .ar-go { opacity: 1; }

.ans-more {
  align-self: center;
  font: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--s1);
  background: rgba(10, 132, 255, 0.12);
  border: 0; border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.ans-more:hover { background: rgba(10, 132, 255, 0.2); }
.ans-foot {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  padding-top: 8px;
}
