/* founders.io — editorial, distinctive, readable.
   A warm ivory-and-ink magazine aesthetic: Fraunces display serif for headlines,
   Newsreader text serif for body, an oxidised-copper accent. Characterful, but
   tuned for comfortable reading and dense data. */

:root {
  --paper:   #f4efe3;
  --paper-2: #ece5d5;
  --card:    #fdfbf5;
  --ink:     #1f1b14;
  --ink-2:   #574f41;
  --muted:   #8a8170;
  --line:    #e4dbc9;
  --line-2:  #d3c8b0;
  --accent:  #a8480a;
  --accent-2:#853808;
  --accent-soft: #f5e6d3;
  --green:   #3d6647;
  --blue:    #2f5580;
  --red:     #a5382a;
  --r:  9px;
  --r-sm: 7px;
  --r-lg: 16px;
  --maxw: 1180px;
  --measure: 66ch;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --shadow: 0 8px 30px rgba(43,32,15,.10);
  --shadow-sm: 0 1px 2px rgba(43,32,15,.06), 0 2px 10px rgba(43,32,15,.05);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
img, svg, table { max-width: 100%; }
body {
  margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink);
  font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  /* faint paper warmth in the corners for depth without noise */
  background-image:
    radial-gradient(1200px 520px at 100% -5%, rgba(168,72,10,.045), transparent 60%),
    radial-gradient(1000px 480px at -10% 8%, rgba(43,32,15,.035), transparent 55%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
::selection { background: #f0d3b4; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---------- headings — Fraunces display serif ---------- */
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-optical-sizing: auto; font-weight: 560; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; margin: .1em 0 .3em; letter-spacing: -.02em; font-weight: 540; }
h2 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.16; margin: 0 0 4px; }
h3 { font-size: 17.5px; line-height: 1.28; margin: 0; font-weight: 560; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.lead { font-size: 19.5px; line-height: 1.55; color: var(--ink-2); max-width: var(--measure); font-weight: 400; }
.lead em, em { font-style: italic; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
strong { font-weight: 600; color: var(--ink); }

main { min-height: 62vh; padding: 34px 0 64px; }
.section { margin-top: 46px; }
.section > .head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px;
  padding-bottom: 11px; border-bottom: 1px solid var(--line-2); }
.section > .head h2 { margin: 0; }
.section > .head .count { font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: -.01em; }
.section > .head a.more, .section > .head .more { margin-left: auto; font-size: 14px; color: var(--accent); font-weight: 500; font-family: var(--sans); }
.section > .head a.more:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* kicker — editorial eyebrow: small caps, letterspaced */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--accent); margin-bottom: 10px;
  text-transform: uppercase; font-family: var(--sans); display: inline-flex; align-items: center; gap: 9px; }
.kicker::before { content: ''; width: 22px; height: 1.5px; background: var(--accent); opacity: .55; }

/* ---------- links ---------- */
a.link { color: var(--accent); font-weight: 500; }
a.link:hover { text-decoration: underline; text-underline-offset: 3px; }
a.ent { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: color .12s, border-color .12s; }
a.ent:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,239,227,.82);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line-2); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand b { font-family: var(--display); font-weight: 560; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.brand .tld { font-family: var(--display); font-weight: 560; font-size: 22px; color: var(--accent); letter-spacing: -.01em; margin-left: 0; }
.brand .mark { flex: none; display: block; }
.brand:hover .tld { color: var(--accent-2); }

.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; transition: color .12s, background .12s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.cta { color: #fff; background: var(--accent); margin-left: 8px; }
.nav a.cta:hover { background: var(--accent-2); }

.nav-dd { position: relative; }
.nav-trigger { font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.nav-trigger:hover, .nav-dd:hover .nav-trigger, .nav-dd:focus-within .nav-trigger { background: var(--paper-2); color: var(--ink); }
.nav-trigger .caret { font-size: 9px; color: var(--muted); }
.nav-panel { position: absolute; right: 0; top: calc(100% + 7px); min-width: 224px; background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 7px;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .13s, transform .13s, visibility .13s; }
.nav-dd:hover .nav-panel, .nav-dd:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14.5px; color: var(--ink); border-radius: var(--r-sm); }
.nav-panel a:hover { background: var(--paper-2); color: var(--accent); }
.nav-panel .pill { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* mobile header */
.m-only { display: none; }
.icon-btn { font-size: 21px; line-height: 1; color: var(--ink-2); width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); flex: none; }
.icon-btn:hover { background: var(--paper-2); color: var(--accent); }
.m-menu { position: relative; flex: none; }
.m-menu > summary { list-style: none; width: 42px; height: 42px; display: grid; place-items: center; gap: 5px; cursor: pointer; border-radius: var(--r-sm); }
.m-menu > summary::-webkit-details-marker { display: none; }
.m-menu > summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.m-menu[open] > summary { background: var(--paper-2); }
.m-menu-panel { position: absolute; right: 0; top: 50px; width: 230px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 7px; display: flex; flex-direction: column; z-index: 60; }
.m-menu-panel a { padding: 12px 13px; font-size: 15px; color: var(--ink); border-radius: var(--r-sm); }
.m-menu-panel a:hover { background: var(--paper-2); }
.m-menu-panel a.cta { color: #fff; background: var(--accent); margin-top: 5px; text-align: center; font-weight: 600; }

/* header search */
.hsearch { position: relative; flex: 1 1 auto; min-width: 0; max-width: 400px; }
.hsearch input { width: 100%; height: 40px; border: 1px solid var(--line-2); background: var(--card);
  border-radius: var(--r); padding: 0 14px 0 38px; font-size: 15px; color: var(--ink); font-family: var(--sans); }
.hsearch input::placeholder { color: var(--muted); }
.hsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hsearch .mag { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* autocomplete */
.ac { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: none; z-index: 70; }
.ac.open { display: block; }
.ac a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ac a:last-child { border-bottom: 0; }
.ac a:hover, .ac a.sel { background: var(--paper-2); }
.ac .nm { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.ac .lb { font-size: 12.5px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.ac .tp { font-size: 10px; font-family: var(--mono); text-transform: uppercase; color: #fff; background: var(--muted);
  letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; flex: none; }
.ac .tp.co { background: var(--accent); }

/* ---------- chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 12px; border: 1px solid var(--line-2);
  border-radius: 100px; color: var(--ink-2); background: var(--card); transition: border-color .12s, color .12s, background .12s; }
a.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); background: var(--accent-soft); }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 5px; background: var(--paper-2); color: var(--ink-2); }
.tag.status-public { background: #e8f1ea; color: var(--green); }
.tag.status-acquired { background: #e7eef7; color: var(--blue); }
.tag.status-defunct { background: #f7e8e5; color: var(--red); }
.tag.status-private { background: var(--paper-2); color: var(--muted); }
.tag.unicorn { background: #efe6fb; color: #6b3fa0; }
.tag.yc { background: var(--accent-soft); color: var(--accent); }

/* monogram */
.mono-badge { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: var(--accent); background: var(--accent-soft); flex: none; }
.mono-badge.round { border-radius: 50%; }
.mono-badge.lg { width: 60px; height: 60px; font-size: 25px; border-radius: 14px; }
.mono-badge.round.lg { border-radius: 50%; }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  transition: border-color .14s, box-shadow .14s, transform .14s; display: block; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card .nm { font-weight: 650; font-size: 15.5px; color: var(--ink); }
a.card:hover .nm { color: var(--accent); }
.card .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.card .meta { font-size: 12px; color: var(--muted); margin-top: 11px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- hero ---------- */
/* position + z-index so the search autocomplete (which overflows the hero) paints
   above the following page sections, which are later siblings in the DOM. */
.hero { padding: 30px 0 8px; text-align: center; position: relative; z-index: 20; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); max-width: 15ch; margin: 0 auto .28em; letter-spacing: -.028em; font-weight: 500; line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero .lead { font-size: 20px; max-width: 56ch; margin: 0 auto; }
.bigsearch { max-width: 620px; margin: 26px auto 12px; position: relative; z-index: 40; }
.bigsearch input { width: 100%; height: 58px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--card); padding: 0 20px 0 52px; font-size: 17px; font-family: var(--sans); box-shadow: var(--shadow-sm); }
.bigsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bigsearch .mag { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.bigsearch .ac { top: calc(100% + 7px); }
.suggests { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; justify-content: center; }
.suggests .lbl { font-size: 13px; color: var(--muted); margin-right: 2px; }

.statbar { display: flex; gap: 8px; justify-content: center; margin: 36px 0 6px; flex-wrap: wrap; }
.statbar .s { text-align: center; padding: 0 26px; position: relative; }
.statbar .s + .s::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.statbar .s b { font-family: var(--display); font-weight: 500; font-size: 38px; display: block; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.statbar .s span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 9px; font-weight: 500; }

/* ---------- entity page ---------- */
.entity-head { display: flex; gap: 18px; align-items: flex-start; }
.entity-head .body { flex: 1; min-width: 0; }
.entity-head h1 { margin: 6px 0 8px; }
.entity-head .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.socials a { font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); }
.socials a:hover { color: var(--accent); border-color: var(--accent); }

.cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; align-items: start; }
.aside { position: sticky; top: 78px; }
.aside .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.aside .box h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; font-weight: 650; }
.aside .kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.aside .kv:last-child { border-bottom: 0; }
.aside .kv .k { color: var(--muted); }
.aside .kv span:last-child, .aside .kv a { color: var(--ink); text-align: right; font-weight: 500; }
.aside .kv a:hover { color: var(--accent); }

/* rows */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 15px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); transition: border-color .12s, box-shadow .12s, transform .12s; }
a.row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateX(2px); }
a.row:hover .nm { color: var(--accent); }
.row .body { flex: 1; min-width: 0; }
.row .nm { font-weight: 600; color: var(--ink); }
.row .sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.row .right { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }

/* directory rows */
.dir-list { display: flex; flex-direction: column; gap: 10px; max-width: 960px; }
.dir-row { display: flex; gap: 14px; padding: 15px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); align-items: flex-start; transition: border-color .12s, box-shadow .12s; }
.dir-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.dir-logo { flex: none; }
.dir-body { min-width: 0; flex: 1; }
.dir-nm { font-weight: 650; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dir-nm a { color: var(--ink); }
.dir-nm a:hover { color: var(--accent); }
.dir-meta { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dir-meta a { color: var(--ink-2); }
.dir-meta a:hover { color: var(--accent); }
.dir-meta .dot-sep { opacity: .45; }
.dir-founders { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.dir-founders a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.dir-founders a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 650;
  background: var(--paper-2); cursor: pointer; user-select: none; white-space: nowrap; }
table.data th[data-sort]::after { content: ' ↕'; opacity: .35; font-size: 10px; }
table.data th.asc::after { content: ' ↑'; opacity: .9; color: var(--accent); }
table.data th.desc::after { content: ' ↓'; opacity: .9; color: var(--accent); }
table.data td { color: var(--ink-2); }
table.data td a { color: var(--ink); font-weight: 500; }
table.data td a:hover { color: var(--accent); }
table.data tbody tr:hover td { background: var(--paper); }
table.data td.num { font-family: var(--mono); text-align: right; }
.table-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.table-tools input.filter { flex: 1; min-width: 200px; max-width: 340px; height: 40px; border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 0 14px; font-size: 14.5px; background: var(--card); font-family: var(--sans); }
.table-tools input.filter:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); font-weight: 500;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 12px; background: var(--card); }
.dl:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- tile grid ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .12s, box-shadow .12s, transform .12s; }
.tile:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.tile-nm { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.tile:hover .tile-nm { color: var(--accent); }
.tile-n { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- career timeline ---------- */
.tline { margin-top: 6px; }
.tl-item { display: grid; grid-template-columns: 52px 22px 1fr; align-items: start; }
.tl-year { font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; padding: 18px 12px 0 0; white-space: nowrap; }
.tl-line { position: relative; align-self: stretch; }
.tl-line::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item:first-child .tl-line::before { top: 20px; }
.tl-item:last-child .tl-line::before { bottom: calc(100% - 26px); }
.tl-dot { position: absolute; left: 4px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); }
.tl-card { display: block; padding: 13px 16px; margin: 7px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .12s, box-shadow .12s; }
.tl-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.tl-nm { font-weight: 650; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink); }
.tl-card:hover .tl-nm { color: var(--accent); }
.tl-sub { font-size: 13px; color: var(--muted); margin-top: 3px; display: block; }

/* ---------- lineage tree ---------- */
.tree { display: flex; flex-direction: column; gap: 10px; }
.tree .member { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tree .member > .m-head { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.tree .member .m-head .nm { font-weight: 650; }
.tree .member .m-head .role { font-size: 12px; color: var(--muted); margin-left: auto; }
.tree .branches { padding: 0 15px 13px 61px; display: flex; flex-wrap: wrap; gap: 8px; }
.tree .branch { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; }
.tree .branch:hover { border-color: var(--accent); color: var(--accent); }
.tree .branch .yr { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- graph ---------- */
.graph-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; background: var(--card); overflow: hidden; }
svg.graph { width: 100%; height: auto; display: block; }
.graph-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.graph-wrap .fg-hint { position: absolute; right: 14px; bottom: 11px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); pointer-events: none; opacity: .75; }
.fgraph { position: relative; }
svg.fg-live { width: 100%; height: auto; display: block; cursor: grab; touch-action: manipulation; }
svg.fg-live.grabbing { cursor: grabbing; }
.fg-edge { stroke: var(--line-2); stroke-width: 1.1; opacity: .6; transition: stroke .15s, opacity .15s, stroke-width .15s; }
.fg-edge.hl { stroke: var(--accent); opacity: 1; stroke-width: 1.9; }
.fg-node { cursor: pointer; }
.fg-node circle { transition: stroke-width .12s, filter .12s; }
.fg-node:focus { outline: none; }
.fg-label { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-2); pointer-events: none; user-select: none; }
.fg-label-center { font-weight: 700; fill: var(--accent); font-size: 15px; }
.fg-node.hl circle { stroke-width: 2.6; filter: drop-shadow(0 1px 5px rgba(176,83,15,.3)); }
.fg-node.hl .fg-label { fill: var(--ink); font-weight: 650; }
.fg-focus .fg-node:not(.hl) { opacity: .22; }
.fg-focus .fg-edge:not(.hl) { opacity: .1; }
.fg-tip { position: absolute; pointer-events: none; z-index: 6; background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: var(--r-sm); font-size: 12.5px; white-space: nowrap; max-width: 260px;
  transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .1s; box-shadow: var(--shadow); }
.fg-tip.on { opacity: 1; }
.fg-tip b { display: block; font-size: 13px; font-weight: 650; }
.fg-tip span { color: #c9c3b6; font-size: 11.5px; }

/* ---------- callout / forms / misc ---------- */
.callout { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line-2));
  border-radius: var(--r); padding: 14px 18px; font-size: 15px; color: var(--ink-2); }
.callout strong { color: var(--ink); }

.form { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: var(--r); font-size: 15px; font-family: var(--sans); background: var(--card); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; }
button.btn, .btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  border: 0; border-radius: var(--r); padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--sans); transition: background .12s; }
button.btn:hover, .btn:hover { background: var(--accent-2); }
.btn.ghost { background: var(--card); color: var(--ink-2); border: 1px solid var(--line-2); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); background: var(--card); }
.flash { background: #e9f2ec; border: 1px solid #bdd9c6; color: var(--green); padding: 13px 16px; border-radius: var(--r); margin-bottom: 22px; }

.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .4; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .mono-badge { margin: 0 auto 16px; }

.cols-list { columns: 3; column-gap: 28px; }
.cols-list a { display: block; padding: 3px 0; break-inside: avoid; }
.note { font-size: 13px; color: var(--muted); }

/* pagination */
.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 30px 0 8px; }
.pg { font-size: 14px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--ink-2); min-width: 42px; text-align: center; background: var(--card); font-weight: 500; }
a.pg:hover { border-color: var(--accent); color: var(--accent); }
.pg.cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.pg.gap { border: 0; background: none; padding: 9px 4px; min-width: 0; }
.pg.disabled { opacity: .4; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 52px; padding: 44px 0; background: var(--paper-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer .about { font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.6; }
.site-footer .about .brand { margin-bottom: 12px; }
.site-footer .col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; font-weight: 650; }
.site-footer .col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 4px 0; }
.site-footer .col a:hover { color: var(--accent); }

/* ---------- connection path finder ---------- */
.pf-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; }
.pf-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; font-family: var(--sans); }
.pf-pick { position: relative; }
.pf-pick input { width: 100%; height: 48px; border: 1px solid var(--line-2); background: var(--paper);
  border-radius: var(--r); padding: 0 14px; font-size: 16px; font-family: var(--sans); color: var(--ink); }
.pf-pick input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pf-pick .ac { z-index: 80; }
.pf-arrow { font-size: 22px; color: var(--accent); padding-bottom: 12px; }
@media (max-width: 640px) { .pf-grid { grid-template-columns: 1fr; } .pf-arrow { display: none; } }

.pathchain { max-width: 560px; margin-top: 26px; }
.pathchain .pc-person { border-color: var(--line-2); }
.pathchain .pc-person .nm { font-size: 18px; }
.pc-link { width: 2px; height: 22px; margin-left: 35px; background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px); opacity: .6; }
.pc-company { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line-2)); border-radius: 100px;
  background: var(--accent-soft); font-family: var(--display); font-weight: 500; font-size: 15.5px; color: var(--ink); }
.pc-company:hover { border-color: var(--accent); color: var(--accent); }
.pc-company .pc-via { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.pc-company .pc-yr { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- editorial name treatment ---------- */
.dir-nm a, .tl-nm, .card .nm, .row .nm { font-family: var(--display); letter-spacing: -.01em; }
.dir-nm { font-weight: 500; font-size: 19px; }
.tl-nm { font-weight: 500; font-size: 18.5px; }
.card .nm { font-weight: 500; font-size: 17px; }
.row .nm { font-weight: 500; }
.aside .box h3, .site-footer .col h4 { font-family: var(--sans); }

/* ---------- staggered load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  main .wrap > * { animation: fade-rise .5s cubic-bezier(.2,.7,.2,1) both; }
  main .wrap > *:nth-child(1) { animation-delay: .02s; }
  main .wrap > *:nth-child(2) { animation-delay: .09s; }
  main .wrap > *:nth-child(3) { animation-delay: .15s; }
  main .wrap > *:nth-child(4) { animation-delay: .21s; }
  main .wrap > *:nth-child(n+5) { animation-delay: .26s; }
}
@keyframes fade-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; gap: 22px; }
  .aside { position: static; }
}
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-list { columns: 2; }
}
@media (max-width: 760px) {
  .site-header .wrap { gap: 10px; }
  .desktop-nav, .hsearch { display: none; }
  .m-only { display: grid; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 26px; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  main { padding: 24px 0 52px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .cols-list { columns: 1; }
  .hero { padding: 8px 0 2px; }
  .hero h1 { font-size: clamp(29px, 8.5vw, 40px); }
  .hero .lead { font-size: 16.5px; }
  .bigsearch { margin: 18px auto 10px; }
  .bigsearch input { height: 54px; font-size: 16px; }
  .statbar { gap: 8px 4px; }
  .statbar .s { flex: 1 0 40%; padding: 0 8px; }
  .statbar .s b { font-size: 25px; }
  .section { margin-top: 34px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tree .branches { padding-left: 15px; }
}
