/* About page (about.html). Builds on projects/case.css. */
/* About page. Same tokens, 8px grid and corners as the case studies (projects/case.css); the rest is local to this page.
   Spacing: multiples of 8. Corners: 8 small, 16 cards and panels, 24 the big photo, pills for buttons and tags. */
main { padding-bottom: 0; }
.ab-sec { padding-top: var(--section); }
.ab-sec h2 { max-width: 24ch; }

/* Hero */
.ab-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: var(--s5); }
.ab-photo { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--soft); aspect-ratio: 1 / 1; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-hero h1 { margin-top: var(--s2); font-size: clamp(40px, 4.4vw, 64px); line-height: 1.06; }
.ab-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ab-hero h1 .li { display: block; }
.ab-hero .lede { margin-top: var(--s3); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; font-weight: 400; max-width: 44ch; color: var(--text); }
.ab-facts { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.ab-facts li { padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--rule); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--muted); }
.ab-cta { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s4); }
.ab-cta .btn.solid { background: var(--fg); color: var(--bg); }
.ab-cta .btn.solid:hover { background: none; color: var(--fg); }
@media (max-width: 800px) { .ab-hero { grid-template-columns: 1fr; gap: var(--s5); padding-top: var(--s3); } .ab-photo { max-width: 520px; border-radius: var(--r-m); } }

/* Experience */
.xp-head p:not(.kicker) { max-width: 56ch; color: var(--muted); font-size: 18px; line-height: 28px; margin: 0; }
.xp { margin-top: var(--s5); }
.xp-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: var(--s8) 0 var(--s2); border-bottom: 1px solid var(--rule); }
.xp-track { --row: 48px; position: relative; margin-right: var(--s7); }
.xp-axis { position: relative; height: 32px; }
.xp-axis::before, .xp-axis .fill { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rule); }
.xp-axis .fill { background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; z-index: 2; }
.xp-tick { position: absolute; bottom: 0; width: 1px; height: 8px; background: var(--ph-line); }
.xp-tick.q { height: 8px; background: var(--muted); }
.xp-tick span { position: absolute; bottom: 16px; left: 0; translate: -50% 0; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.xp-rows { position: relative; margin-top: var(--s2); }
.xp-play { position: absolute; left: 0; top: -16px; bottom: 0; width: 1px; background: var(--fg); opacity: .22; z-index: 1; pointer-events: none; }
.xp-role { position: absolute; height: var(--row); }
.xp-role .lbl { position: absolute; top: 0; left: 0; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; color: var(--fg); }
.xp-role .lbl small { font-weight: 500; color: var(--muted); font-size: 12px; }
.xp-role.r .lbl { left: auto; right: 0; text-align: right; }
.xp-role .b { position: absolute; left: 0; right: 0; top: 24px; height: 8px; border-radius: var(--r-pill); background: var(--tone, var(--fg)); transform-origin: 0 50%; }
.xp-role .dot { position: absolute; right: -8px; top: 20px; width: 16px; height: 16px; margin-top: 0; border-radius: 50%; background: var(--fg); }
.xp-role .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--fg); }
.xp-role .nowl { position: absolute; left: calc(100% + 16px); top: 20px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.xp-cards { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.xp-card { display: grid; grid-template-columns: 264px 1fr; gap: var(--s5); padding: var(--s6) 0; border-bottom: 1px solid var(--rule); }
.xp-card:last-child { border-bottom: 0; }
.xp-card .when b { display: flex; align-items: center; font-size: 15px; line-height: 24px; font-weight: 600; }
.xp-card .when span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.xp-card .sw { display: inline-block; flex: none; width: 8px; height: 8px; margin: 0 var(--s1) 0 0; border-radius: 50%; background: var(--tone, var(--fg)); }
.xp-card h3 { margin: 0; font-size: 22px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; }
.xp-card .org { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.xp-card ul { margin: var(--s3) 0 0; padding-left: 20px; display: grid; gap: var(--s1); max-width: 60ch; font-size: 16px; line-height: 26px; color: var(--text); }
.xp-card .btn { margin-top: var(--s3); }
.xp-card.cur h3::after { content: "Now"; margin-left: var(--s1); padding: 4px var(--s1); border-radius: var(--r-pill); background: var(--fg); color: var(--bg); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.xp-nowrow { display: none; }
.xp-vline { display: none; }
@media (max-width: 700px) {
  .xp-bar { display: none; }
  .xp-card .sw { display: none; }
  .xp { margin-top: var(--s4); }
  .xp-cards { position: relative; padding-left: var(--s5); }
  .xp-cards::before, .xp-vline { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--rule); }
  .xp-vline { display: block; background: var(--fg); transform: scaleY(0); transform-origin: 50% 0; z-index: 1; }
  .xp-card { position: relative; grid-template-columns: 1fr; gap: var(--s2); padding: 0 0 var(--s6); border-bottom: 0; }
  .xp-card::before { content: ""; position: absolute; left: -40px; top: 4px; z-index: 2; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fg); background: var(--bg); transition: background-color .3s; }
  .xp-card.on::before { background: var(--tone, var(--fg)); border-color: var(--tone, var(--fg)); }
  .xp-nowrow { display: flex; align-items: center; gap: var(--s1); position: relative; margin: 0 0 var(--s3) -40px; padding-left: var(--s5); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .xp-nowrow i { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); }
  .xp-nowrow i::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--fg); }
  .xp-nowrow i.ring { z-index: 0; }
}
@media (min-width: 701px) and (max-width: 900px) { .xp-card { grid-template-columns: 184px 1fr; gap: var(--s3); } }

/* Education */
.ed { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s5); }
.ed-item { padding: var(--s4); border-radius: var(--r-m); border: 1px solid var(--rule); background: var(--panel); }
.ed-item .dates { margin: 0 0 var(--s2); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ed-item h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.ed-item p:not(.dates) { margin: var(--s1) 0 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.certs { margin: var(--s8) 0 0; }
.certs h3 { margin: 0 0 var(--s1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.certs ul { margin: 0; padding: 0; list-style: none; }
.certs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 24px; }
.certs li span { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .ed { grid-template-columns: 1fr; } .ed-item { padding: var(--s3); } }

/* What I do */
.do { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s5); }
.do > div { padding: var(--s4); border-radius: var(--r-m); background: var(--soft); }
.do h3 { margin: 0 0 var(--s3); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 900px) { .do { grid-template-columns: 1fr; } .do > div { padding: var(--s3); } }

/* Tools: a marquee of the real logos */
.tools { margin-top: var(--s5); padding: 0; overflow: hidden; }
.tools-sec { padding-bottom: var(--s1); }
.tools .vp { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tools .run { display: flex; width: max-content; padding: var(--s2) 0 var(--s1); will-change: transform; }
.tools .set { display: flex; flex: none; gap: clamp(48px, 6vw, 80px); padding-right: clamp(48px, 6vw, 80px); }
.tool { display: grid; justify-items: center; gap: var(--s2); width: 96px; flex: none; }
.tool img { height: 48px; width: auto; max-width: 56px; object-fit: contain; }
.tool span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .tools .vp { width: auto; margin-left: 0; -webkit-mask-image: none; mask-image: none; }
  .tools .run { width: auto; flex-wrap: wrap; }
  .tools .set { flex-wrap: wrap; row-gap: var(--s4); padding-right: 0; }
  .tools .set[aria-hidden] { display: none; }
}

.site-end { margin-top: var(--section); }
