:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#667085;--accent:#183b66;--line:#dfe5ec;--soft:#edf2f7;--max:1120px}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}body.lb-open{overflow:hidden}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.wrap{max-width:var(--max);margin:auto;padding:0 24px}nav{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}nav .wrap{display:flex;justify-content:space-between;align-items:center;min-height:64px}.brand{font-weight:800;letter-spacing:.04em}.links{display:flex;gap:18px;font-size:.95rem}.hero{padding:78px 0 54px;background:linear-gradient(180deg,#fff 0%,#f5f7fb 100%)}.kicker{font-size:.82rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}h1{font-size:clamp(2.5rem,6vw,5rem);line-height:1.02;margin:.25em 0 .2em}.subtitle{font-size:clamp(1.05rem,2vw,1.4rem);max-width:850px;color:#39465e}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-block;padding:11px 16px;border-radius:9px;border:1px solid var(--accent);font-weight:650}.btn.primary{background:var(--accent);color:#fff}section{padding:54px 0}.section-title{font-size:1.7rem;margin:0 0 22px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 3px 12px rgba(20,38,63,.04)}.card h3{margin:.1em 0 .4em}.meta{color:var(--muted);font-size:.88rem}.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.tag{background:var(--soft);border-radius:999px;padding:4px 9px;font-size:.77rem;color:#46536a}.timeline{border-left:2px solid var(--line);margin-left:8px;padding-left:24px}.role{margin:0 0 25px}.role h3{margin:0}.role .meta{margin:2px 0 6px}.quote{font-size:1.3rem;max-width:850px;font-weight:600}.article{max-width:var(--max);margin:auto;padding:0 24px}.article h1{font-size:2.7rem}.article h2{margin-top:2rem}.article p,.article li{font-size:1.03rem}main article p,main article li{text-align:justify;text-justify:inter-word;overflow-wrap:break-word}.article-hero{width:100%;max-width:100%;margin:32px 0 38px;transform:none}.article-figure,article figure{margin:32px 0 38px}.article figure{position:relative}.article-hero img,.article-figure img,article figure img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;border-radius:16px;border:1px solid var(--line);box-shadow:0 12px 30px rgba(20,38,63,.10);background:#fff;cursor:zoom-in;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}.article-hero img:hover,.article-figure img:hover,article figure img:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(20,38,63,.16);filter:saturate(1.02)}.article-hero figcaption,.article-figure figcaption,article figure figcaption{margin-top:10px;color:var(--muted);font-size:.86rem;text-align:center}.article figure.diagram,.article-figure.diagram{width:min(1180px,calc(100vw - 48px));max-width:none;margin-left:50%;transform:translateX(-50%)}.article-signoff{margin-top:42px;padding-top:22px;border-top:1px solid var(--line)}.article-signoff p{font-size:.96rem;font-style:italic;color:var(--muted);margin:0 0 12px}.article-signoff a{font-weight:700}footer{border-top:1px solid var(--line);background:#fff;padding:26px 0;color:var(--muted);font-size:.9rem}.image-lightbox{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(9,18,31,.88);backdrop-filter:blur(7px)}.image-lightbox.open{display:flex}.image-lightbox__frame{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.image-lightbox__img{display:block;max-width:96vw;max-height:92vh;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 24px 70px rgba(0,0,0,.45);background:#fff;cursor:zoom-out}.image-lightbox__close{position:fixed;top:18px;right:22px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:#172033;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.2)}.image-lightbox__hint{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);padding:6px 10px;border-radius:999px;background:rgba(10,20,35,.7);color:#fff;font-size:.78rem;letter-spacing:.02em}@media(max-width:820px){.grid{grid-template-columns:1fr}.hero{padding-top:52px}.article{padding:0 14px}.article-hero{width:100%;max-width:100%;margin:24px 0 30px;transform:none}.article-figure,article figure{margin:24px 0 30px}.article-hero img,.article-figure img,article figure img{border-radius:12px}.article figure.diagram,.article-figure.diagram{width:calc(100vw - 28px)}.image-lightbox{padding:12px}.image-lightbox__img{max-width:98vw;max-height:88vh}.image-lightbox__close{top:10px;right:10px}nav .wrap{display:block;min-height:0;padding:8px 18px 0}.brand{display:flex;align-items:center;min-height:42px}.brand a{display:inline-flex;align-items:center;white-space:nowrap;max-width:100%}.links{display:flex;flex-wrap:nowrap;gap:20px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:7px 0 10px;font-size:.88rem}.links::-webkit-scrollbar{display:none}.links a{flex:0 0 auto}main article p,main article li,.featured-card p,#about p,.card p,.role p,.principle p{text-align:left!important;text-justify:auto!important;word-spacing:normal!important;letter-spacing:normal!important}.article-hero figcaption,.article-figure figcaption,article figure figcaption{text-align:left!important}.wrap{padding-left:18px;padding-right:18px}}
/* Reading progress for Engineering Notes */
.reading-progress{position:fixed;top:0;left:0;z-index:9999;width:100%;height:3px;pointer-events:none;background:transparent}
.reading-progress__bar{display:block;width:0;height:100%;background:#2563eb;box-shadow:0 0 8px rgba(37,99,235,.35);transition:width .08s linear}
@media(prefers-reduced-motion:reduce){.reading-progress__bar{transition:none}}
