/* The library: founder videos, applications and answers. A video-site shell (top search, left sidebar) borrowed from
   YouTube, Vimeo and TED; thumbnails follow one template, big words from the founder's own one-liner on brand orange. */
:root {
  --ink: #0f0f0f; --muted: #606060; --line: #ececec; --chip: #f2f2f2; --orange: #ff5b1f; --thumb: #ff8a4c;
  --text: "Figtree", system-ui, sans-serif; --display: "Bricolage Grotesque", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: #c2410c; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lb-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.lb-logo { display: flex; align-items: center; width: 216px; flex: none; }
.lb-logo img { display: block; height: 26px; width: auto; }
.lb-search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.lb-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 15px; }
.lb-search svg { flex: none; }
.lb-cta { margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.lb-cta:hover { color: #fff; background: #2a2a2a; }

.lb-wrap { display: flex; }
.lb-side { display: flex; flex-direction: column; gap: 2px; width: 240px; flex: none; padding: 16px 12px; border-right: 1px solid #f0f0f0; position: sticky; top: 64px; align-self: flex-start; height: calc(100vh - 64px); overflow-y: auto; }
.lb-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.lb-side a:hover { background: var(--chip); color: var(--ink); }
.lb-side a[aria-current="page"] { background: var(--chip); font-weight: 600; }
.lb-side a span { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.lb-side hr { width: calc(100% - 16px); margin: 12px 8px; border: 0; border-top: 1px solid var(--line); }
.lb-side .lb-k { margin: 4px 12px 6px; font-size: 14px; font-weight: 600; }
.lb-side .lb-note { display: block; margin: 4px 12px; padding: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.lb-side .lb-note:hover { background: none; color: #c2410c; }

.lb-main { flex: 1; min-width: 0; padding: 24px 32px 72px; }
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lb-head h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.lb-head p { margin: 6px 0 0; color: var(--muted); }
.lb-sort { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px #dcdcdc; font-size: 14px; color: var(--muted); }
.lb-sort select { border: 0; background: none; font-weight: 600; font-size: 14px; outline: none; color: var(--ink); cursor: pointer; }

.lb-chips { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.lb-chip { padding: 8px 12px; border-radius: 8px; border: 0; background: var(--chip); font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; }
.lb-chip:hover { background: #e5e5e5; }
.lb-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lb-pill { padding: 9px 14px; border-radius: 999px; border: 1px solid #d6d6d6; background: #fff; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; }
.lb-pill span { margin-left: 4px; font-weight: 500; color: var(--muted); }
.lb-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lb-pill[aria-pressed="true"] span { color: #cfcfcf; }

/* the thumbnail template */
.th { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--thumb); color: var(--ink); }
.th-hook { position: absolute; left: 6%; top: 9%; right: 10%; margin: 0; font: 800 clamp(22px, 2.4vw, 34px)/0.98 var(--display); letter-spacing: -0.02em; }
.th-who { position: absolute; left: 6%; bottom: 8%; margin: 0; font-size: 12.5px; line-height: 1.3; }
.th-who b { font-weight: 700; }
.th-badge { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 5px; background: rgba(15,15,15,0.85); color: #fff; font-size: 12px; font-weight: 600; }
.th-play { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }

.lb-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.card:hover .th { box-shadow: 0 0 0 3px var(--ink); }
.card-t { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.card-l { margin: 3px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.card-m { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

.lb-list { margin-top: 22px; display: grid; gap: 22px; max-width: 1060px; }
.row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; scroll-margin-top: 84px; }
.row .th-hook { font-size: 28px; }
.row-t { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.row-m { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.row-x { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #3c3c3c; }
.row-x b { color: var(--ink); font-weight: 600; }
.row-a { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.row-a a, .row-a button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #cfcfcf; font-size: 13px; }
.row-a a:hover, .row-a button:hover { color: var(--ink); }
.row-more { margin-top: 12px; display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fafafa; box-shadow: inset 0 0 0 1px var(--line); }
.row-more p { margin: 0; font-size: 14px; line-height: 1.55; }
.row-more b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

.lb-q { margin-top: 28px; max-width: 1080px; }
.lb-qh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lb-qh h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.lb-qh p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.lb-ans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ans { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.ans-i { width: 40px; height: 40px; border-radius: 50%; background: var(--thumb); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.ans-h { margin: 0; font-size: 14px; }
.ans-h span { color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 5px; font-size: 12px; font-weight: 600; background: #ececec; }
.tag.yes { background: var(--ink); color: #fff; }
.ans blockquote { margin: 6px 0 0; font-size: 15px; line-height: 1.55; }
.ans a { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); }

.lb-empty { margin-top: 24px; color: var(--muted); }
.lb-count { margin-top: 28px; font-size: 14px; color: var(--muted); }
.lb-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 900px; }

/* the player */
.lb-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(15,15,15,0.82); }
.lb-modal[hidden] { display: none; }
.lb-player { width: min(1000px, 100%); background: #fff; border-radius: 16px; overflow: hidden; }
.lb-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.lb-info h2 { margin: 0; font-size: 18px; }
.lb-info p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.lb-info .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lb-btn { padding: 9px 14px; border-radius: 999px; border: 0; background: var(--chip); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.lb-btn.dark { background: var(--ink); color: #fff; }
.lb-btn.dark:hover { color: #fff; }

@media (max-width: 1100px) { .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lb-ans { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .lb-side { display: none; }
  .lb-top { gap: 12px; padding: 0 16px; }
  .lb-logo { width: auto; }
  .lb-main { padding: 20px 16px 56px; }
  .lb-tabs { display: flex !important; }
}
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } .lb-search { display: none; } }
@media (max-width: 560px) { .lb-grid { grid-template-columns: 1fr; } }
.lb-tabs { display: none; gap: 6px; margin: 0 0 16px; overflow-x: auto; }
.lb-tabs a { padding: 8px 12px; border-radius: 8px; background: var(--chip); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.lb-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }

/* real thumbnails, logos and the video card's channel row */
.th-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-img .th-badge { z-index: 1; }
.th-img .th-play { z-index: 1; }
.vcard { display: flex; flex-direction: column; gap: 10px; }
.vmeta { display: flex; gap: 12px; align-items: flex-start; }
.lg { flex: none; display: block; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lg-i { display: grid; place-items: center; background: var(--thumb); box-shadow: none; font-weight: 700; font-size: 15px; color: var(--ink); }
.row-h { display: flex; gap: 10px; align-items: flex-start; }
.row-h .lg { margin-top: 1px; }
.lb-frame-x { aspect-ratio: auto; height: min(78vh, 680px); background: #fff; }

/* the logo card: reusable thumbnail for any company without a video */
.lt { background: linear-gradient(135deg, var(--g1), var(--g2)); isolation: isolate; }
.lt-glow { position: absolute; inset: -20%; display: grid; place-items: center; z-index: -1; filter: blur(34px) saturate(1.4); opacity: 0.55; }
.lt-glow img { width: 70%; height: 70%; object-fit: contain; }
.lt-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 15, 15, 0.16) 0.9px, transparent 1.3px); background-size: 6px 6px; -webkit-mask-image: linear-gradient(160deg, transparent 20%, #000 95%); mask-image: linear-gradient(160deg, transparent 20%, #000 95%); }
.lt-tile { position: absolute; left: 50%; top: 44%; width: 30%; aspect-ratio: 1; max-width: 96px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 22%; background: #fff; box-shadow: 0 10px 30px rgba(15, 15, 15, 0.18), 0 0 0 1px rgba(15, 15, 15, 0.06); overflow: hidden; }
.lt-tile img { width: 72%; height: 72%; object-fit: contain; }
.lt-tile b { font: 800 34px/1 var(--display); color: var(--ink); }
.lt-name { position: absolute; left: 12px; bottom: 9px; margin: 0; max-width: calc(100% - 110px); font-size: 12.5px; color: rgba(15, 15, 15, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-name b { color: var(--ink); }

/* brand icons from icons.svg: 16px pixel grid, keep at 16/32/48/64 */
.bi { flex: none; display: block; shape-rendering: crispEdges; }
