/* Org chart layout (tokens, top bar, dialog card, motion and Lenis live in base.css). The two founders as one band on top, a rail down to one column per function, each person a button that opens their card. */
:root { --gold-line: rgba(206,168,48,0.55); }
body { padding-block: 0 96px; }
.wrap { max-width: 1160px; margin: 0 auto; }

.head { display: grid; gap: 14px; padding: 52px 4px 30px; justify-items: start; }
h1 { font: 500 clamp(32px, 4.6vw, 52px)/1.14 var(--display); font-stretch: 118%; letter-spacing: -0.01em; margin: 0; text-wrap: balance; max-width: 18ch; background: var(--head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font: 400 16px/1.6 var(--body); color: var(--ink-2); margin: 0; max-width: 62ch; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12.5px/1.3 var(--body); color: var(--ink-3); }
.legend i { display: inline-block; width: 22px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; border: 1px solid var(--wire); }
.legend i.f { border-color: var(--gold-line); }
.legend i.dl { height: 0; width: 22px; border: 0; border-top: 1px dashed var(--wire); border-radius: 0; vertical-align: 3px; }

/* the chart */
.chart-scroll { overflow-x: auto; padding-bottom: 6px; }
.chart { min-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
.fa { grid-column: 1 / span 2; justify-self: center; }
.fj { grid-column: 3; justify-self: center; }
.conn { position: relative; height: 48px; }
.conn-a { grid-column: 1 / span 2; }
.conn-j { grid-column: 3; }
.conn-a::before { content: ""; position: absolute; left: 50%; top: 0; height: 24px; border-left: 1px dashed var(--wire); }
.conn-a::after { content: ""; position: absolute; left: calc((100% - 16px) / 4); right: calc((100% - 16px) / 4); top: 24px; height: 24px; border: 1px dashed var(--wire); border-bottom: 0; border-radius: 10px 10px 0 0; }
.conn-j::before { content: ""; position: absolute; left: 50%; top: 0; height: 48px; border-left: 1px dashed var(--wire); }
.col { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--r-card); background: var(--block); border: 0.5px solid var(--line-soft); }
.col-head { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 2px 0 6px; }
.col-head h2 { margin: 0; font: 500 18px/1.2 var(--display); font-stretch: 118%; color: var(--ink); }
.col-head small { font: 600 11.5px/1.3 var(--body); color: var(--gold); }

.person { width: 100%; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; text-align: left; padding: 14px 14px 14px 14px; border-radius: var(--r-block); background: var(--card); border: 1px solid var(--line); transition: border-color 0.15s, background-color 0.15s; }
.person:hover { border-color: rgba(255,255,255,0.28); }
.person.f { width: auto; min-width: 300px; padding: 18px; border-radius: 20px; }
.rn { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); border: 0.5px solid rgba(255,255,255,0.28); font: 600 13px/1 var(--roman); color: var(--ink); letter-spacing: 0.04em; }
.f .rn { width: 44px; height: 44px; font-size: 15px; color: var(--gold); }
img.rn.ph { object-fit: cover; padding: 0; border-radius: 50%; }
.who { display: grid; gap: 3px; min-width: 0; }
.who b { font: 500 15px/1.2 var(--display); font-stretch: 112%; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f .who b { font-size: 18px; font-stretch: 118%; }
.who span { font: 500 12.5px/1.3 var(--body); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f .who span { color: var(--gold); }
.open { color: var(--ink-3); transition: color 0.15s, transform 0.15s; }
.person:hover .open { color: var(--gold); transform: translateX(2px); }

/* feedback loops: one loop diagram */
.flows { margin-top: 48px; display: grid; gap: 14px; }
.flows h2 { margin: 0; font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--display); font-stretch: 118%; color: var(--ink); text-wrap: balance; }
.flow-lede { margin: 0; max-width: 64ch; font: 400 15px/1.6 var(--body); color: var(--ink-2); text-wrap: balance; }
.loop-wrap { overflow-x: auto; padding: 18px; border-radius: var(--r-card); background: var(--block); border: 0.5px solid var(--line-soft); }
.loop { display: block; width: 100%; min-width: 760px; height: auto; }
.loop .node rect { fill: #0a1428; stroke: rgba(255,255,255,0.16); stroke-width: 1; }
.loop .node.idea > rect { fill: rgba(10,20,40,0.5); stroke: rgba(255,255,255,0.3); stroke-dasharray: 5 5; }
.loop .nt { font: 500 16px var(--display); font-stretch: 108%; fill: #ffffff; }
.loop .ns { font: 500 12.5px var(--body); fill: #7b7f8a; }
.loop .av circle { fill: #020918; stroke: rgba(255,255,255,0.28); stroke-width: 1; }
.loop .av text { font: 600 10.5px var(--roman); fill: #ffffff; text-anchor: middle; }
.loop .tag rect { fill: none; stroke: #7b7f8a; stroke-width: 0.8; stroke-dasharray: 3 2; }
.loop .tag text { font: 600 8.5px var(--body); letter-spacing: 1px; fill: #7b7f8a; text-anchor: middle; }
.loop .wires path { fill: none; stroke: #cea830; stroke-width: 1.4; marker-end: url(#ah); }
.loop .wire-idea { fill: none; stroke: rgba(255,255,255,0.45); stroke-width: 1.4; stroke-dasharray: 5 5; marker-end: url(#ahg); }
.loop .wl text { font: 600 10px var(--body); letter-spacing: 1.2px; fill: #7b7f8a; text-anchor: middle; }
.foot { margin-top: 40px; padding-top: 16px; border-top: 0.5px solid var(--line-soft); font: 400 12.5px/1.5 var(--body); color: var(--ink-3); }

/* person card */
.pc-top .rn { width: 56px; height: 56px; font-size: 19px; border-radius: 50%; }
.pc.f .rn { color: var(--gold); }
.pc-sec { display: grid; gap: 10px; padding-top: 16px; border-top: 0.5px solid var(--line-soft); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.list li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); font: 500 14.5px/1.45 var(--body); }
.list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }
.links { display: grid; gap: 8px; }
.link { display: block; font: 400 14px/1.45 var(--body); color: var(--ink-2); }
.link b { font-weight: 600; color: var(--ink); }
.link .vb { margin-left: 6px; vertical-align: 1px; }
.note { font: 400 12.5px/1.5 var(--body); color: var(--ink-3); }
