@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
:root{--ink:#111111;--paper:#ffffff;--muted:#666666;--line:#d5d5d5;--accent:#111111;--card:#f2f2f2;--max:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Open Sans",Arial,sans-serif;line-height:1.5}.site-header{max-width:var(--max);margin:auto;padding:28px 28px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:1.4rem;font-weight:850;letter-spacing:-.06em;color:var(--ink);text-decoration:none}.brand span{color:var(--accent)}nav{display:flex;gap:28px}nav a,.text-link{color:var(--ink);text-decoration:none;font-size:.9rem;font-weight:650}nav a:hover,.text-link:hover{color:var(--accent)}.section{max-width:var(--max);margin:auto;padding:110px 28px;border-top:1px solid var(--line)}.hero{min-height:82vh;border-top:0;display:flex;flex-direction:column;justify-content:center;position:relative;padding-top:70px}.eyebrow,.section-number{text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:800;color:var(--accent);margin:0 0 24px}.hero h1{font-size:clamp(4rem,10vw,9rem);line-height:.82;letter-spacing:-.075em;max-width:1000px;margin:0}.hero h1 em{font-family:Georgia,serif;font-weight:400}.hero-copy{font-size:clamp(1.15rem,2vw,1.55rem);max-width:680px;margin:48px 0 34px;color:var(--muted)}.hero-actions{display:flex;align-items:center;gap:28px}.button{display:inline-block;background:var(--ink);color:var(--paper);text-decoration:none;padding:15px 22px;font-weight:750;font-size:.9rem}.button:hover{background:var(--accent)}.hero-note{position:absolute;right:28px;bottom:35px;font-size:.8rem;color:var(--muted);display:flex;align-items:center;gap:9px}.pulse{width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block}.split{display:grid;grid-template-columns:1fr 1fr;gap:80px}.split h2,.section-heading h2,.closing h2{font-size:clamp(2.6rem,5vw,5.2rem);line-height:.95;letter-spacing:-.055em;margin:0}.prose{font-size:1.15rem;color:var(--muted);padding-top:40px}.prose p{max-width:570px;margin:0 0 24px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}.card{background:var(--paper);padding:48px;min-height:270px}.card>span,.project-index{font-family:monospace;font-size:.72rem;color:var(--accent)}.card h3{font-size:1.7rem;letter-spacing:-.035em;margin:55px 0 10px}.card p{color:var(--muted);max-width:400px;margin:0}.section-heading{display:grid;grid-template-columns:2fr 1fr;align-items:end;gap:60px;margin-bottom:70px}.section-heading>p{color:var(--muted);max-width:360px}.project{display:grid;grid-template-columns:1.3fr 1fr auto;gap:30px;align-items:center;border-top:1px solid var(--line);padding:28px 4px;color:var(--ink);text-decoration:none;transition:padding .2s ease}.project:last-child{border-bottom:1px solid var(--line)}.project:hover{padding-left:14px;padding-right:14px}.project>div{display:flex;align-items:center;gap:22px}.project h3{font-size:1.55rem;margin:0;letter-spacing:-.03em}.project p{color:var(--muted);margin:0}.arrow{font-size:1.5rem;color:var(--accent)}.closing{text-align:center;padding-top:150px;padding-bottom:150px}.closing .eyebrow{margin-bottom:30px}.closing h2{max-width:900px;margin:0 auto 35px}.closing>p:last-child{color:var(--muted)}footer{max-width:var(--max);margin:auto;padding:28px;display:flex;justify-content:space-between;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem}footer p{margin:0}@media(max-width:760px){nav{gap:14px}.section{padding:75px 20px}.site-header{padding:22px 20px}.hero{min-height:78vh}.hero h1{font-size:clamp(3.8rem,20vw,6.5rem)}.hero-note{position:static;margin-top:70px}.split,.section-heading{grid-template-columns:1fr;gap:30px}.prose{padding-top:0}.cards{grid-template-columns:1fr}.card{padding:34px;min-height:230px}.project{grid-template-columns:1fr auto}.project p{grid-column:1/3;padding-left:42px}.section-heading{margin-bottom:45px}.closing{padding-top:100px;padding-bottom:100px}footer{padding:24px 20px;gap:20px;flex-direction:column}} 
h1,h2,h3,.brand{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
/* Forms retain the existing heading typography and monochrome palette. */
.form-page{min-height:70vh;max-width:900px}.form-page h1{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:clamp(3.5rem,9vw,7rem);line-height:1;letter-spacing:-.065em;margin:0 0 30px}.form-page h2{font-size:1.6rem;letter-spacing:-.04em;margin:45px 0 20px}.form-intro{color:var(--muted);font-size:1.12rem;margin-bottom:35px}.form-page form{display:grid;gap:22px;max-width:620px}.form-page label{display:grid;gap:8px;font-size:.92rem;font-weight:700}.form-page input,.form-page textarea{width:100%;border:1px solid #aaa;background:#fff;color:#111;padding:13px 15px;font:inherit;font-weight:400;border-radius:0}.form-page input:focus,.form-page textarea:focus{outline:2px solid #111;outline-offset:1px}.form-page button{border:0;cursor:pointer;justify-self:start;font:inherit;font-weight:700}.form-alert,.form-notice{border-left:4px solid #111;background:#f1f1f1;padding:16px 20px;margin:24px 0}.honey{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}


/* The Lab, editorial articles and homepage project teasers. */
:where(a,button,input,textarea):focus-visible{outline:2px solid #111;outline-offset:3px}
.lab-index,.lab-article{overflow:hidden}
.lab-index-hero,.lab-index-projects,.lab-index-bottom,.article-hero,.article-reading-layout,.article-more{
  max-width:var(--max);margin-inline:auto;padding-inline:28px
}
.lab-index-hero{padding-block:100px 105px}
.lab-index-hero .section-number{margin-bottom:26px}
.lab-index-hero h1{font-size:clamp(4rem,9.8vw,8.4rem);font-weight:780;line-height:.93;letter-spacing:-.078em;margin:0}
.lab-index-hero h1 em,.article-hero h1 em,.homepage-lab-intro h2 em{
  font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.065em
}
.lab-index-hero>p:not(.section-number){max-width:720px;font-size:clamp(1.13rem,2.2vw,1.55rem);line-height:1.55;color:var(--muted);margin:35px 0}
.lab-index-stamp{display:inline-flex;align-items:center;gap:10px;font-size:.75rem;font-weight:750;color:#666;letter-spacing:.03em}
.lab-index-stamp-dot{width:9px;height:9px;background:#111;border-radius:50%;box-shadow:0 0 0 5px #eee}
.lab-index-projects{padding-block:54px 105px;border-top:1px solid var(--line)}
.lab-section-top{display:flex;gap:25px;align-items:end;justify-content:space-between;margin-bottom:35px}
.lab-section-top .section-number{margin:0 0 12px}
.lab-section-top h2{font-size:clamp(2rem,4vw,3.8rem);line-height:1.04;letter-spacing:-.055em;margin:0}
.lab-project-count{font-size:.7rem;color:#666;font-family:monospace;letter-spacing:.11em;white-space:nowrap}
.lab-featured-project{display:grid;grid-template-columns:1.05fr .95fr;border:1px solid #dedede;min-height:490px}
.lab-featured-copy{display:flex;flex-direction:column;padding:clamp(28px,4.4vw,57px);min-width:0}
.lab-project-meta{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:.68rem;font-family:monospace;letter-spacing:.07em;color:#777}
.lab-featured-copy h3{font-size:clamp(3.4rem,6vw,5.7rem);line-height:1;letter-spacing:-.075em;margin:55px 0 18px}
.lab-featured-copy>p{max-width:530px;color:#5c5c5c;line-height:1.8;font-size:1rem;margin:0}
.lab-project-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:26px}
.lab-project-tags span{font-family:monospace;font-size:.66rem;letter-spacing:.045em;border:1px solid #d5d5d5;padding:6px 9px;color:#555}
.lab-project-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:auto;padding-top:30px}
.lab-project-actions .button,.article-hero-actions .button,.homepage-lab-actions .button{display:inline-flex;align-items:center;gap:17px;justify-content:space-between}
.button-outline{background:#fff;color:#111;border:1px solid #111;padding:14px 21px}
.button-outline:hover{background:#eee}
.lab-featured-preview{position:relative;display:flex;flex-direction:column;min-height:450px;background:#141414;color:white;padding:30px;overflow:hidden}
.lab-preview-top,.lab-preview-bottom{display:flex;justify-content:space-between;gap:15px;font-family:monospace;font-size:.65rem;letter-spacing:.1em;color:#aaa}
.lab-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:43px 0 0}
.lab-preview-route{font-family:Inter,Arial,sans-serif;font-size:clamp(5.5rem,10vw,10rem);font-weight:900;letter-spacing:-.1em;line-height:.9;color:#fff}
.lab-preview-heading>span:last-child{color:#c8c8c8;font-size:.75rem;letter-spacing:.15em;font-family:monospace;line-height:1.8;text-align:right}
.lab-preview-track{position:relative;display:flex;justify-content:space-between;align-items:center;gap:5px;margin:auto 15px 45px;height:38px;border-top:4px solid #888;transform:skewY(-7deg)}
.lab-preview-track i{position:relative;top:-21px;width:20px;height:20px;background:#141414;border:4px solid #fff;border-radius:50%}
.lab-preview-track i:nth-child(3){width:42px;height:42px;top:-20px;border-radius:11px;background:#e6e6e6;border:5px solid #141414;box-shadow:0 0 0 2px #eee}
.lab-preview-bottom{border-top:1px solid #555;padding-top:12px;margin-bottom:15px}
.lab-preview-caption{font-size:.65rem;color:#949494;margin:0}
.lab-index-bottom{border-top:1px solid var(--line);padding-block:45px 90px;display:grid;grid-template-columns:1fr 1.3fr;gap:60px;align-items:start}
.lab-index-bottom .section-number{margin:3px 0}
.lab-index-bottom p:last-child{font-size:clamp(1.05rem,1.8vw,1.3rem);line-height:1.7;color:#555;max-width:680px;margin:0}

/* A small project window on the personal homepage. */
.homepage-lab-intro{display:grid;grid-template-columns:1.2fr .8fr;gap:60px;align-items:end;margin-bottom:50px}
.homepage-lab-intro h2{font-size:clamp(2.5rem,5vw,5rem);letter-spacing:-.065em;line-height:1.01;margin:0}
.homepage-lab-intro>p{color:#666;margin:0 0 7px;line-height:1.75;font-size:1.05rem}
.homepage-lab-project{display:grid;grid-template-columns:.85fr 1.15fr;border:1px solid #ddd;min-height:350px}
.homepage-lab-art{background:#171717;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:35px;min-width:0}
.homepage-lab-art-label,.homepage-lab-art-bottom{font-family:monospace;font-size:.68rem;letter-spacing:.1em;color:#bcbcbc}
.homepage-lab-art-route{display:flex;align-items:center;gap:18px}
.homepage-lab-art-route span:first-child{font-size:clamp(4rem,7vw,7rem);line-height:1;font-weight:900;letter-spacing:-.09em}
.homepage-lab-art-route i{height:3px;background:#9d9d9d;flex:1;min-width:20px}
.homepage-lab-art-route span:last-child{font-size:2rem;color:#fff;line-height:1}
.homepage-lab-project-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(28px,5vw,65px)}
.homepage-lab-project-copy .eyebrow{font-size:.7rem;margin:0 0 17px}
.homepage-lab-project-copy h3{font-size:clamp(2rem,3.2vw,3.2rem);line-height:1.1;letter-spacing:-.055em;margin:0 0 17px}
.homepage-lab-project-copy>p{font-size:.96rem;line-height:1.75;color:#666;max-width:460px;margin:0}
.homepage-lab-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:32px}
.homepage-lab-more{display:inline-flex;gap:10px;margin-top:28px;color:#111;font-weight:750;font-size:.91rem;text-decoration:none;border-bottom:1px solid #111;padding-bottom:7px}
.homepage-lab-more:hover,.article-underlink:hover,.article-more-link:hover{text-decoration:underline}

/* Find My Bus: editorial story */
.article-hero{padding-top:55px;padding-bottom:83px;display:grid;grid-template-columns:minmax(0,1.16fr) minmax(310px,.84fr);gap:45px}
.article-hero-inner{min-width:0;display:flex;align-items:flex-start;flex-direction:column}
.article-breadcrumb{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#777;margin:0 0 50px;font-size:.73rem}
.article-breadcrumb a{font-size:inherit;color:#555;text-decoration:none}
.article-breadcrumb a:hover{text-decoration:underline}
.article-hero .section-number{margin:0 0 23px;font-size:.66rem}
.article-hero h1{font-size:clamp(3.5rem,6.3vw,6.4rem);line-height:1.02;letter-spacing:-.078em;margin:0}
.article-hero h1 em{white-space:nowrap}
.article-lede{font-size:clamp(1.13rem,1.7vw,1.35rem);line-height:1.7;color:#5a5a5a;max-width:650px;margin:29px 0}
.article-lede strong{color:#111;font-weight:750}
.article-byline{display:flex;align-items:center;gap:13px;margin:9px 0 30px}
.article-author-mark{display:grid;place-items:center;border-radius:50%;width:43px;height:43px;background:#111;color:#fff;font-weight:800;letter-spacing:-.08em}
.article-author-info{display:flex;flex-direction:column;gap:3px;font-size:.77rem}
.article-author-info strong{font-size:.81rem}
.article-author-info span{color:#777}
.article-author-info a{color:#111}
.article-hero-actions{display:flex;gap:25px;flex-wrap:wrap;align-items:center;margin-top:auto}
.article-underlink{font-size:.86rem;font-weight:700;color:#111;text-decoration:none;border-bottom:1px solid #111;padding-bottom:6px}
.article-route-visual{background:#151515;color:#fff;min-height:550px;display:flex;flex-direction:column;justify-content:space-between;padding:25px 28px}
.route-visual-top{display:flex;justify-content:space-between;gap:10px;color:#bbb;font-size:.63rem;font-family:monospace;letter-spacing:.08em}
.route-visual-center{padding:25px 0}
.route-visual-line{position:relative;height:110px;margin:40px 5px 10px}
.route-visual-line:before{content:"";position:absolute;top:54px;left:5%;right:5%;height:4px;background:#888;transform:skewY(-8deg)}
.route-visual-stop{position:absolute;top:48px;width:18px;height:18px;border:3px solid #fff;background:#151515;border-radius:50%}
.route-visual-stop.first{left:0}.route-visual-stop.second{left:32%}.route-visual-stop.third{right:0}
.route-visual-vehicle{position:absolute;top:21px;left:61%;display:grid;place-items:center;width:58px;height:68px;background:#eee;border:6px solid #181818;border-radius:14px;transform:rotate(17deg);box-shadow:0 0 0 2px #eee}
.route-visual-vehicle span{font-size:2rem;color:#111;transform:rotate(90deg)}
.route-visual-labels{display:flex;justify-content:space-between;color:#aaa;font-size:.67rem;font-family:monospace;gap:10px}
.route-visual-bottom{margin-top:auto;display:flex;flex-direction:column;font-family:Inter,Arial,sans-serif;letter-spacing:-.055em;line-height:1.15;font-size:clamp(1.5rem,2.6vw,2.4rem)}
.route-visual-bottom span{color:#999}
.route-visual-caption{font-size:.63rem;color:#777;margin:18px 0 0}
.article-reading-layout{display:grid;grid-template-columns:215px minmax(0,760px);gap:90px;padding-top:70px;padding-bottom:100px;border-top:1px solid var(--line)}
.article-aside{display:flex;flex-direction:column;align-items:flex-start;gap:14px;align-self:start;position:sticky;top:35px}
.article-aside-title{font-size:.69rem;font-family:monospace;letter-spacing:.1em;font-weight:800;margin:0 0 15px}
.article-aside a{font-size:.81rem;text-decoration:none;color:#666}
.article-aside a:hover{color:#111;text-decoration:underline}
.article-body{font-size:1.045rem;line-height:1.86;color:#4a4a4a}
.article-body section{scroll-margin-top:35px;margin-bottom:90px}
.article-body section:last-child{margin-bottom:0}
.article-body p{margin:0 0 23px}
.article-body strong{color:#111}
.article-body a{color:#111;text-underline-offset:3px}
.article-body h2{font-size:clamp(2rem,3.6vw,3.35rem);line-height:1.15;letter-spacing:-.055em;color:#111;margin:0 0 30px}
.article-kicker{font-family:monospace;font-size:.7rem;letter-spacing:.09em;font-weight:750;color:#777;margin:0 0 19px!important;text-transform:uppercase}
.article-pullquote{padding:25px 0 25px 30px;margin:0 0 85px;border-left:4px solid #111}
.article-pullquote p{font-family:Georgia,"Times New Roman",serif;font-style:italic;line-height:1.35;font-size:clamp(1.75rem,3vw,2.5rem);letter-spacing:-.03em;margin:0;color:#111}
.article-steps{border-top:1px solid #ddd;margin:35px 0 38px}
.article-step{display:grid;grid-template-columns:60px 1fr;gap:20px;border-bottom:1px solid #ddd;padding:25px 0}
.article-step-number{font-size:.75rem;font-weight:800;font-family:monospace;color:#888;padding-top:5px}
.article-step h3{font-size:1.2rem;line-height:1.3;color:#111;letter-spacing:-.03em;margin:0 0 5px}
.article-step p{font-size:.88rem;line-height:1.65;margin:0;color:#666}
.article-tech-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#ddd;border:1px solid #ddd;margin:37px 0}
.article-tech-grid>div{display:flex;flex-direction:column;background:#f7f7f7;padding:19px;gap:11px}
.article-tech-grid span{font-family:monospace;font-size:.64rem;letter-spacing:.04em;color:#777}
.article-tech-grid strong{font-size:.99rem;letter-spacing:-.03em;line-height:1.35;color:#111}
.article-tech-grid small{font-size:.73rem;line-height:1.55;color:#666}
.article-final-cta{display:flex;align-items:end;justify-content:space-between;gap:24px;background:#141414;color:#fff;padding:35px;margin-top:45px;flex-wrap:wrap}
.article-final-cta>div{display:flex;flex-direction:column;gap:12px}
.article-final-cta>div span{font-size:.65rem;font-family:monospace;letter-spacing:.13em;color:#aaa}
.article-final-cta strong{color:#fff;font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.25;letter-spacing:-.04em}
.article-final-cta .button{background:#fff;color:#111;white-space:nowrap}
.article-final-cta .button:hover{background:#ddd}
.article-more{display:flex;align-items:center;justify-content:space-between;gap:25px;padding-top:55px;padding-bottom:100px;border-top:1px solid #ddd}
.article-more .section-number{margin:0 0 11px}
.article-more h2{font-size:clamp(1.8rem,3.8vw,3.4rem);letter-spacing:-.055em;line-height:1.1;margin:0}
.article-more-link{color:#111;white-space:nowrap;font-weight:750;text-decoration:none;border-bottom:1px solid #111;padding-bottom:5px}
.bus-story-link{margin:13px 0 2px;font-size:.8rem;font-weight:750}
.bus-story-link a{color:#111;text-decoration:underline;text-underline-offset:3px}

@media(max-width:980px){
 .article-hero{grid-template-columns:minmax(0,1fr) minmax(280px,.75fr);gap:22px}
 .article-reading-layout{gap:45px;grid-template-columns:160px minmax(0,1fr)}
 .lab-featured-copy h3{margin-top:35px}
 .lab-featured-preview{min-height:410px}
}
@media(max-width:760px){
 .lab-index-hero,.lab-index-projects,.lab-index-bottom,.article-hero,.article-reading-layout,.article-more{padding-inline:20px}
 .lab-index-hero{padding-block:75px 80px}
 .lab-index-hero h1{font-size:clamp(3.6rem,13.5vw,5.8rem)}
 .lab-index-hero>p:not(.section-number){font-size:1.04rem;margin:23px 0}
 .lab-index-projects{padding-block:45px 70px}
 .lab-section-top{align-items:start;flex-direction:column;gap:15px}
 .lab-featured-project{grid-template-columns:1fr}
 .lab-featured-copy{padding:28px}
 .lab-featured-copy h3{font-size:3.4rem;margin:30px 0 17px}
 .lab-project-actions{margin-top:8px;gap:9px}
 .lab-featured-preview{min-height:315px}
 .lab-preview-heading{margin:25px 0}
 .lab-preview-route{font-size:6rem}
 .lab-preview-track{margin-top:35px;margin-bottom:30px}
 .lab-index-bottom{padding-block:32px 65px;grid-template-columns:1fr;gap:14px}
 .homepage-lab-intro,.homepage-lab-project{grid-template-columns:1fr;gap:22px}
 .homepage-lab-intro h2{font-size:clamp(2.65rem,9vw,4.2rem)}
 .homepage-lab-intro>p{font-size:.97rem}
 .homepage-lab-art{padding:25px;min-height:245px}
 .homepage-lab-art-route span:first-child{font-size:5.8rem}
 .homepage-lab-project-copy{padding:28px}
 .homepage-lab-actions{gap:17px}
 .article-hero{grid-template-columns:1fr;padding-top:24px;padding-bottom:65px;gap:38px}
 .article-breadcrumb{margin-bottom:35px}
 .article-hero h1{font-size:clamp(3.2rem,11.8vw,5.5rem)}
 .article-hero h1 em{white-space:normal}
 .article-lede{font-size:1.1rem}
 .article-route-visual{min-height:330px;padding:22px}
 .route-visual-line{margin:12px 2px 2px}
 .route-visual-center{padding:12px 0}
 .article-reading-layout{grid-template-columns:1fr;padding-top:50px;padding-bottom:65px}
 .article-aside{display:none}
 .article-body{font-size:1rem;line-height:1.8}
 .article-body h2{font-size:clamp(2.05rem,7vw,3rem)}
 .article-body section{margin-bottom:65px}
 .article-pullquote{margin-bottom:65px}
 .article-tech-grid{grid-template-columns:1fr}
 .article-tech-grid>div{padding:18px}
 .article-final-cta{padding:25px}
 .article-more{padding-block:40px 70px;align-items:start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
 .lab-featured-project,.homepage-lab-project{transition:none}
}

.article-share{padding:23px 0;border-top:1px solid #ddd;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.article-share>span{font-family:monospace;text-transform:uppercase;font-size:.71rem;font-weight:750;letter-spacing:.07em;color:#666}
.article-share>div{display:flex;gap:20px;flex-wrap:wrap}
.article-share a,.article-share button{border:0;border-bottom:1px solid #111;border-radius:0;background:transparent;padding:2px 0 5px;font:inherit;font-size:.81rem;font-weight:750;color:#111;text-decoration:none;cursor:pointer}
.article-share a:hover,.article-share button:hover{text-decoration:underline}
.article-share p{font-size:.79rem;color:#555;margin:0}


/* The personal site's common footer. */
.site-footer{align-items:center;flex-wrap:wrap;gap:20px}
.site-footer nav{gap:20px}
.site-footer nav a{font-size:.78rem;color:#444;font-weight:650}
@media(max-width:760px){.site-footer nav{flex-wrap:wrap}.site-footer nav a:nth-child(2){display:inline}}


/* Editorial teaser on the homepage, without adding another decorative image. */
.homepage-thoughts{border-top:1px solid #dedede}
.homepage-thoughts-intro{display:grid;grid-template-columns:1.15fr .85fr;align-items:end;gap:60px;margin-bottom:48px}
.homepage-thoughts-intro h2{font-size:clamp(2.7rem,5.8vw,5.5rem);line-height:1.03;letter-spacing:-.065em;margin:0}
.homepage-thoughts-intro h2 em{font-family:Georgia,"Times New Roman",serif;font-weight:400}
.homepage-thoughts-intro>p{max-width:470px;font-size:1.04rem;line-height:1.75;color:#666;margin:0 0 4px}
.homepage-thought-feature{display:flex;gap:40px;justify-content:space-between;align-items:end;padding:40px 0;border-top:1px solid #d7d7d7;border-bottom:1px solid #d7d7d7}
.homepage-thought-feature h3{font-size:clamp(2rem,3.8vw,3.5rem);line-height:1.16;letter-spacing:-.055em;margin:0 0 18px;max-width:730px}
.homepage-thought-feature h3 a{color:#111;text-decoration:none}
.homepage-thought-feature h3 a:hover{text-decoration:underline;text-underline-offset:6px}
.homepage-thought-feature p:not(.section-number){color:#666;line-height:1.6;margin:0}
.homepage-thought-feature>.text-link{flex:0 0 auto;margin-bottom:7px}
/* Consecutive features share a single divider without becoming boxed cards. */
.homepage-thought-feature+.homepage-thought-feature{border-top:0}
.homepage-thought-list .homepage-thought-feature h3{font-size:clamp(1.85rem,3.2vw,2.9rem)}
.homepage-thoughts .homepage-lab-more{margin-top:35px}
@media(max-width:760px){
 .homepage-thoughts-intro{grid-template-columns:1fr;gap:24px;margin-bottom:35px}
 .homepage-thought-feature{display:block;padding:30px 0}
 .homepage-thought-feature>.text-link{display:inline-block;margin-top:25px}
}


/* Shared sticky table of contents for all Lab and Thoughts articles.
   overflow:hidden on .lab-article used to prevent position:sticky working. */
.lab-article{overflow:visible}
.article-reading-layout>.article-aside{position:sticky;top:26px;max-height:calc(100dvh - 52px);overflow-y:auto;scrollbar-width:thin}
@media(max-width:760px){
 .article-reading-layout>.article-aside{position:static;max-height:none;overflow:visible;display:flex;flex-direction:row;
  flex-wrap:wrap;gap:10px 16px;padding-bottom:24px;margin-bottom:35px;border-bottom:1px solid #e0e0e0}
 .article-reading-layout>.article-aside .article-aside-title{flex-basis:100%;margin:0 0 7px}
 .article-reading-layout>.article-aside a{font-size:.78rem;line-height:1.45}
}


/* The main public navigation is identical across every public page.
   Avoid the old generic "nav a:nth-child(2)" mobile hiding rule. */
.site-header .site-primary-nav{display:flex;align-items:center;justify-content:flex-end;gap:clamp(13px,2.1vw,26px);flex-wrap:wrap}
.site-header .site-primary-nav a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:5px 0;line-height:1.35}
.site-header .site-primary-nav a[aria-current="page"]{box-shadow:inset 0 -2px #111}
@media(max-width:760px){
 .site-header{display:flex;flex-direction:column;align-items:stretch;gap:17px}
 .site-header .brand{align-self:flex-start}
 .site-header .site-primary-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .site-header .site-primary-nav a,.site-header .site-primary-nav a:nth-child(2){display:flex;padding:10px 6px;font-size:.8rem;background:#f7f7f7;border:1px solid #e6e6e6;color:#111;text-align:center;white-space:normal}
 .site-header .site-primary-nav a[aria-current="page"]{background:#111;border-color:#111;color:#fff;box-shadow:none}
}
@media(min-width:761px) and (max-width:860px){
 .site-header{gap:15px}
 .site-header .site-primary-nav{gap:10px}
 .site-header .site-primary-nav a{font-size:.8rem}
}


/* Navigation v2: restrained mobile off-canvas menu with no-JS link-grid fallback.
   Only the shared site primary navigation is affected; article and footer nav
   remain conventional links. All behaviour is scoped to site-nav-ready. */
.site-menu-toggle,.site-menu-close,.site-menu-backdrop{display:none}
.site-menu-toggle[hidden],.site-menu-close[hidden],.site-menu-backdrop[hidden]{display:none!important}
@media(max-width:760px){
  .site-header.site-nav-ready{
    position:relative;z-index:2100;display:flex;flex-direction:row;
    align-items:center;justify-content:space-between;
    width:100%;gap:16px;padding:16px 20px;background:#fff
  }
  .site-header.site-nav-ready .brand{align-self:auto}
  .site-header.site-nav-ready .site-menu-toggle{
    display:inline-flex;align-items:center;justify-content:center;gap:12px;
    min-width:101px;min-height:42px;padding:8px 13px;
    border:1px solid #d7d7d7;border-radius:2px;background:#fff;
    color:#111;cursor:pointer;font:750 .78rem "Open Sans",Arial,sans-serif;
    letter-spacing:.025em
  }
  .site-header.site-nav-ready .site-menu-toggle:focus-visible,
  .site-header.site-nav-ready .site-menu-close:focus-visible,
  .site-header.site-nav-ready .site-primary-nav a:focus-visible{
    outline:2px solid #111;outline-offset:3px
  }
  .site-menu-icon{display:grid;gap:4px;width:19px}
  .site-menu-icon i{display:block;width:19px;height:2px;background:#111;border-radius:2px}
  .site-header.site-nav-ready .site-menu-backdrop{
    position:fixed;inset:0;z-index:2101;display:block;width:100%;height:100%;
    margin:0;border:0;background:rgba(0,0,0,.53);cursor:pointer
  }
  .site-header.site-nav-ready .site-primary-nav{
    position:fixed;inset:0 0 0 auto;z-index:2102;
    width:min(88vw,370px);height:100vh;height:100dvh;max-height:100dvh;
    max-width:100%;min-width:0;display:flex;flex-direction:column;align-items:stretch;
    justify-content:flex-start;gap:0;margin:0;padding:88px 28px 38px;
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;background:#fff;
    box-shadow:-12px 0 44px rgba(0,0,0,.18);border-left:1px solid #ddd;
    transform:translateX(105%);visibility:hidden;pointer-events:none;
    transition:transform .25s ease,visibility .25s ease
  }
  .site-header.site-nav-open .site-primary-nav{
    transform:translateX(0);visibility:visible;pointer-events:auto
  }
  .site-header.site-nav-ready .site-primary-nav::before{
    content:"Explore";position:absolute;top:26px;left:28px;
    color:#111;font-size:1.35rem;line-height:1.4;letter-spacing:-.045em;
    font-weight:800
  }
  .site-header.site-nav-ready .site-primary-nav::after{
    content:"VISHAL SAHODY  /  PERSONAL WEBSITE";display:block;
    padding-top:30px;margin-top:auto;font:750 .58rem ui-monospace,monospace;
    letter-spacing:.065em;color:#999
  }
  .site-header.site-nav-ready .site-menu-close{
    display:grid;place-items:center;position:absolute;
    top:25px;right:24px;width:34px;height:34px;margin:0;
    padding:0;border:1px solid #dcdcdc;background:#f7f7f7;
    color:#111;cursor:pointer;font:400 1.45rem/1 Arial,sans-serif
  }
  .site-header.site-nav-ready .site-primary-nav a,
  .site-header.site-nav-ready .site-primary-nav a:nth-child(2){
    display:flex;justify-content:space-between;align-items:center;
    flex:0 0 auto;min-height:61px;padding:13px 4px;margin:0;
    background:transparent;border:0;border-bottom:1px solid #e6e6e6;
    border-radius:0;color:#111;text-align:left;
    font-size:1.12rem;line-height:1.35;font-weight:650;letter-spacing:-.025em;
    box-shadow:none;white-space:normal
  }
  .site-header.site-nav-ready .site-primary-nav a::after{
    content:"↗";font-size:.83rem;font-weight:500;color:#999;margin-left:15px
  }
  .site-header.site-nav-ready .site-primary-nav a[aria-current="page"]{
    color:#111;font-weight:800;background:transparent;border-color:#aaa;
    box-shadow:none
  }
  .site-header.site-nav-ready .site-primary-nav a[aria-current="page"]::after{
    content:"•";font-size:1rem;color:#111
  }
  .site-header.site-nav-ready .site-primary-nav a:hover{color:#444}
  body.site-nav-is-open{overflow:hidden!important;overscroll-behavior:none}
}
@media(prefers-reduced-motion:reduce){
  .site-header.site-nav-ready .site-primary-nav{transition:none}
}

/* Separate, second Lab experiment: preserve the existing Find My Bus layout. */
.lab-featured-project + .lab-featured-project{margin-top:48px}
.lab-training-preview{filter:grayscale(1)}
.lab-training-feature .lab-featured-copy p{max-width:650px}
@media(max-width:760px){.lab-featured-project + .lab-featured-project{margin-top:24px}}
