/* Long-page structure layered over the current homepage design. */
html:has(.home-long){scroll-behavior:smooth;scroll-padding-top:100px;overscroll-behavior:auto}
body.home-long:has(.is-cycling){height:auto;min-height:100dvh;overflow:visible}
.home-long:has(.is-cycling) .fs-frame,.home-long .fs-frame{min-height:calc(100svh - 104px);overflow:clip;isolation:isolate}
.home-long .fs-hero{display:grid;align-items:center;flex:1;min-height:560px}
.home-long .fs-projects{position:fixed;height:100dvh;inset:0 0 auto}
.home-long .fs-role .about-roles-slot{overflow:visible;padding-inline:.07em;margin-inline:-.07em}
.home-long .fs-role--live{padding-block:.12em;line-height:1.12}
.home-long .fs-role-width{padding-right:.08em}
.home-long .site-header{position:sticky;top:0}
.long-work,.long-writing,.long-running{scroll-margin-top:110px;padding-top:64px}
.long-heading{display:flex;justify-content:space-between;align-items:baseline;gap:24px;max-width:1040px;margin:0 auto 40px;padding:0 var(--home-gutter);box-sizing:border-box}
.long-heading h2,.long-running h2{margin:0;font:400 clamp(32px,4vw,52px)/1.1 var(--font-serif)}
.long-heading p{max-width:44ch;font:20px/1.45 var(--font-serif);margin:20px 0 0}
.long-heading a{white-space:nowrap;color:var(--color-content);font-size:16px}
.long-heading .long-muted{font:14px/1.5 Inter,sans-serif;color:var(--home-muted);margin-top:10px}
.long-work .work-meta h3{margin:0 0 6px;font:400 clamp(28px,3vw,40px)/1.1 var(--font-serif)}
.long-work .work-meta h3 a{color:var(--color-content);text-decoration:none}
.long-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;max-width:1040px;margin:0 auto;padding:0 var(--home-gutter);box-sizing:border-box}
.long-post{color:var(--color-content);text-decoration:none;min-width:0}
.long-post img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;display:block}
.long-post h3{font:400 clamp(24px,2.4vw,30px)/1.15 var(--font-serif);margin:20px 0 12px}
.long-post p{font:16px/1.5 Inter,sans-serif;color:var(--color-content-body)}
.long-post:hover h3{text-decoration:underline;text-underline-offset:4px}
.home-long .home-journey{margin-top:120px;margin-bottom:48px}
.long-running{margin:0 var(--home-gutter) 80px}
.long-running>p{font:20px/1.4 var(--font-serif)}
.long-route{max-width:680px;margin:40px auto;text-align:center}
.long-route svg{display:block;width:100%;height:400px;overflow:visible;color:var(--route-blue)}
.long-route path{stroke:currentColor;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.long-route circle{fill:currentColor}
.long-route figcaption{font:18px/1.5 var(--font-serif);margin-top:24px}
.long-reveal{transition:opacity .65s ease,transform .65s cubic-bezier(.22,1,.36,1)}
.long-reveal.is-waiting{opacity:0;transform:translateY(20px)}
@media(max-width:767px){
 .home-long .fs-frame{min-height:calc(100svh - 80px)}
 .home-long .fs-hero{min-height:540px;padding-top:80px;padding-bottom:100px}
 .home-long .fs-role{font-size:clamp(44px,8.8vw,66px)}
 .long-work,.long-writing{padding-top:40px}
 .long-heading{flex-wrap:wrap;margin-bottom:28px}
 .long-posts{grid-template-columns:1fr;gap:40px}
 .home-long .home-journey{margin-top:72px}
 .long-route svg{height:300px}
}
@media(prefers-reduced-motion:reduce){html:has(.home-long){scroll-behavior:auto}.long-reveal{transition:none}.long-reveal.is-waiting{opacity:1;transform:none}}
/* Italic overhang and descenders must remain visible while the role width animates. */
.home-long .fs-role .about-roles-slot{overflow:visible;padding-inline-end:.08em}
/* Keep the hero's fixed-position artwork inside its own first screen while scrolling. */
.home-long .fs-frame{clip-path:inset(0);min-height:calc(100svh - 110px)}
/* A solid reading surface keeps the existing nav legible above later sections. */
.home-long .site-header{background:var(--color-surface)}
/* A quiet, left-aligned introduction leads directly into the work below. */
.home-long .fs-hero{text-align:left;padding-inline:var(--home-gutter)}
.home-long .fs-block{justify-items:start}
.home-long .fs-live{width:100%}
.home-long .fs-role--live{margin-inline:0;text-align:left}
.home-long .fs-data{margin-inline:0;text-align:left;text-wrap:pretty;max-width:42ch}
.long-hero-guide{position:relative;z-index:2;max-width:52ch;margin:32px 0 0;font:400 clamp(18px,1.6vw,22px)/1.5 var(--font-serif);color:var(--color-content-body)}
.long-hero-guide a{color:var(--color-content);text-underline-offset:4px}
.long-hero-guide strong{font-weight:600}
.home-long [data-hero-projects-disabled] .fs-projects{display:none}
@media(max-width:767px){
 .home-long .fs-hero{padding-top:56px;padding-bottom:64px}
 .long-hero-guide{margin-top:24px;font-size:18px}
}
.long-hero-guide a{text-decoration:underline;text-decoration-thickness:1px}
/* The long page keeps article previews in Writing; the hero keeps its words. */
.home-long [data-hero-post-disabled] .fs-writing{display:none}
.home-long .fs-contact{flex-wrap:wrap;gap:12px 16px}
/* Same primary tokens and spacing as the shared button system. Keep a 44px tap target. */
@media(max-width:767px){.home-long .fs-contact{gap:12px}.home-long .fs-footer{row-gap:18px}.home-long .fs-contact.is-stacked .fs-contact__email{left:0}}
/* Let content set the first screen's height so work appears sooner. */
.home-long:has(.is-cycling) .fs-frame,.home-long .fs-frame{min-height:0;flex:none}
.home-long .fs-hero{min-height:0;flex:none;padding-top:48px;padding-bottom:56px}
.home-long .fs-footer{margin-bottom:24px}
.home-long .long-work{padding-top:32px}
@media(max-width:767px){
 .home-long .fs-hero{padding-top:36px;padding-bottom:32px}
 .home-long .fs-block.is-cycling{padding-bottom:140px}
 .home-long .long-work{padding-top:24px}
}

/* Filled version of the case-study contact pill, using its existing email reveal. */
.home-long .fs-contact__say.footer-cta{min-height:44px;margin:0;padding:12px 22px;gap:16px;border:1px solid var(--color-background-strong);border-radius:999px;background:var(--color-background-strong);color:var(--color-content-inverse);font:400 clamp(18px,1.8vw,22px)/1 var(--font-serif);transition:color .2s ease,background-color .2s ease,border-color .2s ease}
.home-long .fs-contact__say.footer-cta:hover{background:var(--color-background-strong-hover);border-color:var(--color-background-strong-hover);color:var(--color-content-inverse)}
.home-long .fs-contact__say.footer-cta:focus-visible{outline:2px solid var(--color-content);outline-offset:4px}
.home-long .fs-contact__say.is-revealed .home-arrow{display:none}

/* Keep availability and contact together below the introduction; time belongs in the footer. */
.home-long .fs-block > .fs-footer{margin:28px 0 0}
.home-long .fs-contact{display:flex;align-items:center;gap:16px 24px}
.home-long .home-footer-meta{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:16px;margin-top:20px}
.home-long .home-footer-meta .site-credit{margin:0}
@media(max-width:767px){
 .home-long .fs-contact{flex-direction:column;align-items:flex-start;gap:16px}
 .home-long .fs-block > .fs-footer{margin-top:24px}
 .home-long .fs-contact .fs-contact__say{align-self:flex-start}
 .home-long .home-footer-meta .fs-time{margin:0}
}
/* A hidden address reserves the wider state so the row never wraps on reveal. */
.home-email-contact{display:inline-grid;grid-template-areas:"contact";align-items:center;max-width:100%;min-height:48px}
.home-email-contact__measure,.home-email-contact>[data-home-email]{grid-area:contact;justify-self:start}
.home-email-contact__measure{visibility:hidden;pointer-events:none;white-space:nowrap;padding:12px 22px;border:1px solid transparent;font:400 clamp(18px,1.8vw,22px)/1 var(--font-serif)}
.home-long .home-email-contact>[data-home-email]{min-height:48px;margin:0;white-space:nowrap;transition:background-color .2s ease,color .2s ease,scale .15s ease}
.home-long .footer-cta[data-home-email].is-revealed{background:transparent;border-color:var(--color-content);color:var(--color-content);padding-inline:22px;cursor:copy;user-select:all}
.home-email-contact__address{display:inline-block}
.home-email-contact__address>span{display:inline-block}
@media(hover:hover){.footer-cta[data-home-email]:not(.is-revealed):hover .home-arrow{translate:6px 0}}
.footer-cta[data-home-email]:active{scale:.97}
@media(prefers-reduced-motion:reduce){.home-long .home-email-contact>[data-home-email]{transition:none;scale:none}}
/* Availability above contact on every screen size. */
.home-long .fs-contact{flex-direction:column;align-items:flex-start;gap:16px}
.latest-run-trigger{border:0;background:transparent;padding:0;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.latest-run-trigger:focus-visible{outline:2px solid var(--route-blue);outline-offset:4px}
.latest-run-panel{margin:20px 0 0;max-width:420px;width:100%;color:var(--route-blue)}
.latest-run-panel[hidden],.latest-run-panel svg[hidden]{display:none}
.latest-run-panel svg{width:100%;height:260px;overflow:visible}
.latest-run-panel path{stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.latest-run-panel circle{fill:currentColor}
.latest-run-panel figcaption{font:14px/1.6 Inter,sans-serif;color:var(--color-content-body)}
.latest-run-panel figcaption p{margin:0 0 8px}
.latest-run-panel figcaption a{color:inherit;text-decoration:underline;text-underline-offset:4px}
@media(min-width:1100px){
 .home-long .fs-live{max-width:60%}
 .home-long .fs-role{font-size:clamp(58px,6vw,110px)}
 .latest-run-panel{position:absolute;top:20px;right:0;width:36%;margin:0}
}
@media(max-width:767px){.home-long .fs-block.is-cycling{padding-bottom:24px}}
/* Individual animated letters can be slightly wider than a kerned word; reserve that difference. */
.home-email-contact__measure{padding-inline:26px}
