  /* Layout idea: a sticky identity rail with the booking call-to-action beside a quiet, dated résumé column.
     Palette shared with the booking site so the two read as one place. */
  :root {
    --paper: #f6f7fb;
    --card: #ffffff;
    --ink: #11131f;
    --muted: #596074;
    --rule: #e2e5ef;
    --accent: #4f46e5;
    --accent-ink: #4338ca;
    --accent-soft: #eceeff;
    --on-accent: #ffffff;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #0d0f1a; --card: #141729; --ink: #eef0fb; --muted: #a3a8be;
      --rule: #262a40; --accent: #4f46e5; --accent-ink: #a5b4fc; --accent-soft: #1e1b4b;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #0d0f1a; --card: #141729; --ink: #eef0fb; --muted: #a3a8be;
    --rule: #262a40; --accent: #4f46e5; --accent-ink: #a5b4fc; --accent-soft: #1e1b4b;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { text-wrap: balance; margin: 0; }
  a { color: var(--accent-ink); text-underline-offset: 3px; }
  a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 4px; }

  .page { max-width: 1080px; margin: 0 auto; padding: 56px 20px 88px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }

  /* identity rail */
  .rail { position: sticky; top: 40px; align-self: start; display: grid; gap: 22px; }
  .name { font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; }
  .role { margin: 8px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.4; }
  .summary { margin: 0; font-size: 0.97rem; color: var(--ink); }
  .cta { display: grid; gap: 4px; justify-items: start; }
  .cta a.book { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 1.0625rem; text-decoration: none; }
  .cta a.book:hover { background: var(--accent-ink); }
  .cta small { color: var(--muted); font-size: 0.82rem; }
  .links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.95rem; }
  .links a { display: inline-block; padding: 4px 0; font-weight: 550; }

  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
  .facts div { background: var(--card); padding: 12px 14px; }
  .facts b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .facts span { color: var(--muted); font-size: 0.8rem; line-height: 1.3; display: block; }

  /* résumé column */
  main { display: grid; gap: 56px; min-width: 0; }
  h2.section { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
  .when { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; padding-top: 5px; line-height: 1.4; }





  @media (max-width: 880px) {
    .page { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 36px; }
    .rail { position: static; }
    .name { font-size: 2rem; }
    .links { display: flex; flex-wrap: wrap; gap: 0 22px; }
    .links a { padding: 10px 0; }
  }
  @media print {
    :root { --paper: #fff; --card: #fff; --ink: #000; --muted: #333; --rule: #bbb; --accent-ink: #000; }
    .cta, footer .noprint { display: none; }
    .page { display: block; padding: 0; }
    .rail { position: static; margin-bottom: 18px; }
    .path > li { break-inside: avoid; padding: 12px 0; }
    a { color: #000; text-decoration: none; }
  }
  /* v2 additions: about-style sections */
  .intro { font-size: 1.35rem; line-height: 1.5; letter-spacing: -0.012em; max-width: 36em; margin: 0 0 8px; }
  .principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
  .principles li { counter-increment: p; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .principles li:last-child { border-bottom: 0; }
  .principles li::before { content: counter(p, decimal-leading-zero); color: var(--accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 3px; }
  .principles h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
  .principles p { grid-column: 2; margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
  .built { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
  .built > div { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; }
  .built h3 { font-size: 1rem; margin-bottom: 6px; }
  .built p { margin: 0; color: var(--muted); font-size: 0.95rem; }
  .path { list-style: none; margin: 0; padding: 0; }
  .path > li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .path > li:last-child { border-bottom: 0; }
  .path .org { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
  .path .title { color: var(--muted); font-size: 0.82rem; margin-top: 1px; }
  .path ul.hl { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 6px; }
  .path ul.hl li { display: list-item; padding: 0; border: 0; max-width: 66ch; }
  .path ul.hl li::marker { color: var(--accent); }
  footer { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 24px; color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
  @media (max-width: 600px) { .built { grid-template-columns: minmax(0, 1fr); } .path > li { grid-template-columns: minmax(0, 1fr); } .when { padding-top: 0; } .cta a.book { width: 100%; } .intro { font-size: 1.2rem; } }
  .patent { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .patent:last-child { border-bottom: 0; }
  .patent h3 { font-size: 1.02rem; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
  .patent .num { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .org-edu { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; margin-top: 16px; }
  .edu-detail { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

  /* 404 page */
  main.notfound { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; padding: 40px 20px; max-width: 560px; margin: 0 auto; }
  .notfound .code { margin: 0; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; font-weight: 800; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--accent), var(--accent-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .notfound h1 { margin-top: 12px; font-size: clamp(1.5rem, 5vw, 2rem); letter-spacing: -0.02em; }
  .notfound .lede { margin: 12px 0 0; color: var(--muted); max-width: 44ch; }
  .notfound .actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .notfound a.book, .notfound a.alt { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 650; text-decoration: none; }
  .notfound a.book { background: var(--accent); color: var(--on-accent); }
  .notfound a.book:hover { background: var(--accent-ink); }
  .notfound a.alt { background: var(--card); color: var(--accent-ink); border: 1px solid var(--rule); }
  .notfound a.alt:hover { background: var(--accent-soft); }
  @media (max-width: 600px) { .notfound .actions { width: 100%; flex-direction: column; } .notfound a.book, .notfound a.alt { width: 100%; } }
