/* Founder page. Tokens and shared parts come from sk.css. Board: Founder 1440, 1440 dark, 390, 390 dark. */
.founder { padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 900px) { .founder { max-width: calc(var(--content) + 2 * var(--gutter-desk)); padding-top: 40px; padding-bottom: 96px; } }
.fname { font-size: 46px; line-height: 1; }
.intro { margin: 10px 0 0; font-size: 18px; line-height: 1.45; color: var(--slate); }
@media (min-width: 900px) { .fname { font-size: 68px; } }
.grp { margin-top: 48px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.grp h2 { font-size: 30px; }
.lede { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--slate); }
.why { margin: 12px 0 0; max-width: 680px; font-size: 21px; line-height: 1.55; }

/* route and globe */
.rgrid { display: flex; flex-direction: column; }
.gside { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 12px -16px 0; padding: 8px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.gside canvas { flex: none; width: 76px; height: 76px; }
.gtext { flex: 1 1 0; min-width: 0; }
.gtext .lede { margin: 0; }
.gcap { margin: 0; font-size: 16px; font-weight: 700; }
.rpl { min-height: var(--tap); min-width: var(--tap); padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rpl[hidden] { display: none; }
@media (min-width: 900px) {
  .rgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
  .route { grid-column: 1; grid-row: 1; }
  .gside { grid-column: 2; grid-row: 1; top: 24px; flex-direction: column; justify-content: flex-start; gap: 6px; margin: 20px 0 0; padding: 0; border-bottom: 0; background: transparent; }
  .gside canvas { width: 300px; height: 300px; }
  .gtext { flex: none; text-align: center; }
  .gnow { display: none; }
}
.route { list-style: none; margin: 20px 0 0; padding: 0; }
.stop { position: relative; padding: 0 0 30px 76px; min-height: 60px; }
.stop .rail { top: 44px; }
.stf { position: absolute; left: 12px; top: 2px; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); }
.stf.now { background: var(--ochre); }
.sth { font-size: 30px; line-height: 1.1; }
.sth .sub { font-family: var(--font-text); font-size: 14px; font-weight: 500; color: var(--slate); }
.stop[data-cur] .sth .pl { color: var(--ochre); }
.it { max-width: 680px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.it:last-child { border-bottom: 0; }
.it b { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; }
.it .meta { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--slate); }
.res { margin: 8px 0 0; padding: 0; list-style: none; }
.res li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.5; }
.res li + li { margin-top: 4px; }
.res li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }

/* education */
.edu { margin-top: 10px; }
.erow { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.erow b { font-size: 17px; }
.erow span { font-size: 15px; line-height: 1.45; color: var(--slate); }
.erow .hon { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .erow { grid-template-columns: 300px minmax(0, 1fr) 300px; align-items: baseline; }
  .erow .hon + .hon { grid-column: 3; }
}

/* languages on a CEFR rail */
.lgrid { margin-top: 14px; }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 6px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.lrow b { font-size: 17px; }
.lhead { padding: 0 0 4px; border-bottom: 0; }
.lhead > span:first-child, .lhead > span:last-child { display: none; }
@media (min-width: 900px) {
  .lrow { grid-template-columns: 140px 420px minmax(0, 1fr); }
  .lhead > span:first-child, .lhead > span:last-child { display: block; }
}
.lscale { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; justify-items: center; height: 28px; }
.lhead .lscale { height: auto; }
.lv { font-size: 12px; font-weight: 600; color: var(--slate); }
.lscale::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.lhead .lscale::before { display: none; }
.lbar { position: absolute; left: calc(100% / 14); top: 50%; height: 4px; margin-top: -2px; width: calc((100% - 100% / 7) * var(--w)); background: var(--ink); border-radius: 2px; transform-origin: left; }
.ld { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fade); background: var(--paper); }
.ld.full { border-color: var(--ink); background: var(--ink); }
.ld.nat { width: 24px; height: 24px; border-color: var(--ochre); background: var(--ochre); }
.ld.half { border-color: var(--ink); background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%); }
.ld.goal { border: 2px dashed var(--ochre); }
.llab { font-size: 15px; color: var(--slate); }
.lgoal { display: inline-block; margin-left: 10px; padding: 0 6px; border: 1px dashed var(--ochre); border-radius: 3px; font-size: 13px; color: var(--ink); }
.lgrid.go .lbar { animation: lgrow .9s var(--ease) var(--d) both; }
.lgrid.go .ld { animation: lpop .4s var(--ease) var(--d) both; }
@keyframes lgrow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes lpop { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lgrid.go .lbar, .lgrid.go .ld { animation: none; } }

/* agents (rendered only when SHOW_AGENTS is true in founder.js) */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .agrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.agb { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: var(--tap); padding: 12px 4px 10px; border: 1px solid transparent; border-radius: var(--radius-lg); background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.agb:hover { background: var(--soft); }
.agb[aria-pressed=true] { background: var(--soft); border-color: var(--line); }
.agb .art { overflow: visible; transition: transform var(--t-fast) var(--ease); }
.agn { font-size: 14px; font-weight: 600; }
.dd { transition: transform .45s var(--ease); }
.agb.burst .dd { transform: translate(var(--dx), var(--dy)); }
.agb.tapA .art { animation: wigA .55s var(--ease); }
.agb.tapB .art { animation: wigB .55s var(--ease); }
@keyframes wigA { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.08); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } 100% { transform: none; } }
@keyframes wigB { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.08); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } 100% { transform: none; } }
.agline { min-height: 48px; margin: 12px 0 0; font-size: 16px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .agb .art, .agb:hover .art { animation: none; transform: none; } .dd { transition: none; } }

.contact { margin: 10px 0 0; }
.contact a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 18px; font-weight: 600; }
