/* ═══════════════════════════════════════════════════════════════════════
   /scrape/linkedin — "The graph, as data."
   A graph of people, companies and jobs. Distinct from the other scrape pages
   (table / map / gallery / auction): a node-graph hero (hover a node -> its
   public record), an entity segmented (profile / company / job), an experience
   timeline. Public data only. Solid bands (no clip bloom). Chrome via _shared.
   ═══════════════════════════════════════════════════════════════════════ */
@import "../../_ds/fonts.css";
@import "../../_ds/theme.css";
@import "../../_shared/chrome.css";
@import "../../_shared/components.css";
@import "../../_shared/audience-switcher.css";

.li-main { position: relative; overflow-x: clip; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 640ms cubic-bezier(0.22,1,0.36,1), transform 640ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 1 — the graph (dark, copy+record left / node network right)
   ═══════════════════════════════════════════════════════════════════════ */
.li-hero { padding: clamp(112px, 15vh, 180px) clamp(20px, 5vw, 80px) clamp(60px, 9vh, 110px); }
.li-hero-grid { max-width: 1340px; margin-inline: auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.li-hero-copy .eyebrow { margin-bottom: 16px; }
.li-hero-h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-hero-xl); line-height: 0.98; letter-spacing: -0.03em; color: var(--text-primary); margin: 0; }
.li-hero-h1 .l2 { display: block; }
.li-hero-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 22px 0 0; max-width: 42ch; }
.li-hero-cta { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.li-hero-cta .link-cta { align-self: center; padding-top: 6px; }
/* the record panel under the copy, filled by the hovered node */
.li-record { margin-top: clamp(26px, 4vh, 40px); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 18px 20px; max-width: 400px; }
.li-record-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-code); font-size: 11px; letter-spacing: 0.04em; margin-bottom: 12px; }
.li-record-file { color: var(--text-tertiary); }
.li-record-stat { color: #9B7BF0; display: inline-flex; align-items: center; gap: 6px; }
.li-record-stat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7C4FE8; }
.li-record-name { font-family: var(--font-display); font-size: var(--mkt-h4); color: var(--text-primary); letter-spacing: -0.01em; }
.li-record-line { font-family: var(--font-base); font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.li-record-line b { color: var(--text-primary); font-weight: 500; }
.li-record-meta { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--border-subtle) 60%, transparent); font-family: var(--font-code); font-size: 12px; color: var(--text-tertiary); }
.li-record-meta b { color: #9B7BF0; font-weight: 400; }

/* the node graph */
.li-graph { width: 100%; }
.li-graph svg { width: 100%; height: auto; display: block; overflow: visible; }
.li-edge { stroke: color-mix(in srgb, var(--border-subtle) 90%, transparent); stroke-width: 1.5; }
.li-node { cursor: pointer; outline: none; }
.li-node:focus, .li-node:focus-visible { outline: none; }
.li-node circle { fill: color-mix(in srgb, var(--background) 84%, #fff 16%); stroke: var(--text-tertiary); stroke-width: 1.5; transition: fill 220ms ease, stroke 220ms ease, r 220ms ease; }
.li-node text { fill: var(--text-secondary); font-family: var(--font-code); font-size: 15px; text-anchor: middle; dominant-baseline: central; transition: fill 220ms ease; pointer-events: none; }
.li-node:hover circle { stroke: #7C4FE8; }
.li-node.is-active circle { fill: #7C4FE8; stroke: #7C4FE8; }
.li-node.is-active text { fill: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 2 — one API, three entities (SOLID purple band, segmented record)
   ═══════════════════════════════════════════════════════════════════════ */
.li-ent { position: relative; background: #7C4FE8; padding: clamp(96px, 15vh, 190px) clamp(20px, 5vw, 80px); }
.li-ent-inner { max-width: 1080px; margin-inline: auto; }
.li-ent-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.03; letter-spacing: -0.024em; color: #fff; margin: 0; max-width: 16ch; }
.li-ent-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: #F3ECFF; margin: 20px 0 0; max-width: 54ch; }
.li-seg { display: inline-flex; gap: 4px; margin: clamp(32px, 5vh, 48px) 0 0; padding: 4px; border: 1px solid rgba(255,255,255,0.34); border-radius: 999px; }
.li-seg button { font-family: var(--font-base); font-size: 14px; color: #EBDDFF; background: transparent; border: none; border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: background 200ms ease, color 200ms ease; }
.li-seg button:hover { color: #fff; }
.li-seg button.is-on { background: #fff; color: #7C4FE8; }
.li-ent-panels { margin-top: clamp(24px, 3.5vh, 36px); position: relative; }
.li-panel { display: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 14px; padding: clamp(20px, 2.4vw, 30px); background: rgba(255,255,255,0.06); }
.li-panel.is-on { display: block; }
.li-panel pre { margin: 0; font-family: var(--font-code); font-size: var(--mkt-body-xs); line-height: 1.75; color: #F3ECFF; white-space: pre; overflow-x: auto; }
.li-panel .k { color: #fff; } .li-panel .s { color: #EBDDFF; } .li-panel .n { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 3 — a career, parsed (dark, experience timeline)
   ═══════════════════════════════════════════════════════════════════════ */
.li-exp { padding: clamp(100px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1160px; margin-inline: auto; }
.li-exp-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; max-width: 16ch; }
.li-exp-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 52ch; }
.li-exp-grid { margin-top: clamp(44px, 7vh, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
/* right: the record scrapes in as you scroll the timeline (sticky panel) */
.li-exp-right { position: sticky; top: 108px; min-width: 0; }
.li-scrape { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 20px 22px; }
.li-scrape-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-code); font-size: 11px; letter-spacing: 0.04em; margin-bottom: 14px; }
.li-scrape-file { color: var(--text-tertiary); }
.li-scrape-count { color: #7ADAE6; }
.li-scrape pre { margin: 0; font-family: var(--font-code); font-size: var(--mkt-body-xs); line-height: 1.7; color: var(--text-secondary); white-space: pre; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.li-scrape .br { color: var(--text-quaternary); }
.li-json-obj { display: block; opacity: 0; transform: translateY(8px); transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22,1,0.36,1); }
.li-json-obj.is-in { opacity: 1; transform: none; }
.li-json-obj .k { color: #7ADAE6; } .li-json-obj .s { color: var(--text-primary); } .li-json-obj .n { color: #9FE9F2; }
.li-timeline { position: relative; }
.li-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border-subtle); }
/* rows are spaced tall so they cross the viewport one at a time; each triggers
   its scrape as it passes centre while the right panel stays sticky.
   The dot (left 1, width 12, border-box) and the line (left 6, width 2) share
   a centre at x=7 so they align exactly. */
.li-trow { position: relative; padding: 0 0 clamp(140px, 34vh, 320px) 36px; }
.li-trow:last-child { padding-bottom: 0; }
.li-trow::before { content: ""; position: absolute; left: 1px; top: 7px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: var(--background); border: 2px solid var(--text-tertiary); }
.li-trow:first-child::before { border-color: #7ADAE6; background: #7ADAE6; }
.li-trole { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); color: var(--text-primary); }
.li-tco { font-family: var(--font-base); font-size: 14.5px; color: var(--text-secondary); margin-top: 3px; }
.li-tco b { color: #7ADAE6; font-weight: 500; }
.li-tdate { font-family: var(--font-code); font-size: 12.5px; color: var(--text-quaternary); margin-top: 5px; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 4 — the hardest wall, public only (dark, stacked)
   ═══════════════════════════════════════════════════════════════════════ */
.li-why { padding: clamp(100px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1160px; margin-inline: auto; }
.li-why-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; max-width: 18ch; }
.li-why-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 56ch; }
.li-why-list { margin-top: clamp(40px, 6vh, 68px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-default, 12px); overflow: hidden; }
.li-why-item { background: var(--background); padding: 26px 24px 28px; }
.li-why-tag { display: inline-block; margin-bottom: 14px; }
.li-why-t { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.15; color: var(--text-primary); margin: 0; }
.li-why-d { font-family: var(--font-base); font-size: 13.5px; line-height: 1.55; color: var(--text-tertiary); margin: 10px 0 0; }
.li-why-d b { color: var(--text-secondary); font-weight: 500; }
.li-public { margin-top: clamp(28px, 4vh, 40px); font-family: var(--font-base); font-size: 14px; line-height: 1.55; color: var(--text-tertiary); max-width: 62ch; }
.li-public b { color: var(--text-secondary); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 5 — closer (SOLID teal band). CTA = --purple variant.
   ═══════════════════════════════════════════════════════════════════════ */
.li-closer { position: relative; background: #7ADAE6; padding: clamp(110px, 20vh, 240px) clamp(20px, 5vw, 80px); }
.li-closer-inner { max-width: 1100px; margin-inline: auto; }
.li-closer-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-hero); line-height: 0.96; letter-spacing: -0.03em; color: #1D1612; margin: 0; }
.li-closer-sub { font-family: var(--font-base); font-size: var(--mkt-lead); line-height: 1.5; color: rgba(29,22,18,0.82); margin: 26px 0 0; max-width: 48ch; }
.li-closer-cta { margin-top: 38px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.li-closer-tagline { font-family: var(--font-code); font-size: 13px; letter-spacing: 0.04em; color: rgba(29,22,18,0.62); }
.li-uses { margin: clamp(40px, 6vh, 64px) 0 0; padding-top: clamp(24px, 3vh, 36px); border-top: 1px solid rgba(29,22,18,0.24); }
.li-uses-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(29,22,18,0.62); margin: 0 0 14px; }
.li-uses-list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.li-use { font-family: var(--font-base); font-size: 14px; color: #1D1612; border: 1px solid rgba(29,22,18,0.24); border-radius: 999px; padding: 8px 15px; }

/* is-on-* topbar inversion (floating topbar). Teal band -> whole bar dark. */

/* ═══════════════════════════════════════════════════════════════════════
   Mobile / reduced-motion (<=900px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .li-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .li-record { max-width: none; }
  .li-graph { order: -1; }
  .li-seg { flex-wrap: wrap; }
  .li-exp-grid { grid-template-columns: 1fr; gap: 36px; }
  .li-exp-right { position: static; }
  .li-why-list { grid-template-columns: 1fr; }
}
