/* About page, 2026-11 Liquid Glass refresh. Loaded after style.css and pages.css (which keep the older About rules
   this file builds on). Big text-only head, four quick-fact tiles, a timeline for the experience, glass cards for
   the other sections, and a sticky sidebar (On this page, languages and expertise, the night "Let's talk." card).
   Glass tokens (--glass-*, --lens-*) come from style.css. */

main.page.about { max-width: 1100px; padding-bottom: 150px; }   /* room before the funky zone's "keep scrolling" hint, which starts 130px up (funk.css: .funk-stretch) */

/* ---------- Head: big title + lead, no photo (shared with the other wide pages: main.page.wide .page-head in pages.css) ---------- */
main.about .page-head { margin-bottom: 0; }

/* ---------- Quick facts: four glass tiles ---------- */
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; }
@media (min-width: 900px) { .about-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.about-facts > div, main.about .entry-body, main.about .side-toc, main.about .side-skills {
  background: linear-gradient(160deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
.about-facts > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 24px; }
.about-facts dt, main.about .section-kicker, main.about .side-title, main.about .entry-education .entry-when, main.about .entry-volunteering .entry-when {
  margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.about-facts dd { margin: 0; font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 479px) { .about-facts > div { padding: 14px 16px; } .about-facts dd { font-size: 0.98rem; } }

/* ---------- Sections ---------- */
main.about .about-layout { margin-top: 72px; }
main.about .section { margin-top: 72px; }
main.about .about-main > .section:first-child { margin-top: 0; }
main.about .section-kicker { margin-bottom: 8px; }
main.about .section > h2 { margin: 0 0 20px; padding: 0; border: 0; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
.entries { display: flex; flex-direction: column; gap: 16px; }

/* Every entry: a glass card (the old divider lines and the date column are gone) */
main.about .entry { display: block; padding: 0; border: 0; }
main.about .entry-body {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 26px; border-radius: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
main.about .entry-body:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 24px 44px -18px rgba(20, 33, 61, 0.45); }
@media (prefers-color-scheme: dark) { main.about .entry-body:hover { box-shadow: inset 0 1px 0 var(--glass-edge), 0 24px 44px -18px rgba(0, 0, 0, 0.8); } }
main.about .entry h3 { margin: 2px 0 0; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; }
main.about .entry .org { margin: 0; color: var(--ink); font-size: 0.97rem; font-weight: 600; }
main.about .entry p { margin: 4px 0 0; font-size: 0.97rem; line-height: 1.55; }
main.about .entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
main.about .entry-more { margin-top: auto; padding-top: 6px; }
main.about .entry-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 0.94rem; font-weight: 700; text-decoration: none; }
main.about .entry-link svg { width: 16px; height: 16px; flex: none; }
main.about .entry-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Experience: a timeline. Vertical line, one dot per role; the current role glows and has a "Now" pill */
.entries-experience { position: relative; }
.entries-experience::before {
  content: ""; position: absolute; left: 11px; top: 34px; bottom: 60px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line));
}
main.about .entry-experience { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 20px; align-items: start; }
.tl-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin: 30px 0 0 6px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--line); }
.is-now .tl-dot {
  background: color-mix(in srgb, var(--accent) 70%, #14213d);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 14px var(--accent);
}
main.about .entry-experience .entry-when {
  padding: 4px 12px; border-radius: 999px; color: var(--ink); font-size: 0.82rem; font-weight: 700;
  background: linear-gradient(180deg, var(--lens-top), var(--lens-bottom)); box-shadow: inset 0 1px 0 var(--glass-edge), var(--lens-shadow);
}
.entry-now { padding: 3px 11px; border-radius: 999px; background: var(--accent); color: #0f1626; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 479px) {
  main.about .entry-experience { gap: 12px; grid-template-columns: 18px minmax(0, 1fr); }
  .entries-experience::before { left: 8px; }
  .tl-dot { margin-left: 3px; }
  main.about .entry-body { padding: 20px; }
}

/* Education and volunteering: two columns of cards. Awards: full-width rows, the award's name first and the year in a small pill */
@media (min-width: 640px) {
  .entries-education, .entries-volunteering { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
main.about .entry-education h3, main.about .entry-volunteering h3 { font-size: 1.1rem; }
main.about .entry-awards h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
main.about .entry-awards .entry-when {
  padding: 4px 12px; border-radius: 999px; color: var(--ink); font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  background: linear-gradient(180deg, var(--lens-top), var(--lens-bottom)); box-shadow: inset 0 1px 0 var(--glass-edge), var(--lens-shadow);
}
@media (min-width: 640px) {
  /* Name, organization and text on the left; the year pill on the right */
  main.about .entry-awards .entry-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; align-content: start; }
  main.about .entry-awards .entry-body > * { grid-column: 1; }
  main.about .entry-awards .entry-tags { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: 2px; }
}

/* ---------- Sidebar ---------- */
main.about .side-block + .side-block { border-top: 0; }   /* no divider lines: each block is its own card (their padding comes from the card rules below) */
@media (min-width: 900px) {
  main.about .about-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  main.about .about-side { gap: 16px; }
  /* On this page: a glass card with a raised lens on the current section */
  main.about .side-toc { padding: 16px; border-radius: 28px; }
  main.about .side-toc .side-title { margin: 4px 0 8px 16px; }
  main.about .side-toc ul { gap: 2px; }
  main.about .side-toc a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; font-weight: 600; }
  main.about .side-toc a[aria-current="true"] {
    color: var(--ink); font-weight: 700;
    background: linear-gradient(180deg, var(--lens-top), var(--lens-bottom)); box-shadow: inset 0 1px 0 var(--glass-edge), var(--lens-shadow);
  }
}
main.about .side-skills { padding: 24px; border-radius: 28px; }
main.about .side-skills .side-title { margin-bottom: 14px; }
main.about .bilingual { margin: 0 0 14px; padding: 0; background: none; box-shadow: none; color: var(--ink); border-radius: 0; }
main.about .bilingual .codes span {
  padding: 3px 9px; border-radius: 8px; font-size: 0.8rem;
  background: linear-gradient(180deg, var(--lens-top), var(--lens-bottom)); box-shadow: inset 0 1px 0 var(--glass-edge), var(--lens-shadow);
}
main.about .bilingual small { color: var(--muted); font-size: 0.84rem; }
main.about .chips li { background: color-mix(in srgb, var(--accent) 24%, transparent); box-shadow: none; font-size: 0.875rem; }
@media (max-width: 899px) { main.about .side-skills { margin-top: 8px; } }

/* "Let's talk." as the night card (same as the home page's) */
main.about .about-side .side-cta {   /* .about-side: beats the glass panel rule in style.css (:root :is(...)) */
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 28px; border: 0; border-radius: 28px; background: #0f1626; color: #ffffff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 50px -22px rgba(15, 22, 38, 0.6);
}
@media (prefers-color-scheme: dark) { main.about .about-side .side-cta { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px -22px rgba(0, 0, 0, 0.8); } }
main.about .side-cta::before, main.about .side-cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
main.about .side-cta::before { top: -160px; left: -120px; width: 360px; height: 360px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 65%, transparent), transparent 68%); }
main.about .side-cta::after { bottom: -200px; right: -120px; width: 400px; height: 400px; background: radial-gradient(circle, color-mix(in srgb, var(--glow-2) 85%, #0f1626), transparent 68%); opacity: 0.85; }
main.about .side-cta h2 { margin: 0; color: #ffffff; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
main.about .side-cta p { margin: 0; color: #e4e9f5; }
main.about .side-cta .btn-pill {
  display: inline-flex; align-items: center; min-height: 46px; margin-top: 10px; padding: 0 24px; border: 0;
  background: #ffffff; color: #14213d; font-weight: 700; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); filter: none;
}
main.about .side-cta .btn-pill:hover { background: #eef3fa; color: #14213d; }
main.about .side-cta .btn-pill:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  main.about .entry-body { transition: none; }
  main.about .entry-body:hover { transform: none; }
}
