
  *{margin:0;padding:0;box-sizing:border-box}
  :root{
    --primary:#111111;--accent:#1a3a5c;--accent-2:#b85c3a;--accent-2-text:#a8502f;--ink:#111111;--body:#333333;--muted:#666666;
    --bg:#fbfbf9;--white:#ffffff;--border:#e5e5e5;--border-light:#f0f0f0;
    --accent-tint:rgba(26,58,92,0.08);
    --accent-2-tint:rgba(184,92,58,0.10);
    --showcase-bg:#f4f4f0;
  }
  body{
    font-family:var(--site-font);color:var(--body);background:var(--bg);line-height:1.7;font-size:16px;-webkit-font-smoothing:antialiased;font-weight:400;
    background-image:none;
  }
  a{color:inherit}
  :focus-visible{outline:3px solid var(--accent-2);outline-offset:3px}
  ::selection{background:var(--accent-tint);color:var(--ink)}
  html{scroll-behavior:smooth}
  img{height:auto;transition:opacity 0.3s}

  /* ========== SCROLL REVEAL ========== */
  .reveal{opacity:1;transform:none}
  .reveal-stagger>*{opacity:1;transform:none}
  @media (prefers-reduced-motion:reduce){
    .reveal,.reveal-stagger>*{opacity:1!important;transform:none!important;transition:none!important}
  }

  /* ========== VIEW TRANSITIONS ========== */
  @keyframes vtFadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
  @keyframes vtFadeOut{from{opacity:1}to{opacity:0}}
  ::view-transition-old(root){animation:vtFadeOut 0.18s ease forwards}
  ::view-transition-new(root){animation:vtFadeIn 0.28s cubic-bezier(.2,.7,.3,1) forwards}

  /* Parallax background layer */
  .bg-art{position:fixed;top:0;left:0;width:100%;height:100vh;pointer-events:none;z-index:-1;opacity:0.03;will-change:transform}
  .bg-art img{width:100%;height:100%;object-fit:cover}

  /* ========== TOP NAV ========== */
  .top-nav{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;box-shadow:0 1px 3px rgba(0,0,0,0.04)}
  .top-nav .inner{max-width:1100px;margin:0 auto;padding:0 2rem;display:flex;justify-content:space-between;align-items:stretch;height:56px}
  .top-nav .name-area{display:flex;align-items:center;gap:0.75rem}
  .top-nav .name-area h1{font-family:var(--site-font);font-size:1.15rem;font-weight:700;color:var(--primary);white-space:nowrap;letter-spacing:-0.02em}
  .top-nav .name-area .sep{width:1px;height:20px;background:var(--border)}
  .top-nav .name-area .phd{font-size:0.7rem;color:var(--muted);font-weight:500;letter-spacing:0.06em;text-transform:uppercase}
  .page-tabs{display:flex;gap:0;align-items:stretch}
  .page-tab{background:none;border:none;cursor:pointer;font-family:var(--site-font);font-size:0.78rem;font-weight:500;color:var(--muted);padding:0 1.1rem;min-height:44px;display:flex;align-items:center;border-bottom:2px solid transparent;transition:all 0.2s;letter-spacing:0.01em;text-transform:uppercase}
  .page-tab:hover{color:var(--primary)}
  .page-tab.active{color:var(--primary);border-bottom-color:var(--accent);font-weight:600}
  .page-tab-end{margin-left:auto;padding-left:1.8rem;border-left:1px solid var(--border-light)}

  /* Hamburger toggle */
  .nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:0.5rem;color:var(--primary)}
  .nav-toggle svg{width:24px;height:24px}
  .nav-toggle line{transform-box:view-box;transform-origin:12px 12px;transition:transform 0.2s ease-out,opacity 0.15s ease-out}
  .nav-toggle[aria-expanded="true"] line:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .nav-toggle[aria-expanded="true"] line:nth-child(2){opacity:0}
  .nav-toggle[aria-expanded="true"] line:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  @media (prefers-reduced-motion:reduce){.nav-toggle line{transition:none}}

  /* Publications search */
  .pub-search{display:flex;align-items:center;gap:0.6rem;background:var(--white);border:1px solid var(--border);border-radius:8px;padding:0.55rem 0.9rem;margin-bottom:1.25rem;transition:border-color 0.2s,box-shadow 0.2s}
  .pub-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint)}
  .pub-search svg{width:15px;height:15px;color:var(--muted);flex-shrink:0}
  .pub-search input{flex:1;min-width:0;border:none;background:transparent;font:inherit;font-size:0.9rem;color:var(--ink);outline:none}
  .pub-search input::placeholder{color:var(--muted)}
  .pub-search .pub-search-count{font-family:var(--site-font);font-size:0.72rem;color:var(--muted);letter-spacing:0.02em;white-space:nowrap}
  #wv-pubs .pub-item.hidden{display:none}
  .pub-yr.hidden{display:none}
  .pub-no-results{display:none;padding:2rem 1rem;text-align:center;color:var(--muted);font-size:0.9rem;border:1px dashed var(--border);border-radius:8px;margin-top:1rem}
  .pub-no-results.show{display:block}

  /* Social icons under photo */
  .hero-socials{display:flex;gap:1rem;margin-top:1rem;justify-content:center}
  .hero-socials a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;transition:all 0.25s;text-decoration:none}
  .hero-socials a.social-linkedin{background:rgba(0,119,181,0.12);color:#0077B5}
  .hero-socials a.social-scholar{background:rgba(66,133,244,0.12);color:#4285F4}
  .hero-socials a.social-github{background:rgba(36,41,47,0.12);color:#24292F}
  .hero-socials a:hover{transform:scale(1.15);opacity:0.85}
  .hero-socials a svg{width:18px;height:18px}

  /* ========== PAGES ========== */
  .page{display:none;max-width:1100px;margin:0 auto;padding:3rem 2rem 4rem}
  .page.active{display:block}

  /* Sub-tab visibility */
  .work-view{display:none}
  .work-view.active{display:block}

  /* ========== HOME ========== */
  .home-hero{display:grid;grid-template-columns:340px 1fr;gap:3.5rem;align-items:start;margin-bottom:4rem}
  .hero-photo{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    width:340px;height:420px;background:var(--white);
    border:none;border-radius:10px;flex-shrink:0;
    box-shadow:0 6px 28px rgba(26,58,92,0.14),0 1px 3px rgba(0,0,0,0.06);border:1px solid rgba(0,0,0,0.06);overflow:hidden;
  }
  .hero-photo img{width:100%;height:100%;object-fit:cover}
  .hero-photo svg{width:80px;height:80px;color:var(--muted);opacity:0.4}
  .hero-photo span{font-size:0.78rem;color:var(--muted);margin-top:1rem;text-align:center}
  .hero-text{position:relative;z-index:2}
  .hero-mesh{position:absolute;top:50%;right:-130px;transform:translateY(-50%);height:560px;width:auto;opacity:0.55;pointer-events:none;z-index:0;user-select:none}
  .hero-github{margin:0.25rem 0 1.5rem;max-width:460px}
  .hero-github a{display:block;transition:opacity 0.2s}
  .hero-github a:hover{opacity:0.75}
  .hero-github img{display:block;width:100%;height:auto;opacity:0.9}
  .hero-text h2{font-family:var(--site-font);font-size:3.8rem;font-weight:600;color:var(--primary);line-height:1.02;letter-spacing:-0.03em;margin-bottom:0.75rem;font-variation-settings:"opsz" 96}
  .hero-focus{font-family:var(--site-font);font-size:1.3rem;font-weight:600;line-height:1.4;color:var(--ink);margin-bottom:0.55rem;letter-spacing:-0.015em}
  @keyframes hcPulse{0%,100%{box-shadow:0 0 0 3px var(--accent-2-tint)}50%{box-shadow:0 0 0 6px rgba(184,92,58,0.06)}}
  .hero-skills{display:flex;flex-wrap:wrap;gap:0.45rem 1.1rem;list-style:none;padding:0;margin:0 0 1.1rem;font-family:var(--site-font);font-size:0.85rem;font-weight:500;line-height:1.6;color:var(--accent)}
  .hero-skills li{display:flex;align-items:baseline;gap:0.4rem}
  .hero-skills li::before{content:'·';color:var(--accent-2);font-weight:700}
  .hero-text p{font-size:0.95rem;line-height:1.8;margin-bottom:0.9rem;color:var(--body);max-width:31rem}
  .hero-contact{margin-top:1.5rem;font-size:0.85rem;color:var(--muted);display:flex;align-items:center;gap:0.5rem}
  .hero-contact svg{width:14px;height:14px;color:var(--accent);flex-shrink:0}
  .hero-contact a{color:var(--accent);text-decoration:none;font-weight:600}
  .hero-contact a:hover{color:var(--primary)}
  .hero-cta{display:inline-flex;align-items:center;align-self:flex-start;min-height:44px;margin-top:0.55rem;padding:0.45rem 0;color:var(--accent);font-size:0.9rem;font-weight:700;text-decoration:none;border-bottom:2px solid var(--accent)}
  .hero-cta:hover{color:var(--primary);border-bottom-color:var(--primary)}
  .hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0.35rem 1.5rem}
  .hero-actions .hero-cta{margin-top:0;align-self:auto}
  .text-link{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-size:0.85rem;font-weight:600;text-decoration:underline;text-underline-offset:4px}
  .text-link:hover{color:var(--primary)}

  .home-section-label{font-family:var(--site-font);font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:var(--muted);margin-bottom:1.5rem;margin-top:3rem;padding-bottom:0.75rem;border-bottom:1px solid var(--border-light)}
  .home-section-intro{max-width:68ch;font-size:0.95rem;line-height:1.75;margin-bottom:1.5rem;color:var(--body)}
  .home-help .home-section-label{margin-top:0}
  .help-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 2.5rem;margin:0 0 1rem}
  .help-examples>div{padding-top:1rem;border-top:1px solid var(--border-light)}
  .help-examples dt{font-family:var(--site-font);font-size:1rem;font-weight:600;line-height:1.4;color:var(--ink);margin-bottom:0.45rem}
  .help-examples dd{margin:0;font-size:0.9rem;line-height:1.7;color:var(--body)}
  #updates{scroll-margin-top:6rem}

  .home-consult{border-top:1px solid var(--border);padding-top:3rem;margin-bottom:4rem;display:grid;grid-template-columns:1fr auto;gap:3.5rem;align-items:start}
  .home-consult h3{font-family:var(--site-font);font-size:2rem;font-weight:500;color:var(--primary);margin-bottom:0.75rem;letter-spacing:-0.02em;font-variation-settings:"opsz" 60}
  .home-consult p{font-size:0.95rem;line-height:1.8;max-width:560px;color:var(--body)}
  .home-consult .cta{display:inline-block;background:transparent;color:var(--accent);text-decoration:none;padding:0.4rem 0;border-bottom:2px solid var(--accent);border-radius:0;font-size:0.9rem;font-weight:600;transition:all 0.25s;white-space:nowrap;letter-spacing:0.01em}
  .home-consult .cta:hover{color:var(--primary);border-bottom-color:var(--primary)}
  .home-consult-alt{margin-top:1.25rem;font-size:0.85rem;color:var(--muted)}
  .home-consult-alt a{color:var(--accent);text-decoration:none;border-bottom:1px solid var(--accent-tint);font-weight:500;transition:border-color 0.2s}
  .home-consult-alt a:hover{border-bottom-color:var(--accent)}
  .home-consult-form{background:var(--white);border:1px solid var(--border);border-top:3px solid var(--accent-2);padding:1.75rem 1.75rem 1.5rem;width:380px;max-width:100%;min-width:0;box-shadow:0 2px 12px rgba(0,0,0,0.04);transition:box-shadow 0.3s}
  .home-consult-form:hover{box-shadow:0 4px 20px rgba(0,0,0,0.07)}
  .home-consult-form .hcf-label{font-family:var(--site-font);font-size:0.66rem;font-weight:600;text-transform:uppercase;letter-spacing:0.14em;color:var(--accent-2);margin-bottom:1.1rem}
  .home-consult-form .form-row{margin-bottom:0.9rem}
  .home-consult-form .form-row label{font-size:0.75rem;margin-bottom:0.35rem}
  .home-consult-form .form-row input,.home-consult-form .form-row textarea{font-size:0.85rem;padding:0.55rem 0.75rem}
  .home-consult-form .form-row textarea{min-height:72px}
  .home-consult-form .form-submit{width:100%;padding:0.7rem 1.5rem;font-size:0.8rem}
  .form-privacy{font-size:0.68rem;line-height:1.45;color:var(--muted);margin:0.7rem 0 0}
  .home-consult-form .form-success{padding:1.5rem;text-align:left}
  .home-consult-form .form-success h4{font-size:1.15rem;margin-bottom:0.4rem}
  .home-consult-form .form-success p{font-size:0.85rem}

  /* ========== COREMOTION FEATURE ========== */
  .cm-feature{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:2rem;align-items:center;background:#0a0a0a;border:1px solid rgba(218,165,32,0.25);padding:1.9rem 2.25rem;margin:3rem 0 0;text-decoration:none;overflow:hidden;transition:border-color 0.35s,transform 0.35s cubic-bezier(.2,.7,.3,1),box-shadow 0.35s}
  .cm-feature::before{content:"";position:absolute;left:-60px;top:50%;transform:translateY(-50%);width:340px;height:340px;background:radial-gradient(circle,rgba(218,165,32,0.22),transparent 65%);pointer-events:none;transition:opacity 0.4s;opacity:0.8}
  .cm-feature::after{content:"";position:absolute;top:0;left:-80%;width:50%;height:100%;background:linear-gradient(105deg,transparent,rgba(218,165,32,0.10),transparent);transform:skewX(-18deg);transition:left 0.7s cubic-bezier(.2,.7,.3,1);pointer-events:none}
  .cm-feature:hover{border-color:rgba(218,165,32,0.6);transform:translateY(-3px);box-shadow:0 14px 40px rgba(0,0,0,0.35),0 0 0 1px rgba(218,165,32,0.15)}
  .cm-feature:hover::before{opacity:1}
  .cm-feature:hover::after{left:130%}
  .cm-feature .cm-logo{position:relative;width:72px;height:72px;flex-shrink:0}
  .cm-feature .cm-logo svg{width:100%;height:100%;display:block;transition:transform 0.4s cubic-bezier(.2,.7,.3,1)}
  .cm-feature:hover .cm-logo svg{transform:scale(1.08)}
  /* living C mark, matching trackyourcore.com: trail arc sweeps, mark breathes gold */
  @media (prefers-reduced-motion:no-preference){
    .cm-feature .cm-logo svg path:first-of-type{animation:cmTrailSweep 3.6s ease-in-out infinite}
    .cm-feature .cm-logo svg{animation:cmMarkGlow 3.6s ease-in-out infinite}
  }
  @keyframes cmTrailSweep{0%,100%{opacity:0.25}45%{opacity:1}}
  @keyframes cmMarkGlow{0%,100%{filter:drop-shadow(0 0 1px rgba(218,165,32,0.15))}45%{filter:drop-shadow(0 0 7px rgba(218,165,32,0.5))}}
  .cm-feature .cm-label{font-family:var(--site-font);font-size:0.64rem;font-weight:600;text-transform:uppercase;letter-spacing:0.16em;color:#daa520;margin-bottom:0.3rem}
  .cm-feature .cm-name{font-family:var(--site-font);font-size:1.35rem;font-weight:600;color:#f5f0e6;letter-spacing:-0.01em;margin-bottom:0.3rem}
  .cm-feature .cm-text p{font-size:0.85rem;line-height:1.6;color:rgba(245,240,230,0.62);max-width:52ch;margin:0}
  .cm-feature .cm-cta{display:flex;align-items:center;gap:0.5rem;font-family:var(--site-font);font-size:0.8rem;font-weight:600;color:#daa520;white-space:nowrap;letter-spacing:0.02em}
  .cm-feature .cm-cta svg{width:15px;height:15px;transition:transform 0.3s cubic-bezier(.2,.7,.3,1)}
  .cm-feature:hover .cm-cta svg{transform:translate(3px,-3px)}
  @media (max-width:640px){
    .cm-feature{grid-template-columns:auto 1fr;gap:1.25rem;padding:1.5rem}
    .cm-feature .cm-cta{grid-column:1/-1;justify-content:flex-end}
  }

  .personal-strip{border-top:1px solid var(--border);padding-top:3rem;margin-top:3rem}
  .personal-strip .strip-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:2rem}
  .personal-strip .strip-head h3{font-family:var(--site-font);font-size:1.6rem;font-weight:400;color:var(--primary)}
  .personal-strip .strip-head a{font-size:0.8rem;color:var(--accent);text-decoration:none;font-weight:600;cursor:pointer;letter-spacing:0.02em;text-transform:uppercase}
  .photo-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
  .photo-placeholder{aspect-ratio:4/3;background:var(--white);border:1px solid var(--border);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.3rem;transition:all 0.3s;box-shadow:0 1px 3px rgba(27,42,74,0.05)}
  .photo-placeholder:hover{border-color:transparent;box-shadow:0 6px 20px rgba(26,58,92,0.14);transform:translateY(-3px)}
  .photo-placeholder svg{width:24px;height:24px;color:var(--muted);opacity:0.3}
  .photo-placeholder span{font-size:0.75rem;color:var(--muted)}

  /* ========== HOME RESEARCH EXAMPLES ========== */
  .gif-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.75rem 1.1rem;margin:0 0 1rem}
  .gif-example{margin:0;min-width:0}
  .gif-tile{position:relative;aspect-ratio:4/3;background:#fafaf8;border:1px solid var(--border);border-radius:4px;overflow:hidden}
  .gif-tile img,.gif-tile video{width:100%;height:100%;object-fit:cover;display:block}
  .gif-tile.contain img,.gif-tile.contain video{object-fit:contain}
  .gif-caption{padding-top:0.75rem;font-size:0.82rem;line-height:1.55;color:var(--body)}
  .gif-caption strong{display:block;font-family:var(--site-font);font-size:0.95rem;font-weight:600;color:var(--ink);margin-bottom:0.2rem}

  /* ========== WORK PAGE ========== */
  .work-tabs{display:flex;gap:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border-bottom:1px solid var(--border);margin-bottom:2.5rem}
  .work-tab{background:none;border:none;cursor:pointer;font-family:var(--site-font);font-size:0.8rem;font-weight:500;color:var(--muted);padding:0.8rem 1.5rem;min-height:44px;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all 0.2s;letter-spacing:0.02em;text-transform:uppercase}
  .work-tab:hover{color:var(--ink)}
  .work-tab.active{color:var(--primary);border-bottom-color:var(--accent);font-weight:600}
  /* work-view styles defined above with fade animation */


  .pub-yr{font-family:var(--site-font);font-size:1.1rem;font-weight:600;color:var(--primary);margin:2.5rem 0 1rem;padding-bottom:0.5rem;border-bottom:1px solid var(--border)}
  .pub-yr:first-child{margin-top:0}
  .pub-item{display:grid;grid-template-columns:160px 1fr;gap:1.5rem;align-items:start;padding:1.5rem 0;border-bottom:1px solid var(--border-light)}
  .pub-item.no-thumb{display:block}
  .pub-item:last-child{border-bottom:none}
  .pub-item .pub-thumb{width:160px;aspect-ratio:3/4;border-radius:4px;overflow:hidden;box-shadow:0 2px 10px rgba(26,39,68,0.1);flex-shrink:0;cursor:pointer;transition:all 0.25s}
  .pub-item .pub-thumb:hover{box-shadow:0 6px 20px rgba(26,39,68,0.18);transform:translateY(-2px)}
  .pub-item .pub-thumb img{width:100%;height:100%;object-fit:cover;display:block}
  #wv-conf .pub-item.has-thumb, #wv-lectures .pub-item.has-thumb{grid-template-columns:160px 1fr}
  #wv-conf .pub-item:not(.has-thumb), #wv-lectures .pub-item:not(.has-thumb){display:block}
  #wv-conf .pub-item .pres-thumb, #wv-lectures .pub-item .pres-thumb{width:160px;border-radius:4px;overflow:hidden;box-shadow:0 2px 10px rgba(26,39,68,0.1);flex-shrink:0;cursor:pointer;transition:all 0.25s;aspect-ratio:16/9}
  #wv-conf .pub-item .pres-thumb:hover, #wv-lectures .pub-item .pres-thumb:hover{box-shadow:0 6px 20px rgba(26,39,68,0.18);transform:translateY(-2px)}
  #wv-conf .pub-item .pres-thumb img, #wv-lectures .pub-item .pres-thumb img{width:100%;height:100%;object-fit:cover;display:block}
  .pub-item h3{font-size:0.95rem;font-weight:600;color:var(--ink);line-height:1.5;margin-bottom:0.3rem}
  .pub-item h3 a{color:inherit;text-decoration:none}.pub-item h3 a:hover{color:var(--accent)}
  .pub-item .pub-desc{font-size:0.82rem;color:var(--body);line-height:1.6;margin-bottom:0.5rem}
  .pub-item .meta{font-size:0.82rem;color:var(--muted);line-height:1.6;margin-bottom:0.6rem}
  .pub-item .meta em{font-style:italic}
  .pub-links{display:flex;gap:0.5rem;flex-wrap:wrap}
  .pub-links a{display:inline-block;font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--accent);background:rgba(26,58,92,0.06);padding:0.3rem 0.65rem;border-radius:3px;text-decoration:none;transition:all 0.2s}
  .pub-links a:hover{background:rgba(26,58,92,0.12);color:var(--primary)}
  .cite-badge{display:inline-flex;align-items:center;gap:0.3rem;font-size:0.68rem;font-weight:600;color:var(--accent);background:rgba(26,58,92,0.08);padding:0.3rem 0.65rem;letter-spacing:0.02em;border-radius:3px;vertical-align:middle}
  .oral-badge{display:inline-block;font-size:0.65rem;font-weight:700;color:#fff;background:var(--accent);padding:0.15rem 0.5rem;margin-left:0.5rem;border-radius:2px;vertical-align:middle;letter-spacing:0.03em;text-transform:uppercase}


  /* ========== CONSULTING PAGE ========== */



  /* INTAKE FORM */
  .intake-form{max-width:620px}
  .form-row{margin-bottom:1.5rem}
  .form-row label{display:block;font-size:0.8rem;font-weight:600;color:var(--primary);margin-bottom:0.5rem;letter-spacing:0.02em;text-transform:uppercase}
  .form-row input,.form-row select,.form-row textarea{
    width:100%;font-family:var(--site-font);font-size:0.9rem;
    padding:0.7rem 0.9rem;border:1px solid var(--border);border-radius:0;
    background:var(--white);color:var(--ink);transition:border-color 0.2s;
    line-height:1.6;
  }
  .form-row input:focus,.form-row select:focus,.form-row textarea:focus{
    outline:none;border-color:var(--accent);box-shadow:0 0 0 2px rgba(26,58,92,0.1);
  }
  .form-row textarea{resize:vertical;min-height:100px}
  .form-row select{cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.9rem center;padding-right:2.2rem}
  .form-submit{
    display:inline-block;background:var(--accent);color:var(--white);border:none;
    padding:0.75rem 2rem;border-radius:0;font-family:var(--site-font);
    font-size:0.85rem;font-weight:600;cursor:pointer;transition:all 0.25s;letter-spacing:0.02em;
  }
  .form-submit:hover{opacity:0.85;background:var(--primary)}

  /* Success state */
  .form-success{display:none;background:#f0f8f7;border:1px solid var(--border);border-radius:0;padding:2.5rem;text-align:center}
  .form-success.show{display:block}
  .form-success h4{font-family:var(--site-font);font-size:1.5rem;font-weight:400;color:var(--primary);margin-bottom:0.75rem}
  .form-success p{font-size:0.95rem;color:var(--body);line-height:1.7}

  /* ========== VENTURES PAGE ========== */
  .ventures-intro{margin-bottom:3rem}
  .ventures-intro h2{font-family:var(--site-font);font-size:2.8rem;font-weight:500;color:var(--primary);margin-bottom:1rem;line-height:1.05;letter-spacing:-0.025em;font-variation-settings:"opsz" 96}
  .ventures-intro p{font-size:0.95rem;line-height:1.85;color:var(--body)}


  /* ========== ABOUT PAGE ========== */
  .about-top{display:grid;grid-template-columns:300px 1fr;gap:3rem;margin-bottom:2rem;align-items:start}
  .about-photo{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    width:100%;height:360px;background:var(--white);
    border:none;border-radius:8px;flex-shrink:0;
    box-shadow:0 2px 12px rgba(17,17,17,0.06);overflow:hidden;
  }
  .about-photo img{width:100%;height:100%;object-fit:cover}
  .about-photo svg{width:80px;height:80px;color:var(--muted);opacity:0.4}
  .about-photo span{font-size:0.78rem;color:var(--muted);margin-top:1rem;text-align:center}
  .about-text h2{font-family:var(--site-font);font-size:2.7rem;font-weight:500;color:var(--primary);margin-bottom:1rem;line-height:1.05;letter-spacing:-0.025em;font-variation-settings:"opsz" 96}
  .about-text p{font-size:0.95rem;line-height:1.75;margin-bottom:0.85rem;color:var(--body)}

  /* CV download - subtle inline link */
  .cv-quiet{display:inline-flex;align-items:center;gap:0.4rem;font-size:0.85rem;color:var(--accent);text-decoration:none;font-weight:600;margin-top:1rem;transition:all 0.25s;letter-spacing:0.01em}
  .cv-quiet:hover{color:var(--primary)}
  .cv-quiet svg{width:14px;height:14px}

  /* About left column: photo only */
  .about-left{display:flex;flex-direction:column;gap:1rem;align-items:stretch;width:100%}
  .about-left .cv-quiet{align-self:flex-start;margin-top:0}

  /* About highlights — small photo grid under bio */
  .about-hl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0.6rem;margin-top:1.5rem}

  /* Education — interactive journey timeline */
  .edu-compact{display:flex;flex-direction:column;padding-top:0.5rem;border-top:1px solid var(--border-light);position:relative;margin-left:2rem}
  .edu-compact::before{content:'';position:absolute;left:-1.5rem;top:1.2rem;bottom:0.8rem;width:1.5px;background:var(--border);border-radius:1px}
  .edu-compact .edu-row{padding:0.25rem 0;position:relative;cursor:pointer}
  .edu-compact .edu-row::before{content:'';position:absolute;left:-1.75rem;top:0.65rem;width:7px;height:7px;border-radius:50%;background:var(--bg);border:1.5px solid var(--border);transition:all 0.25s;z-index:1}
  .edu-compact .edu-row:first-child::before{border-color:var(--accent);background:var(--accent)}
  .edu-compact .edu-row:hover::before,.edu-compact .edu-row.open::before{border-color:var(--accent);background:var(--accent);transform:scale(1.3)}
  .edu-compact .edu-top{display:flex;flex-direction:column;gap:0}
  .edu-compact .edu-deg{font-size:0.8rem;font-weight:600;color:var(--primary);line-height:1.3;transition:color 0.2s}
  .edu-compact .edu-row:hover .edu-deg{color:var(--accent)}
  .edu-compact .edu-school{font-size:0.7rem;color:var(--muted);font-weight:400}
  .edu-compact .edu-focus{font-size:0.68rem;color:var(--muted);margin-top:0.05rem}
  .edu-compact .edu-detail{max-height:0;overflow:hidden;transition:max-height 0.35s ease,opacity 0.3s ease,margin 0.3s ease;opacity:0;margin-top:0}
  .edu-compact .edu-row.open .edu-detail{max-height:200px;opacity:1;margin-top:0.4rem}
  .edu-compact .edu-detail p{font-size:0.78rem;color:var(--body);line-height:1.65;margin:0}

  /* Photo grids — masonry via CSS columns, lets intrinsic aspect ratios breathe */
  .photo-grid{columns:3;column-gap:0.85rem;margin-top:2.5rem;margin-bottom:2rem}
  .photo-grid-item{break-inside:avoid;margin-bottom:0.85rem;border-radius:8px;overflow:hidden;position:relative;cursor:pointer;box-shadow:0 1px 4px rgba(17,17,17,0.05);transition:all 0.3s;display:block}
  .photo-grid-item:hover{box-shadow:0 10px 24px rgba(26,39,68,0.16);transform:translateY(-2px)}
  .photo-grid-item img{width:100%;height:auto;object-fit:cover;display:block}
  .photo-grid-item[data-tags]::after{content:attr(data-tags);position:absolute;bottom:0;left:0;right:0;padding:0.5rem 0.65rem 0.45rem;background:linear-gradient(transparent,rgba(0,0,0,0.6));color:rgba(255,255,255,0.82);font-size:0.66rem;font-weight:500;letter-spacing:0.02em;opacity:0.9;transition:opacity 0.25s,color 0.25s;pointer-events:none;font-family:var(--site-font)}
  .photo-grid-item[data-tags]:hover::after{opacity:1;color:#fff}
  /* Highlight mini-grid under bio keeps a uniform tile for rhythm */
  .about-hl-grid .photo-grid-item{aspect-ratio:4/3;margin-bottom:0;break-inside:auto}
  .about-hl-grid .photo-grid-item img{height:100%}

  /* ========== COURSE CARDS ========== */
  .course-card{background:var(--white);border:none;border-radius:8px;overflow:hidden;margin-bottom:1.5rem;transition:box-shadow 0.3s,transform 0.25s;box-shadow:0 1px 3px rgba(17,17,17,0.04)}
  .course-card:hover{box-shadow:0 6px 20px rgba(17,17,17,0.08);transform:translateY(-1px)}
  .course-header{padding:1.5rem;cursor:pointer;display:flex;justify-content:space-between;align-items:flex-start}
  .course-header .course-info{flex:1}
  .course-header .course-code{font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--accent-2-text);margin-bottom:0.35rem}
  .course-header h3{font-family:var(--site-font);font-size:1.05rem;font-weight:600;color:var(--primary);margin-bottom:0.3rem}
  .course-header .course-meta{font-size:0.82rem;color:var(--muted)}
  .course-header .toggle-icon{color:var(--muted);flex-shrink:0;margin-left:1rem;font-size:0.75rem;transition:transform 0.25s;padding-top:0.2rem}
  .course-card.open .course-header .toggle-icon{transform:rotate(90deg)}
  .course-body{display:none;padding:0 1.5rem 1.5rem;border-top:1px solid var(--border-light)}
  .course-card.open .course-body{display:block;padding-top:1.5rem}
  .course-body p{font-size:0.9rem;line-height:1.75;color:var(--body);margin-bottom:1rem}
  .course-topics{display:flex;flex-wrap:wrap;gap:0.4rem;margin-bottom:1.25rem}
  .course-topics span{font-size:0.72rem;padding:0.2rem 0.6rem;border:1px solid var(--border);color:var(--muted);font-weight:500}
  .course-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0.75rem;margin-top:1rem;align-items:start}
  .course-images img{width:100%;border-radius:4px;border:1px solid var(--border-light);display:block}
  .course-materials{display:flex;flex-wrap:wrap;gap:0.6rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border-light)}
  .course-materials a{display:inline-flex;align-items:center;gap:0.35rem;font-size:0.78rem;color:var(--accent);text-decoration:none;font-weight:600;padding:0.35rem 0.75rem;border:1px solid var(--border);border-radius:3px;transition:all 0.2s}
  .course-materials a:hover{background:var(--accent);color:var(--white);border-color:var(--accent)}
  .course-materials a svg{width:13px;height:13px}
  .teaching-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-bottom:3rem}
  .stat-card{text-align:center;padding:1.5rem 1rem;border:none;border-radius:8px;background:var(--white);box-shadow:0 1px 3px rgba(17,17,17,0.04)}
  .stat-card .stat-num{font-family:var(--site-font);font-size:1.8rem;font-weight:700;color:var(--primary);line-height:1}
  .stat-card .stat-label{font-size:0.75rem;color:var(--muted);margin-top:0.4rem;text-transform:uppercase;letter-spacing:0.04em}

  /* ========== RESEARCH NARRATIVE ========== */
  .r-pillar{text-align:center;padding:1.5rem 1rem}
  .r-pillar svg{width:36px;height:36px;color:var(--accent);margin-bottom:0.75rem}
  .r-pillar h4{font-family:var(--site-font);font-size:0.85rem;font-weight:600;color:var(--primary);margin-bottom:0.4rem}
  .r-pillar p{font-size:0.78rem;color:var(--muted);line-height:1.6}

  /* ========== RESEARCH FRAMEWORK (compact, centered) ========== */
  /* Full-bleed banner that breaks out of .page's max-width and horizontal padding */
  .r-banner{display:block;width:100%;height:auto;margin:0 0 2.5rem;border-radius:8px}

  /* ========== RESEARCH PILLAR BLOCKS ========== */
  .r-pillar-blocks{display:flex;flex-direction:column;gap:3.5rem;margin:2.5rem 0 3rem}
  /* Sections delineated by whitespace + a thin hairline rule (no cards) */
  .r-pillar-block{background:transparent;border:none;border-radius:0;padding:0;box-shadow:none}
  .r-pillar-block + .r-pillar-block{padding-top:3.5rem;border-top:1px solid var(--border-light)}
  .r-pillar-head{display:grid;grid-template-columns:1.05fr 1fr;gap:2.75rem;align-items:center;margin-bottom:1.75rem}
  /* Title/words always on the far left, banner always on the right */
  .r-pillar-head .r-pillar-intro{order:1}
  .r-pillar-head .r-pillar-banner{order:2}
  .r-pillar-banner{border-radius:10px;overflow:hidden;border:1px solid var(--border);background:var(--border-light);aspect-ratio:16/10;position:relative}
  .r-pillar-banner img,.r-pillar-banner video{width:100%;height:100%;object-fit:cover;display:block}
  .r-pillar-banner.contain img,.r-pillar-banner.contain video{object-fit:contain;background:#fff}
  .r-pillar-intro{}
  /* Restrained typographic eyebrow: tiny tabular number only, no "Pillar" word */
  .r-pillar-num{font-family:var(--site-font);font-size:0.72rem;font-weight:700;color:var(--accent-2-text);letter-spacing:0.18em;text-transform:uppercase;display:block;margin:0 0 0.7rem;padding:0;border:none;background:transparent;line-height:1;font-variant-numeric:tabular-nums}
  .r-pillar-intro h3{font-family:var(--site-font);font-size:1.55rem;font-weight:700;color:var(--primary);margin-bottom:0.85rem;letter-spacing:-0.025em;line-height:1.2}
  .r-pillar-intro p{font-size:0.92rem;line-height:1.75;color:var(--body);margin-bottom:0.9rem}
  .r-pillar-intro .r-tags{display:flex;flex-wrap:wrap;gap:0.35rem;margin-top:0.5rem}
  .r-pillar-intro .r-tags span{font-family:var(--site-font);font-size:0.7rem;font-weight:500;padding:0.25rem 0.6rem;background:var(--bg);border:1px solid var(--border);color:var(--muted);border-radius:4px;letter-spacing:0.01em}
  .r-pillar-intro .r-stat{display:inline-block;font-family:var(--site-font);font-size:0.8rem;font-weight:600;color:var(--accent);margin-top:0.9rem}

  /* Showcase: small project thumbnails with blurbs */
  .r-showcase{display:grid;grid-template-columns:repeat(4,1fr);gap:0.9rem;padding-top:1.25rem;border-top:1px solid var(--border-light)}
  .r-show{display:flex;flex-direction:column;text-decoration:none;color:inherit;background:var(--white);border:1px solid var(--border);border-radius:8px;overflow:hidden;transition:transform 0.25s cubic-bezier(.2,.7,.3,1),box-shadow 0.25s,border-color 0.25s}
  .r-show:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(17,17,17,0.08);border-color:var(--accent)}
  .r-show-img{width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--showcase-bg);display:flex;align-items:center;justify-content:center}
  .r-show-img img,.r-show-img video{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;transition:transform 0.5s cubic-bezier(.2,.7,.3,1)}
  .r-show:hover .r-show-img img,.r-show:hover .r-show-img video{transform:scale(1.04)}
  .r-show-cap{padding:0.65rem 0.8rem 0.8rem;display:flex;flex-direction:column;gap:0.2rem}
  .r-show-cap strong{font-family:var(--site-font);font-size:0.82rem;font-weight:600;color:var(--primary);line-height:1.3;letter-spacing:-0.01em}
  .r-show-cap span{font-size:0.72rem;color:var(--muted);line-height:1.45}
  .r-tags{display:flex;flex-wrap:wrap;gap:0.4rem;margin-top:1rem}
  .r-tags span{font-size:0.7rem;padding:0.2rem 0.55rem;border:1px solid var(--border);color:var(--muted);font-weight:500;border-radius:3px;transition:color 0.2s,border-color 0.2s,background 0.2s}
  .r-tags span:hover{color:var(--accent-2);border-color:var(--accent-2);background:var(--accent-2-tint)}
  .r-stat{display:inline-block;font-family:var(--site-font);font-size:0.78rem;font-weight:600;color:var(--accent);margin-top:0.75rem}

  /* ========== RECENT UPDATES ========== */
  .updates-list{list-style:none;padding:0;margin:0 0 4rem}
  .updates-list li{display:grid;grid-template-columns:10rem minmax(0,1fr);gap:1.25rem;padding:0.85rem 0.5rem;border-bottom:1px solid var(--border-light);align-items:baseline;border-radius:4px;transition:background 0.2s}
  .updates-list li:last-child{border:none}
  .updates-list li:hover{background:rgba(26,58,92,0.02)}
  .updates-list .date{font-size:0.8rem;color:var(--muted);font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
  .updates-list .update-text{font-size:0.9rem;color:var(--body);line-height:1.65}
  .updates-list .update-text a{color:var(--accent);text-decoration:none;font-weight:600}
  .updates-list .update-text a:hover{color:var(--primary)}
  .updates-list .tag{display:inline-block;font-size:0.65rem;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--accent);background:rgba(26,58,92,0.08);padding:0.15rem 0.5rem;margin-right:0.5rem;vertical-align:middle;border-radius:2px}
  .updates-list .tag-new{color:var(--accent-2);background:var(--accent-2-tint);animation:newPulse 2.4s ease-in-out infinite}
  @keyframes newPulse{0%,100%{opacity:1}50%{opacity:0.55}}
  .label-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 1rem}
  .label-row .home-section-label{flex:1}
  .updates-rss{font-family:var(--site-font);font-size:0.7rem;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;gap:0.3rem;white-space:nowrap}
  .updates-rss:hover{color:var(--accent-2)}
  .updates-rss svg{width:11px;height:11px}
  .updates-list .tag-paper{color:#1a6b3c;background:rgba(26,107,60,0.1)}
  .updates-list .tag-position{color:#7c3aed;background:rgba(124,58,237,0.08)}
  .updates-list .tag-grant{color:#b45309;background:rgba(180,83,9,0.1)}
  .updates-list .tag-teaching{color:#0369a1;background:rgba(3,105,161,0.08)}
  .updates-list .tag-translational{color:#be185d;background:rgba(190,24,93,0.08)}
  .updates-archive{display:inline-flex;min-height:44px;align-items:center;margin:-3rem 0 4rem;color:var(--accent);font-size:0.82rem;font-weight:600;text-decoration:none;border-bottom:1px solid transparent}
  .updates-archive:hover{border-bottom-color:var(--accent)}

  /* ========== FOOTER ========== */
  .foot{max-width:1100px;margin:0 auto;padding:2.5rem 2rem;border-top:1px solid var(--border);display:flex;flex-direction:column;align-items:center;gap:1.25rem}
  .foot-currently{width:100%;max-width:760px;display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;padding-bottom:1.25rem;margin-bottom:0.5rem;border-bottom:1px solid var(--border-light)}
  .foot-currently .fc-col{display:flex;flex-direction:column;gap:0.25rem;min-width:0}
  .foot-currently .fc-label{font-family:var(--site-font);font-size:0.62rem;font-weight:600;text-transform:uppercase;letter-spacing:0.12em;color:var(--muted);display:flex;align-items:center;gap:0.4rem}
  .foot-currently .fc-label .fc-dot{width:6px;height:6px;border-radius:50%;background:var(--accent-2);box-shadow:0 0 0 3px var(--accent-2-tint);animation:hcPulse 2.4s ease-in-out infinite}
  .foot-currently .fc-val{font-family:var(--site-font);font-size:0.85rem;color:var(--ink);font-weight:500;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .foot-currently .fc-val a{color:var(--accent);text-decoration:none;border-bottom:1px solid transparent;transition:border-color 0.2s}
  .foot-currently .fc-val a:hover{border-bottom-color:var(--accent)}
  @media (max-width:700px){.foot-currently{grid-template-columns:1fr;gap:0.85rem;text-align:left}.foot-currently .fc-val{white-space:normal}}
  .foot-icons{display:flex;gap:1rem}
  .foot-icons a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;transition:all 0.25s;text-decoration:none}
  .foot-icons a.social-email{background:rgba(234,67,53,0.12);color:#EA4335}
  .foot-icons a.social-linkedin{background:rgba(0,119,181,0.12);color:#0077B5}
  .foot-icons a.social-scholar{background:rgba(66,133,244,0.12);color:#4285F4}
  .foot-icons a.social-github{background:rgba(36,41,47,0.12);color:#24292F}
  .foot-icons a:hover{transform:scale(1.15);opacity:0.85}
  .foot-icons a svg{width:18px;height:18px}
  .foot .c{font-size:0.78rem;color:var(--muted);letter-spacing:0.01em}
  .foot .updated{font-size:0.72rem;color:var(--muted);opacity:0.6}

  /* ========== POSTER GALLERY ========== */
  .poster-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-bottom:3rem}
  .poster-card{background:var(--white);border:none;border-radius:8px;overflow:hidden;cursor:pointer;transition:all 0.3s;box-shadow:0 1px 4px rgba(17,17,17,0.05);display:flex;flex-direction:column}
  .poster-card:hover{box-shadow:0 8px 24px rgba(17,17,17,0.10);transform:translateY(-3px)}
  .poster-card .poster-img{width:100%;height:280px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f0f0ee}
  .poster-card .poster-img img{width:100%;height:100%;object-fit:contain}
  .poster-card .poster-info{padding:0.75rem 1.1rem;border-bottom:1px solid var(--border-light);order:-1}
  .poster-card .poster-info h3{font-size:0.88rem;font-weight:600;color:var(--primary);line-height:1.4;margin-bottom:0.15rem;font-family:var(--site-font)}
  .poster-card .poster-info .poster-meta{font-size:0.78rem;color:var(--muted);line-height:1.5}
  .poster-card .poster-info .poster-meta em{font-style:italic}

  /* Lightbox */
  .lightbox{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.92);z-index:9999;align-items:center;justify-content:center;padding:2rem}
  .lightbox.active{display:flex}
  .lightbox-close{position:fixed;top:1.5rem;right:1.5rem;width:44px;height:44px;background:rgba(255,255,255,0.15);border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.2s;z-index:10000}
  .lightbox-close:hover{background:rgba(255,255,255,0.3)}
  .lightbox-close svg{width:22px;height:22px;color:#fff}
  .lightbox-nav{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:48px;background:rgba(255,255,255,0.12);border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.2s;z-index:10000}
  .lightbox-nav:hover{background:rgba(255,255,255,0.25)}
  .lightbox-nav svg{width:24px;height:24px;color:#fff}
  .lightbox-prev{left:1.5rem}
  .lightbox-next{right:1.5rem}
  .lightbox-content{max-width:90vw;max-height:85vh;display:flex;flex-direction:column;align-items:center}
  .lightbox-content img{max-width:100%;max-height:75vh;object-fit:contain;border-radius:4px;box-shadow:0 4px 40px rgba(0,0,0,0.5)}
  .lightbox-caption{color:#fff;text-align:center;margin-top:1.25rem;max-width:600px}
  .lightbox-caption h3{font-family:var(--site-font);font-size:1.15rem;font-weight:500;margin-bottom:0.3rem}
  .lightbox-caption p{font-size:0.85rem;color:rgba(255,255,255,0.7)}
  .lightbox-download{display:inline-flex;align-items:center;gap:0.4rem;margin-top:0.75rem;font-size:0.8rem;color:#ffffff;text-decoration:underline;font-weight:600;transition:opacity 0.2s}
  .lightbox-download:hover{opacity:0.8}
  .lightbox-download svg{width:14px;height:14px}

  /* ========== PUB ROW HOVER ========== */
  #wv-pubs .pub-item, #wv-theses .pub-item, #wv-techreports .pub-item{border-radius:6px;padding-left:1rem;padding-right:1rem;margin:0 -1rem;transition:background 0.2s}
  #wv-pubs .pub-item:hover, #wv-theses .pub-item:hover, #wv-techreports .pub-item:hover{background:rgba(26,39,68,0.025)}
  .pub-thumb.thesis-icon{display:flex;align-items:center;justify-content:center;width:160px;aspect-ratio:auto;box-shadow:none;background:transparent}
  .pub-thumb.thesis-icon svg{width:80px;height:auto;transition:transform 0.2s}
  .pub-thumb.thesis-icon:hover svg{transform:scale(1.05)}

  /* ========== SCROLL PROGRESS ========== */
  .scroll-progress{position:fixed;top:0;left:0;height:3px;background:var(--accent);z-index:200;width:0;transition:width 0.1s linear}

  /* ========== BACK TO TOP ========== */
  .back-top{position:fixed;bottom:2rem;right:2rem;width:44px;height:44px;border-radius:50%;background:var(--primary);color:var(--white);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(26,39,68,0.2);opacity:0;visibility:hidden;transition:all 0.3s;z-index:90}
  .back-top.show{opacity:1;visibility:visible}
  .back-top:hover{background:var(--accent);transform:translateY(-2px);box-shadow:0 6px 20px rgba(26,58,92,0.2)}
  .back-top svg{width:20px;height:20px}

  /* ========== HERO GRADIENT ========== */
  .home-hero{position:relative}
  .home-hero::before{display:none}

  /* ========== CONSULTING PAGE ========== */
  #page-consulting{background:#fafaf8;max-width:none;padding:0;margin:0}
  #page-consulting .c-page{max-width:1100px;margin:0 auto;padding:2rem 2rem 2rem;display:grid;grid-template-columns:1fr 320px;gap:3rem;align-items:start}
  .c-left{}
  .c-hero{margin-bottom:2rem}
  .c-hero h2{font-family:var(--site-font);font-size:2.4rem;font-weight:500;line-height:1.1;letter-spacing:-0.02em;color:var(--primary);margin-bottom:0.75rem}
  .c-hero h2 .c-hero-sub{display:block;margin-top:0.6rem;font-family:var(--site-font);font-size:1.2rem;font-weight:500;line-height:1.35;color:var(--muted);letter-spacing:-0.01em}
  .c-hero p{font-size:0.95rem;line-height:1.7;color:var(--body);max-width:60ch}

  .c-modes{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2rem}
  .c-mode{background:var(--white);border:1px solid var(--border);border-radius:8px;padding:1.25rem 1.25rem 1.1rem;transition:border-color 0.2s,box-shadow 0.2s,transform 0.2s}
  .c-mode:hover{border-color:var(--accent);box-shadow:0 4px 16px rgba(26,58,92,0.06);transform:translateY(-1px)}
  .c-mode-label{font-family:var(--site-font);font-size:0.66rem;font-weight:600;text-transform:uppercase;letter-spacing:0.12em;color:var(--accent);margin-bottom:0.5rem}
  .c-mode h3{font-family:var(--site-font);font-size:1.05rem;font-weight:700;color:var(--primary);margin-bottom:0.75rem;letter-spacing:-0.01em}
  .c-mode ul{list-style:none;display:flex;flex-direction:column;gap:0.4rem}
  .c-mode ul li{font-size:0.82rem;line-height:1.5;color:var(--body);padding-left:0.9rem;position:relative}
  .c-mode ul li::before{content:'';position:absolute;left:0;top:0.55rem;width:4px;height:4px;border-radius:50%;background:var(--accent);opacity:0.65}

  .c-expertise{margin-bottom:2rem;padding-bottom:1.75rem;border-bottom:1px solid var(--border)}
  .c-expertise h3{font-family:var(--site-font);font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:var(--muted);margin-bottom:0.9rem}
  .c-chips{display:flex;flex-wrap:wrap;gap:0.5rem}
  .c-chips span{font-family:var(--site-font);font-size:0.78rem;font-weight:500;color:var(--ink);background:var(--white);border:1px solid var(--border);padding:0.45rem 0.8rem;border-radius:999px;letter-spacing:0.005em;transition:border-color 0.2s,background 0.2s,color 0.2s}
  .c-chips span:hover{border-color:var(--accent-2);color:var(--accent-2);background:var(--accent-2-tint)}
  .c-track{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border)}
  .c-track h3{font-family:var(--site-font);font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:var(--muted);margin-bottom:1rem}
  .c-track-logos{display:flex;flex-wrap:wrap;gap:1.75rem 2.25rem;align-items:center}
  .c-track-logos span{font-family:var(--site-font);font-size:1.05rem;font-weight:600;color:var(--ink);letter-spacing:-0.01em;line-height:1;opacity:0.75;transition:opacity 0.2s}
  .c-track-logos span:hover{opacity:1}
  .c-track-logos .logo-harvard{font-family:var(--site-font);font-weight:700;font-style:italic;letter-spacing:0.01em}
  .c-track-logos .logo-lulu{text-transform:lowercase;font-weight:500;letter-spacing:0.02em}
  .c-track-logos .logo-meta{font-weight:700;letter-spacing:-0.02em}
  .c-track-logos .logo-ubc{font-weight:700;letter-spacing:0.02em}
  .c-track-logos .logo-uvic{font-weight:600;letter-spacing:0.01em}
  .c-track-logos .logo-bu{font-weight:600;letter-spacing:0.01em}

  .c-research{margin-bottom:1rem}
  .c-research h3{font-family:var(--site-font);font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:var(--muted);margin-bottom:0.75rem}
  .c-research-cta{display:inline-flex;align-items:center;gap:0.5rem;font-family:var(--site-font);font-size:0.88rem;font-weight:600;color:var(--ink);text-decoration:none;padding:0.5rem 0;border-bottom:1px solid var(--border);transition:color 0.2s,border-color 0.2s,gap 0.2s}
  .c-research-cta svg{width:16px;height:16px;transition:transform 0.2s}
  .c-research-cta:hover{color:var(--accent);border-bottom-color:var(--accent);gap:0.8rem}
  .c-research-cta:hover svg{transform:translateX(2px)}
  .c-form-section{background:var(--white);border:1px solid var(--border);border-radius:6px;padding:1.5rem}
  .c-form-section h3{font-family:var(--site-font);font-size:1rem;font-weight:600;color:var(--primary);margin-bottom:0.4rem}
  .c-form-section .c-form-lead{font-size:0.8rem;color:var(--muted);margin-bottom:1.25rem;line-height:1.6}
  #page-consulting .intake-form .form-row{margin-bottom:1rem}
  #page-consulting .intake-form label{font-size:0.75rem}
  #page-consulting .intake-form input,#page-consulting .intake-form select,#page-consulting .intake-form textarea{font-size:0.82rem;padding:0.55rem 0.75rem}
  #page-consulting .intake-form textarea{min-height:60px}
  #page-consulting .form-submit{padding:0.6rem 1.5rem;font-size:0.8rem}

  /* ========== WRITING ========== */
  .wr-hero{margin-bottom:2.5rem;max-width:65ch}
  .wr-hero h2{font-family:var(--site-font);font-size:2.8rem;font-weight:500;color:var(--primary);margin-bottom:0.9rem;line-height:1.05;letter-spacing:-0.025em;font-variation-settings:"opsz" 96}
  .wr-hero p{font-size:1rem;line-height:1.7;color:var(--body);max-width:60ch}
  .wr-index{display:flex;flex-direction:column;gap:0;margin-bottom:3.5rem;border-top:1px solid var(--border)}
  .wr-card{display:grid;grid-template-columns:160px 1fr auto;gap:1.75rem;align-items:center;padding:1.25rem 0;border-bottom:1px solid var(--border);text-decoration:none;color:inherit;cursor:pointer;transition:background 0.2s,padding 0.2s}
  .wr-card:hover{background:#fafaf8;padding-left:0.75rem;padding-right:0.75rem}
  .wr-card:hover .wr-card-title{color:var(--accent)}
  .wr-card-thumb{width:160px;height:110px;background:var(--bg);border:1px solid var(--border);border-radius:6px;overflow:hidden;flex-shrink:0}
  .wr-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
  .wr-card-body{min-width:0}
  .wr-card-date{font-family:var(--site-font);font-size:0.7rem;font-weight:500;color:var(--muted);letter-spacing:0.06em;text-transform:uppercase;margin-bottom:0.4rem}
  .wr-card-title{font-family:var(--site-font);font-size:1.15rem;font-weight:600;color:var(--primary);line-height:1.3;letter-spacing:-0.015em;margin-bottom:0.4rem;transition:color 0.2s}
  .wr-card-dek{font-family:var(--site-font);font-size:0.88rem;font-weight:400;color:var(--body);line-height:1.55}
  .wr-card-read{font-family:var(--site-font);font-size:0.7rem;font-weight:500;color:var(--muted);letter-spacing:0.05em;text-transform:uppercase;white-space:nowrap;align-self:center}
  .wr-article{display:none}
  .wr-article.active{display:block}
  .wr-back{display:inline-flex;align-items:center;gap:0.4rem;font-family:var(--site-font);font-size:0.78rem;font-weight:500;color:var(--muted);background:none;border:none;cursor:pointer;padding:0;margin-bottom:2rem;letter-spacing:0.02em;text-transform:uppercase;transition:color 0.2s}
  .wr-back:hover{color:var(--accent)}
  .wr-back svg{width:14px;height:14px}
  .wr-post{max-width:65ch;margin:0 auto 4rem}
  .wr-post-meta{display:flex;gap:0.9rem;align-items:center;font-family:var(--site-font);font-size:0.72rem;font-weight:500;color:var(--muted);letter-spacing:0.04em;text-transform:uppercase;margin-bottom:1rem}
  .wr-post-meta .wr-tag{padding:0.18rem 0.55rem;background:var(--bg);border:1px solid var(--border);border-radius:4px;text-transform:none;letter-spacing:0.01em;color:var(--muted)}
  .wr-post h2{font-family:var(--site-font);font-size:2.4rem;font-weight:500;color:var(--primary);line-height:1.1;letter-spacing:-0.02em;margin-bottom:0.75rem}
  .wr-post .wr-dek{font-size:1.05rem;line-height:1.55;color:var(--muted);margin-bottom:2rem;font-weight:400}
  .wr-post p{font-size:1rem;line-height:1.8;color:var(--body);margin-bottom:1.1rem}
  .wr-post .wr-dek+p::first-letter,.wr-post .wr-dek+figure+p::first-letter{font-family:var(--site-font);font-size:3.2rem;font-weight:500;float:left;line-height:0.9;padding:0.3rem 0.5rem 0 0;color:var(--primary)}
  .wr-post h3{font-family:var(--site-font);font-size:1.15rem;font-weight:600;color:var(--primary);margin:2rem 0 0.6rem;letter-spacing:-0.01em}
  .wr-post blockquote{margin:1.5rem 0;padding:0.2rem 0 0.2rem 1.1rem;border-left:3px solid var(--accent);font-style:italic;color:var(--body);font-size:1rem;line-height:1.7}
  .wr-post figure{margin:1.8rem 0}
  .wr-post figure img{width:100%;border-radius:6px;border:1px solid var(--border);display:block}
  .wr-post figcaption{font-family:var(--site-font);font-size:0.75rem;color:var(--muted);margin-top:0.5rem;line-height:1.5;letter-spacing:0.01em}
  .wr-post a{color:var(--accent);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
  .wr-post a:hover{text-decoration-thickness:2px}
  .wr-post hr{border:none;border-top:1px solid var(--border);margin:2.5rem 0}
  .wr-post-footer{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border);font-size:0.88rem;color:var(--muted);line-height:1.6}
  .wr-post-footer a{color:var(--accent);font-weight:500}

  /* ========== POSTER FADE-IN ========== */
  .poster-card{opacity:0;transform:translateY(16px);transition:opacity 0.5s ease,transform 0.5s ease,box-shadow 0.3s}
  .poster-card.visible{opacity:1;transform:translateY(0)}

  /* ========== RESPONSIVE ========== */
  @media(max-width:1180px){.hero-mesh{opacity:0.35}}
  @media(max-width:900px){.hero-mesh{right:0;max-width:55vw;height:auto;opacity:0.3}}
  @media(max-width:700px){
    .top-nav .inner{flex-wrap:wrap;height:auto;padding:0.8rem 1rem;gap:0}
    .nav-toggle{display:block}
    .page-tabs{display:none;width:100%;flex-direction:column;gap:0;padding-top:0.5rem}
    .page-tabs.open{display:flex}
    .page-tab{padding:0.7rem 0;font-size:0.82rem;border-bottom:none;justify-content:flex-start}
    .page-tab.active{border-bottom:none;color:var(--accent)}
    .page-tab-end{margin-left:0;padding-left:0;border-left:none;border-top:1px solid var(--border-light);margin-top:0.4rem;padding-top:0.9rem}
    #research-tabs .work-tab{flex:1;min-width:0;padding:0.8rem 0.35rem;justify-content:center}
    .home-hero{grid-template-columns:1fr;gap:2rem}
    .home-hero{overflow:clip}
    .hero-mesh{right:-1rem;max-width:calc(100vw - 1rem);height:auto;opacity:0.18}
    .hero-photo{width:240px;height:300px;margin:0 auto;order:0}
    .hero-text{order:0;display:flex;flex-direction:column;min-width:0}
    .hero-text h2{font-size:2.4rem;text-align:left;order:1}
    .hero-text .hero-focus,.hero-text .hero-skills{order:2}
    .hero-text p{order:3}
    .hero-text .hero-actions{order:4}
    .hero-text .hero-github{order:5;margin:1.25rem 0 0}
    .home-consult{grid-template-columns:minmax(0,1fr);text-align:left;gap:2rem}
    .home-consult>*{min-width:0}
    .home-consult-form{width:100%}
    .help-examples{grid-template-columns:minmax(0,1fr);gap:1.25rem}
    .photo-row{grid-template-columns:1fr 1fr}
    .gif-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem 0.8rem}
    .updates-list li{grid-template-columns:1fr;gap:0.3rem}
    .pub-item{grid-template-columns:100px 1fr;gap:1rem}
    .pub-item .pub-thumb{width:100px}
    #wv-conf .pub-item.has-thumb, #wv-lectures .pub-item.has-thumb{grid-template-columns:100px 1fr}
    #wv-conf .pub-item .pres-thumb, #wv-lectures .pub-item .pres-thumb{width:100px}
    .teaching-stats{grid-template-columns:repeat(2,1fr)}
    .course-images{grid-template-columns:1fr 1fr}
    .r-pillar-block + .r-pillar-block{padding-top:2.25rem}
    .r-pillar-head{grid-template-columns:1fr;gap:1.25rem}
    .r-pillar-intro h3{font-size:1.25rem}
    .r-showcase{grid-template-columns:repeat(2,1fr);gap:0.6rem}
    .wr-card{grid-template-columns:100px 1fr;gap:1rem;padding:1rem 0}
    .wr-card:hover{padding-left:0;padding-right:0;background:transparent}
    .wr-card-thumb{width:100px;height:75px}
    .wr-card-title{font-size:1rem}
    .wr-card-dek{font-size:0.82rem}
    .wr-card-read{display:none}
    .wr-hero h2{font-size:1.7rem}
    .wr-post h2{font-size:1.85rem}
    .about-top{grid-template-columns:1fr;gap:2rem}
    .about-left{align-items:stretch}
    .about-photo{width:240px;height:240px;margin:0 auto;align-self:center}
    .about-left .cv-quiet{align-self:center}
    .edu-compact{width:calc(100% - 2rem);margin-left:2rem}
    .about-hl-grid{grid-template-columns:repeat(2,1fr)}
    .photo-grid{columns:2}
    .poster-grid{grid-template-columns:1fr 1fr}
    .poster-card .poster-img{height:200px}
    .lightbox-prev{left:0.5rem}.lightbox-next{right:0.5rem}
    .foot{text-align:center}
    #page-consulting .c-page{grid-template-columns:1fr;gap:2rem}
    .c-hero h2{font-size:1.85rem}.c-hero h2 .c-hero-sub{font-size:1.05rem}
    .c-modes{grid-template-columns:1fr;gap:0.75rem}
    .c-track-logos{gap:1rem 1.5rem}
  }

  /* Consulting clarity and resilient navigation, using the existing site palette. */
  .page-tab{text-decoration:none;white-space:nowrap}
  html,body{overflow-x:clip}
  .c-hero p+p{margin-top:0.85rem}
  .c-services{margin-bottom:2rem}
  .c-service{padding:1.25rem 0;border-top:1px solid var(--border);scroll-margin-top:5rem}
  .c-service h3,.c-proof h3{font-family:var(--site-font);font-size:1.1rem;font-weight:600;color:var(--ink);line-height:1.35;margin-bottom:0.65rem}
  .c-service p,.c-proof p{font-size:0.9rem;line-height:1.7;margin-bottom:0.65rem}
  .c-service a{color:var(--accent);text-underline-offset:3px}
  .c-proof{margin-bottom:2rem}
  .c-proof a{color:var(--accent);text-underline-offset:3px;display:inline-block}
  .c-process{margin-bottom:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}
  .c-process h3{font-family:var(--site-font);font-size:1.1rem;font-weight:600;line-height:1.35;color:var(--ink);margin-bottom:1rem}
  .c-process ol{list-style:none;counter-reset:project-step}
  .c-process li{counter-increment:project-step;display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:0.75rem;padding:0.6rem 0;font-size:0.9rem;line-height:1.7}
  .c-process li::before{content:counter(project-step,decimal-leading-zero);font-family:var(--site-font);font-size:0.8rem;font-weight:600;color:var(--accent-2);padding-top:0.1rem}
  .c-process strong{display:block;color:var(--ink)}
  .c-form-section{scroll-margin-top:5rem}
  .form-error{margin-top:1rem;font-size:0.85rem;color:var(--body)}
  .form-error a{color:var(--accent);text-decoration:underline}
  .contact-fallback{font-size:0.85rem;margin-top:1rem}
  .contact-fallback a{color:var(--accent);overflow-wrap:anywhere}
  .section-anchor{display:block;scroll-margin-top:5rem}
  .c-research-cta{flex-wrap:wrap}
  .c-hero h2,.c-service h3{overflow-wrap:anywhere;min-width:0}
  @media(min-width:901px){.c-form-section{position:sticky;top:5rem}}
  @media(max-width:900px){#page-consulting .c-page{grid-template-columns:minmax(0,1fr);gap:2rem}.c-form-section{max-width:560px}}
  @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
  @media(prefers-reduced-motion:reduce){
    *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
    .poster-card{opacity:1;transform:none}
  }

  /* Review refinement. Existing palette, typefaces and content architecture retained. */
  .home-hero{gap:3rem;margin-bottom:3rem;align-items:center}
  .hero-text h2{font-size:clamp(2.6rem,5vw,3.8rem);margin-bottom:1rem}
  .hero-focus{max-width:26ch;margin-bottom:1.15rem;line-height:1.45}
  .hero-text p{font-size:1.04rem;line-height:1.85}
  .hero-github{margin:0 auto 3rem;width:90%;max-width:720px;opacity:0.85}
  .hero-mesh{opacity:0.22}
  .hero-actions{margin-top:1.25rem}
  .personal-strip{margin-top:3.5rem}
  .contact-simple{max-width:640px;padding:3rem 0 5rem;min-height:48vh}
  .contact-simple h2{font-family:var(--site-font);font-size:clamp(2.6rem,5vw,3.8rem);color:var(--primary);line-height:1.1;margin:1rem 0 1.5rem}
  .contact-simple p{font-size:1.05rem;line-height:1.85;color:var(--body)}
  .contact-simple .hero-cta{overflow-wrap:anywhere;margin:1.25rem 0 2rem}
  .contact-simple .contact-note{font-size:0.9rem;color:var(--muted)}
  .contact-note a{color:var(--accent)}
  @media(max-width:768px){.home-hero{gap:1.5rem}.hero-mesh{opacity:0.12}.contact-simple{padding:1rem 0 3rem}.hero-github{margin-bottom:2rem}}

/* Tone study: existing palette, fonts, media and full site content retained. */
#page-home{padding-top:2rem}.hero-github{max-width:720px;width:90%;margin:0 auto 2.5rem;opacity:.75}
.bg-art{opacity:.018}.hero-actions{gap:.5rem 1.5rem}.hero-cta{font-size:.88rem}.hero-text{min-width:0}
.hero-socials a:hover{transform:none}.cm-feature .cm-logo svg,.cm-feature .cm-logo svg path{animation:none!important}
.label-row{margin-top:3rem}.updates-list{margin-bottom:1.5rem}.updates-archive{margin-bottom:0}
@media(max-width:700px){#page-home{padding-top:1.5rem}.hero-github{margin-bottom:1.75rem}.hero-text p{max-width:none}}

.home-hero{grid-template-columns:280px minmax(0,1fr);gap:4rem;max-width:940px;margin:0 auto 3.5rem}
.hero-photo{width:280px;max-width:100%;height:350px;border-radius:5px;box-shadow:none}
.hero-text h2{font-size:3.6rem;font-weight:500}.hero-focus{font-size:1rem;font-weight:500;color:var(--muted);margin:0 0 1.25rem}
.hero-text p{font-size:1.1rem;line-height:1.85;max-width:40ch}.hero-mesh{opacity:.08}
.cm-feature{margin:2rem 0 3rem;background:transparent;border:0;border-block:1px solid var(--border);padding:1.5rem 0;box-shadow:none}
.cm-feature::before,.cm-feature::after{display:none}.cm-feature:hover{transform:none;box-shadow:none}
.cm-feature .cm-label,.cm-feature .cm-cta{color:var(--accent)}.cm-feature .cm-name{color:var(--primary)}.cm-feature .cm-text p{color:var(--body)}
.cm-feature .cm-logo{width:52px;height:52px;background:var(--primary);border-radius:50%;padding:7px}
.home-updates{margin-bottom:3rem}.home-section-label{letter-spacing:.07em}.personal-strip{margin-top:3rem;padding-top:2rem}
@media(max-width:700px){.home-hero{grid-template-columns:minmax(0,1fr);gap:1.75rem}.hero-photo{height:260px;width:208px}.hero-text h2{font-size:2.6rem}.hero-text p{font-size:1rem}.cm-feature{padding:1.25rem 0}}
