/* A continuous document: chapters grow with the directory, with no hidden skills. */
.expertise-chapters{padding-bottom:20px}
.expertise-chapters .expertise-heading{padding:42px 0 28px;display:block}
.expertise-chapters .expertise-heading h1{font-size:clamp(46px,5vw,76px);line-height:1.05;margin:0 0 15px;letter-spacing:-.04em}
.expertise-chapters .expertise-heading p{font-size:23px;color:var(--muted);margin:0}
.chapter-jumps{display:flex;flex-wrap:wrap;gap:10px 28px;border-bottom:1px solid #9ac4df80;padding:12px 16px;position:sticky;top:0;z-index:5;background:#0c2037f2;backdrop-filter:blur(12px)}
.admin-bar .chapter-jumps{top:32px}
.chapter-jumps a{display:flex;align-items:center;gap:8px;color:var(--paper);text-decoration:none;font-size:13px;min-height:30px;position:relative}
.chapter-jumps a>span{color:var(--cyan);font-size:11px}
.chapter-jumps a:after{content:'';height:1px;background:var(--cyan);position:absolute;left:0;right:0;bottom:-5px;transform:scaleX(0);transform-origin:left;transition:transform .18s ease}
.chapter-jumps a:hover,.chapter-jumps a[aria-current]{color:var(--cyan)}
.chapter-jumps a[aria-current]:after{transform:scaleX(1)}
.skill-chapters{position:relative;padding-left:52px}
.skill-chapters:before{content:'';position:absolute;left:20px;top:50px;bottom:35px;width:2px;background:linear-gradient(var(--cyan),#c9f33480)}
.skill-chapter{position:relative;display:grid;grid-template-columns:minmax(180px,.88fr) minmax(440px,1.78fr) minmax(210px,.85fr);gap:35px;align-items:start;padding:34px 0 30px;border-bottom:1px solid var(--line);scroll-margin-top:95px;outline-offset:8px}
.chapter-number{position:absolute;left:-54px;top:33px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--cyan);border-radius:50%;background:#182b43;color:var(--cyan);font:600 14px/1 ui-monospace,monospace}
.chapter-number:after{content:'';position:absolute;left:100%;width:10px;top:50%;height:1px;background:var(--cyan)}
.expertise-chapters .chapter-heading h2{font-size:clamp(27px,2.5vw,36px);line-height:1.15;letter-spacing:-.025em;margin:4px 0 14px}
.chapter-heading p{font-size:15px;line-height:1.65;margin:0;color:var(--muted);max-width:280px}
.chapter-tree{position:relative;display:flex;flex-direction:column;gap:20px;min-width:0}
.chapter-branch{position:relative;display:grid;grid-template-columns:minmax(160px,.95fr) minmax(210px,1.15fr);column-gap:27px;min-width:0}
.chapter-branch:before{content:'';position:absolute;left:-19px;top:14px;height:calc(100% + 20px);border-left:1px solid #b9deefb3}
.chapter-branch:last-child:before{display:none}
.chapter-branch-heading{padding-inline-start:12px}
.chapter-branch-heading:before{content:'';position:absolute;left:-19px;top:14px;width:15px;border-top:1px solid #b9deefb3}
.chapter-branch:after{content:'';position:absolute;width:6px;height:6px;border:1px solid #c2ecff;background:#102239;border-radius:50%;left:-6px;top:11px}
.expertise-chapters .chapter-branch-heading h3{font-size:19px;line-height:1.3;color:var(--cyan);margin:2px 0 10px;letter-spacing:-.015em}
.chapter-branch-heading p{font-size:13px;line-height:1.6;color:var(--muted);margin:0;max-width:210px}
.chapter-skills{list-style:none!important;padding:0 0 0 14px!important;margin:0!important;position:relative;min-width:0;align-self:start}
.chapter-skills:before{content:'';position:absolute;left:0;top:17px;bottom:17px;border-left:1px solid #b9deefb3}
.chapter-skills li{position:relative;margin:0;padding:0}
.chapter-skills li:before{content:'';position:absolute;width:14px;left:-14px;top:17px;border-top:1px solid #b9deefb3}
.chapter-skills li:after{content:'';position:absolute;width:6px;height:6px;left:-3px;top:14px;background:#102239;border:1px solid #c2ecff;border-radius:50%}
.chapter-skills a,.chapter-skill-unlinked{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px;padding:6px 0 6px 14px;min-height:34px;color:var(--paper);font-size:15px;line-height:1.4;text-decoration:none}
.chapter-skills a{transition:color .18s,background .18s}
.chapter-skills a:hover{color:var(--cyan);background:#b7d3f00b}
.chapter-skill-name{min-width:0;overflow-wrap:anywhere}
.skill-examples{font-size:11px;white-space:nowrap;color:var(--muted)}
.skill-examples>span{color:var(--cyan);margin-left:4px}
.skill-year{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.chapter-project{margin:0;align-self:center;width:100%;min-width:0}
.chapter-project a{display:block;text-decoration:none;color:var(--paper)}
.chapter-project-image{display:block;aspect-ratio:1.18;background:radial-gradient(ellipse at 50% 35%,#41648655,transparent 70%),#102239;border:1px solid #587a9b;border-radius:6px;overflow:hidden;padding:10px}
.chapter-project img{display:block;width:100%;height:100%;object-fit:contain}
.chapter-project-caption{display:flex;justify-content:space-between;gap:15px;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5}
.chapter-project-caption>span{color:var(--cyan)}
.chapter-project a:hover .chapter-project-caption{color:var(--paper)}
.chapter-contact{display:grid;grid-template-columns:1fr 1.5fr auto;align-items:center;gap:35px;padding:32px 0 20px 52px}
.expertise-chapters .chapter-contact h2{font-size:29px;line-height:1.15;margin:0;letter-spacing:-.025em}
.chapter-contact p{font-size:15px;line-height:1.65;margin:0;color:var(--muted);max-width:420px}
.chapter-contact .button{white-space:nowrap;text-decoration:none}
@media(min-width:1550px){.skill-chapter{grid-template-columns:minmax(215px,.9fr) minmax(520px,1.8fr) minmax(250px,.85fr);gap:45px}.chapter-branch{grid-template-columns:minmax(190px,1fr) minmax(250px,1.2fr);gap:35px}.chapter-skills a,.chapter-skill-unlinked{font-size:17px;min-height:37px}.skill-examples{font-size:11px}}
@media(max-width:1200px){.skill-chapter{grid-template-columns:minmax(185px,.85fr) minmax(400px,1.7fr) minmax(165px,.7fr);gap:27px}.chapter-branch{grid-template-columns:minmax(150px,.9fr) minmax(190px,1.1fr);gap:22px}.chapter-skills a,.chapter-skill-unlinked{font-size:14px}.skill-examples{font-size:10px}.chapter-project-image{aspect-ratio:.95}.chapter-heading p{font-size:14px}.chapter-jumps{column-gap:23px}}
@media(max-width:1000px){.skill-chapter{grid-template-columns:minmax(180px,.8fr) minmax(380px,1.7fr);gap:24px}.chapter-heading{grid-column:1;grid-row:1}.chapter-tree{grid-column:2;grid-row:1/3}.chapter-project{grid-column:1;grid-row:2;align-self:end}.chapter-project-image{aspect-ratio:1.05}.chapter-contact{grid-template-columns:1fr auto}.chapter-contact h2{grid-column:1}.chapter-contact p{grid-column:1;grid-row:2}.chapter-contact .button{grid-column:2;grid-row:1/3}.chapter-contact{gap:15px 30px}.chapter-jumps{column-gap:18px}.chapter-jumps a{font-size:12px}}
@media(max-width:760px){.expertise-chapters .expertise-heading{padding:30px 0 24px}.expertise-chapters .expertise-heading h1{font-size:48px}.expertise-chapters .expertise-heading p{font-size:19px}.chapter-jumps,.admin-bar .chapter-jumps{position:static;gap:8px 20px;padding:12px 14px}.chapter-jumps a{font-size:12px;min-height:34px}.skill-chapter{display:block;padding-top:30px;scroll-margin-top:25px}.chapter-number{top:30px}.chapter-heading{margin-bottom:28px}.chapter-heading p{max-width:500px}.chapter-tree{margin-left:17px;gap:24px}.chapter-branch:before{height:calc(100% + 24px)}.chapter-branch{grid-template-columns:minmax(130px,.8fr) minmax(200px,1.2fr);gap:22px}.chapter-skills a,.chapter-skill-unlinked{font-size:15px;min-height:38px}.skill-examples{font-size:10px}.chapter-project{max-width:320px;margin-top:28px}.chapter-project-image{aspect-ratio:1.3}.chapter-contact{padding-top:28px}.expertise-chapters .chapter-contact h2{font-size:26px}}
@media(max-width:520px){.skill-chapters{padding-left:34px}.skill-chapters:before{left:10px;top:46px}.chapter-number{width:32px;height:32px;left:-39px;top:32px;font-size:11px}.chapter-number:after{width:6px}.expertise-chapters .chapter-heading h2{font-size:29px}.chapter-branch{display:block}.chapter-tree{margin-left:14px;gap:28px}.chapter-branch:before{left:-16px;height:calc(100% + 28px)}.chapter-branch-heading:before{left:-16px;width:12px}.chapter-branch-heading p{max-width:320px;font-size:13px}.expertise-chapters .chapter-branch-heading h3{margin-bottom:7px}.chapter-skills{margin:14px 0 0 15px!important}.chapter-skills a,.chapter-skill-unlinked{min-height:44px;font-size:15px;padding-block:9px}.chapter-skills:before{top:22px;bottom:22px}.chapter-skills li:before{top:22px}.chapter-skills li:after{top:19px}.chapter-project{max-width:none}.chapter-contact{display:block;padding-left:34px}.chapter-contact p{margin:14px 0 20px}.chapter-contact .button{font-size:15px}.chapter-jumps{column-gap:16px}.chapter-jumps a{font-size:11px}.chapter-jumps a>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.chapter-jumps a:after,.chapter-skills a{transition:none}}
@media print{.chapter-jumps,.chapter-contact{display:none}.skill-chapters:before,.chapter-tree:before,.chapter-branch:before,.chapter-branch:after,.chapter-skills:before,.chapter-skills li:before,.chapter-skills li:after{display:none}.skill-chapter{break-inside:avoid}.chapter-skills a,.chapter-skill-unlinked,.expertise-chapters .chapter-branch-heading h3{color:inherit}.chapter-number{background:none;color:inherit;border-color:currentColor}}
