/* A single global header for the homepage and every portfolio inner page. */
body.portfolio-shell{--rail:0px;--portfolio-gutter:clamp(18px,3vw,64px);--portfolio-space:clamp(24px,3vw,48px)}
.portfolio-shell main,.portfolio-shell .page,.portfolio-shell .site-footer{margin-left:0}
.portfolio-shell .topbar{position:sticky;top:0;z-index:40;height:auto;min-height:64px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px clamp(16px,2vw,32px);background:#fdfcfb;border-bottom:1px solid #bfc7c7}
.portfolio-shell .topbar .brand-lockup{display:inline-flex;align-items:center;gap:12px;white-space:nowrap}
.portfolio-shell .topbar .brand-mark{width:40px;height:auto}
.portfolio-shell .topbar .brand{display:inline-flex;gap:.38em;font:800 1.65rem Manrope,sans-serif;letter-spacing:-.015em}
.portfolio-shell .topbar .brand-surname{color:#075866}
.portfolio-shell .topbar .top-sub{border-left:1px solid #b7c3c5;padding-left:13px;font-size:.75rem;line-height:1.35;max-width:320px}
.portfolio-shell .topbar .top-spacer{flex:1}
.inner-global-nav{display:flex;align-items:center;gap:10px;margin-left:auto}
.inner-global-nav a{font-size:1rem;font-weight:700;padding:10px 13px;border-radius:3px;border-bottom:3px solid transparent;white-space:nowrap;text-decoration:none}
.inner-global-nav a:hover{background:#e8f4f5;color:#075866}
.inner-global-nav a[aria-current]{background:#edf5f5;color:#075866;border-bottom-color:#812579;border-radius:3px 3px 0 0;font-weight:800}
.portfolio-shell .top-icons{display:flex;align-items:center;margin-left:0;gap:10px}
.portfolio-shell .top-icons svg.icon{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7}
.portfolio-shell .topbar>.theme{position:static;width:auto;min-height:32px;margin:0;padding:7px 10px;font-size:.72rem;border:1px solid #bccdd2;white-space:nowrap;background:white;color:#075866;display:inline-flex;align-items:center;gap:5px}
.portfolio-shell .topbar>.theme svg{width:15px;height:15px;margin:0}
.portfolio-shell>.back-top{position:fixed;left:auto;right:18px;bottom:18px;width:auto;z-index:30;padding:10px 14px;border-radius:4px;border:1px solid #a6bcc4;box-shadow:0 3px 15px #173a4a17}
.portfolio-breadcrumb{background:#fff;border-bottom:1px solid #d3e1e7;padding:11px clamp(18px,2.1vw,38px);color:#526878;font-size:.8rem}
.portfolio-breadcrumb ol{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;list-style:none;padding:0;margin:0}
.portfolio-breadcrumb li+li:before{content:'/';margin-right:10px;color:#8da1ab}
.portfolio-breadcrumb a{color:#075866;text-decoration:underline;text-underline-offset:3px}
.portfolio-breadcrumb [aria-current]{font-weight:600;color:#123549}
.portfolio-return-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;border-top:1px solid #d3e1e7;padding-top:19px;margin-top:20px}
.portfolio-return-links a{color:#075866;font-weight:700;font-size:.95rem;text-decoration:underline;text-underline-offset:4px}
html[data-theme=dark] .inner-global-nav a:hover,html[data-theme=dark] .inner-global-nav a[aria-current]{background:#244450;color:#ace2e7}
html[data-theme=dark] .inner-global-nav a[aria-current]{border-bottom-color:#d6a1cf}
html[data-theme=dark] .portfolio-breadcrumb{background:#101b27;border-color:#344653;color:#bdcdd5}
html[data-theme=dark] .portfolio-breadcrumb a,html[data-theme=dark] .portfolio-breadcrumb [aria-current]{color:#ace2e7}
@media(max-width:1300px){.portfolio-shell .topbar .top-sub{display:none}}
@media(max-width:1050px){.portfolio-shell .top-icons{display:none}}
@media(max-width:900px){.inner-global-nav{gap:4px}.inner-global-nav a{padding:9px 10px;font-size:.95rem}}
@media(max-width:650px){.portfolio-shell .topbar{gap:8px;padding:10px 14px}.portfolio-shell .topbar .brand{font-size:1.4rem}.portfolio-shell .topbar .brand-mark{width:36px}.inner-global-nav{width:100%;order:5;margin:0;justify-content:space-between;border-top:1px solid #d5dfe1;padding-top:5px}.inner-global-nav a{padding:8px;font-size:.95rem}.portfolio-breadcrumb{padding:10px 14px;font-size:.75rem}.portfolio-return-links{justify-content:flex-start}}

@media(max-width:1050px){.portfolio-shell .topbar>.theme .theme-label{display:none}.portfolio-shell .topbar>.theme{padding:8px;min-width:33px}}
@media(max-width:650px){.portfolio-shell .topbar>.theme{margin-left:auto}}
html[data-theme=dark] .portfolio-shell .topbar>.theme{background:#203545;border-color:#627c89;color:#d9eff0}
html[data-theme=dark] .portfolio-shell .topbar .brand-surname{color:#83d4d7}

/* Temporary lifecycle reservations: local additions only, collapsed by default. */
.lifecycle-placeholder{grid-column:1/-1;margin:12px 0;padding:12px 16px;border:1px dashed #91a5ac;border-radius:5px;background:#f6f8f8;color:#244957;font:15px/1.5 Manrope,Arial,sans-serif}
.lifecycle-placeholder>summary{cursor:pointer;font-weight:700;font-size:15px}
.lifecycle-placeholder-label{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;color:#5a727d;margin-bottom:3px}
.lifecycle-placeholder [data-lifecycle-region]{padding-top:12px}.lifecycle-placeholder ol{margin:0 0 12px;padding-left:22px}.lifecycle-placeholder li{margin:4px 0}
.lifecycle-placeholder [data-lifecycle-artifact-content]{font-size:14px;color:#5a727d}.lifecycle-placeholder [data-lifecycle-comparison]{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.lifecycle-placeholder h4{font-size:15px;margin:0 0 6px}.lifecycle-placeholder p{font-size:14px;margin:0 0 12px}
.lifecycle-placeholder>summary:focus-visible{outline:3px solid #087687;outline-offset:4px}
html[data-theme=dark] .lifecycle-placeholder{background:#192e3b;border-color:#718c99;color:#e0edf0}html[data-theme=dark] .lifecycle-placeholder-label,html[data-theme=dark] .lifecycle-placeholder [data-lifecycle-artifact-content]{color:#b4cbd4}
@media(max-width:760px){.lifecycle-placeholder [data-lifecycle-comparison]{grid-template-columns:1fr;gap:10px}}

/* Shared case/Related Work grammar, derived from the approved Material Flow page.
   Opt-in scope leaves Material Flow, SICK, the homepage and prototypes unchanged. */
.portfolio-story{--story-ink:#123549;--story-muted:#526878;--story-teal:#075866;--story-line:#d3e1e7;--story-soft:#f5f9fb;--story-paper:#fff;--story-plum:#812579}
.portfolio-story :is(h1,h2,h3){font-family:Manrope,sans-serif;letter-spacing:-.035em}
.portfolio-story :is(.case-kicker,.case-label,.summary-label,.warehouse-section-heading>span){font:700 .76rem/1.4 'DM Sans',sans-serif;letter-spacing:.065em;text-transform:uppercase;color:var(--story-teal)}
.portfolio-story :is(.brief-heading h1,.note-hero h1,.warehouse-hero h1,.case-hero h1){font:700 clamp(34px,3vw,48px)/1.12 Manrope,sans-serif;letter-spacing:-.035em;color:var(--story-ink);margin:12px 0 16px;text-wrap:balance}
.portfolio-story :is(.brief-hook,.note-hero .summary-lead,.warehouse-lead){font:700 clamp(18px,1.5vw,22px)/1.4 Manrope,sans-serif;color:var(--story-teal);border-left:3px solid #10a5b4;background:#edf8f9;padding:14px 18px;margin:16px 0}
.portfolio-story :is(.exhibit-stage-heading h2,.note-section h2,.warehouse-section-heading h2){font:700 clamp(25px,2vw,32px)/1.2 Manrope,sans-serif;letter-spacing:-.035em;color:var(--story-ink);margin:8px 0 16px;text-wrap:balance}
.portfolio-story :is(.exhibit-stage p,.exhibit-stage li,.note-section p,.note-section li,.warehouse-section p){font-size:16px;line-height:1.65;color:var(--story-muted)}
.portfolio-story :is(.brief-context,.story-context,.warehouse-context){padding:22px;background:var(--story-soft);border:1px solid var(--story-line);border-radius:5px;min-width:0}
.portfolio-story :is(.brief-context h2,.story-context h2,.warehouse-context h2){font:700 .8rem/1.4 'DM Sans',sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--story-teal);margin:0 0 12px}
.portfolio-story :is(.brief-context,.story-context,.warehouse-context) dl{margin:0}
.portfolio-story :is(.brief-context,.story-context,.warehouse-context) dl>div{display:block;border:0;border-bottom:1px solid var(--story-line);padding:13px 0}
.portfolio-story :is(.brief-context,.story-context,.warehouse-context) dl>div:first-child{padding-top:0}
.portfolio-story :is(.brief-context,.story-context,.warehouse-context) dl>div:last-child{border:0;padding-bottom:0}
.portfolio-story :is(.brief-context,.story-context,.warehouse-context) dt{font-size:13px;line-height:1.5;font-weight:700;color:var(--story-teal);margin-bottom:5px}
.portfolio-story :is(.brief-context,.story-context,.warehouse-context) dd{margin:0;font-size:14px;line-height:1.65;color:var(--story-muted)}
.portfolio-story :is(.brief-overview .status-tag,.note-hero .note-status){display:block;width:fit-content;max-width:100%;background:var(--story-soft);border:1px solid var(--story-line);border-radius:3px;padding:7px 10px;font:700 12px/1.5 'DM Sans',sans-serif;letter-spacing:.045em;color:var(--story-teal);margin:20px 0}
.portfolio-story :is(a,button,summary):focus-visible{outline:3px solid #a36d9d;outline-offset:4px}
.portfolio-story section[id]{scroll-margin-top:calc(var(--header-height,100px) + 20px)}

/* Full use cases retain their evidence compositions and five existing stages. */
.portfolio-story.five-stage-case{background:var(--story-soft)}
.portfolio-story.five-stage-case>.case-brief{grid-template-areas:"heading context" "overview context" "visual evidence" "visual beyond";padding:28px clamp(18px,2.1vw,38px);background:var(--story-paper)}
.portfolio-story.five-stage-case .brief-heading{border:0;margin:0;padding-bottom:4px}
.portfolio-story.five-stage-case .brief-overview{padding-top:10px}
.portfolio-story.five-stage-case .brief-context{align-self:start;padding:22px}
.portfolio-story.five-stage-case .exhibit-stage{margin:20px clamp(18px,2.1vw,38px);padding:25px;border:1px solid var(--story-line);border-radius:5px;background:var(--story-paper)}
.portfolio-story.five-stage-case .stage-number{width:34px;height:34px;background:linear-gradient(135deg,#05a6b3,#075866);font:700 18px/1 Manrope,sans-serif}
.portfolio-story.five-stage-case .case-story-nav{background:var(--story-paper);border-block:1px solid var(--story-line);padding:12px clamp(18px,2.1vw,38px)}
.portfolio-story.five-stage-case>.generic-exhibit{margin:0 clamp(18px,2.1vw,38px) 24px;padding:22px}
.portfolio-story.five-stage-case>.related-work-panel{margin:20px clamp(18px,2.1vw,38px);padding:25px;border-color:var(--story-line);border-radius:5px}

/* Shorter stories share a hero/context pair, local navigation and section cards. */
.portfolio-story.related-note .summary-wrap{max-width:none;margin:0 auto;padding:28px clamp(18px,2.1vw,38px) 36px}
.portfolio-story.related-note .note-hero{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:clamp(24px,3vw,52px);align-items:start;max-width:none;border:0;padding:0;margin:0 0 28px}
.portfolio-story.related-note .note-hero>div{min-width:0}
.portfolio-story.related-note .note-hero p:not(.summary-lead):not(.note-status):not(.note-caption){font-size:16px;line-height:1.65}
.portfolio-story.related-note .note-hero .story-context details{border:0;padding:0;margin:0}
.portfolio-story.related-note .note-hero .story-context summary{font-size:14px;font-weight:700;color:var(--story-teal);cursor:pointer;margin:0 0 16px}
.portfolio-story.related-note .note-section{max-width:none;margin:20px 0;padding:25px;border:1px solid var(--story-line);border-radius:5px;background:var(--story-paper);min-width:0}
.portfolio-story.related-note .note-section h3{font-size:19px;line-height:1.4;color:var(--story-ink)}
.portfolio-story .story-jump{padding:14px 18px;border:1px solid var(--story-line);border-radius:5px;background:var(--story-paper);margin:0 0 24px}
.portfolio-story .story-jump summary{font-size:15px;font-weight:700;color:var(--story-teal);cursor:pointer}
.portfolio-story .story-jump nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding-top:18px}
.portfolio-story .story-jump a{font-size:14px;line-height:1.5;color:var(--story-teal);text-underline-offset:3px}
.portfolio-story.related-note .note-section details:not(.lifecycle-placeholder){border-top:1px solid var(--story-line);padding-top:14px;margin-top:18px}
.portfolio-story.related-note .note-section details>summary{font-size:16px;line-height:1.5;font-weight:600;color:var(--story-teal);cursor:pointer}
.portfolio-story.related-note .note-takeaway{font:700 18px/1.5 Manrope,sans-serif;border-left:3px solid var(--story-plum);color:var(--story-plum);padding-left:18px;margin:24px 0}
.portfolio-story.related-note :is(.scaling-related,.beyond-related,.routing-related,.emissions-related,.pipeline-related,.oee-related){gap:18px}
.portfolio-story.related-note :is(.scaling-related,.beyond-related,.routing-related,.emissions-related,.pipeline-related,.oee-related)>a{padding:18px;border:1px solid var(--story-line);border-radius:5px;background:var(--story-soft);text-decoration:none}
.portfolio-story.related-note :is(.scaling-related,.beyond-related,.routing-related,.emissions-related,.pipeline-related,.oee-related)>a:hover{border-color:var(--story-plum)}

/* Overview pages use the same scale while retaining their broader system models. */
.portfolio-story.warehouse-overview .warehouse-hero{background:var(--story-paper);padding:28px clamp(18px,2.1vw,38px);gap:clamp(24px,3vw,52px)}
.portfolio-story.warehouse-overview .warehouse-section{margin:20px clamp(18px,2.1vw,38px);padding:25px;border:1px solid var(--story-line);border-radius:5px;background:var(--story-paper)}
.portfolio-story.warehouse-overview .warehouse-jump{padding-inline:clamp(18px,2.1vw,38px);border-color:var(--story-line)}
.portfolio-story.case-longform:not(.warehouse-overview) .case-hero{background:var(--story-paper);min-height:0;padding:28px clamp(18px,2.1vw,38px);gap:32px}
.portfolio-story.case-longform:not(.warehouse-overview) .case-hero:before,.portfolio-story.case-longform:not(.warehouse-overview) .case-hero-image{display:none}
.portfolio-story.case-longform:not(.warehouse-overview) .case-hero-copy{width:auto;flex:1;padding:0}
.portfolio-story.case-longform:not(.warehouse-overview) .case-hero-panel{position:static;width:280px;margin:0;align-self:start;background:var(--story-soft);border:1px solid var(--story-line);color:var(--story-teal);box-shadow:none;border-radius:5px}
.portfolio-story.case-longform:not(.warehouse-overview) .case-hero-panel span:before{border-color:var(--story-teal)}
.portfolio-story.case-longform:not(.warehouse-overview) .case-hero-panel span:after{background:var(--story-teal)}

html[data-theme=dark] .portfolio-story{--story-ink:#eaf1f2;--story-muted:#bccdd7;--story-teal:#9bd6dc;--story-line:#496570;--story-soft:#1b303d;--story-paper:#10202c;--story-plum:#d5a9cf}
html[data-theme=dark] .portfolio-story :is(.brief-hook,.note-hero .summary-lead,.warehouse-lead){background:#1b3540;border-color:#65c6ce}
@media(max-width:950px){
 .portfolio-story.related-note .note-hero{grid-template-columns:1fr}
 .portfolio-story.five-stage-case>.case-brief{grid-template-columns:1fr;grid-template-areas:"heading" "overview" "context" "visual" "evidence" "beyond";gap:18px}
 .portfolio-story.five-stage-case .brief-evidence,.portfolio-story.five-stage-case .brief-beyond{border-left:0;padding-left:0}
 .portfolio-story.five-stage-case .brief-context{margin:0}
}
@media(max-width:760px){
 .portfolio-story :is(.brief-heading h1,.note-hero h1,.warehouse-hero h1,.case-hero h1){font-size:34px;line-height:1.15}
 .portfolio-story :is(.brief-hook,.note-hero .summary-lead,.warehouse-lead){font-size:18px;padding:14px}
 .portfolio-story.related-note .summary-wrap{padding:22px 14px 30px}
 .portfolio-story.related-note .note-section,.portfolio-story.five-stage-case .exhibit-stage,.portfolio-story.five-stage-case>.related-work-panel,.portfolio-story.warehouse-overview .warehouse-section{padding:18px 14px}
 .portfolio-story.five-stage-case .exhibit-stage,.portfolio-story.five-stage-case>.related-work-panel,.portfolio-story.warehouse-overview .warehouse-section{margin:18px 14px}
 .portfolio-story :is(.exhibit-stage-heading h2,.note-section h2,.warehouse-section-heading h2){font-size:25px;line-height:1.25}
 .portfolio-story .story-jump nav{grid-template-columns:1fr}
 .portfolio-story.case-longform:not(.warehouse-overview) .case-hero{display:block;padding:24px 18px}
 .portfolio-story.case-longform:not(.warehouse-overview) .case-hero-panel{width:100%;margin-top:24px}
}

/* Full-width shell; each content type controls its own reading scale. */
.portfolio-shell>main,.portfolio-shell main.page{width:100%;max-width:none;margin-inline:auto;min-width:0;box-sizing:border-box}
.portfolio-shell :is(.topbar,.portfolio-breadcrumb,.site-footer){width:100%;max-width:none;margin-inline:auto;box-sizing:border-box}

/* Screenshots are evidence at a readable scale, not full-bleed backgrounds. */
.portfolio-shell figure.prototype-capture{width:100%;max-width:none;margin:24px auto;padding:20px;border:1px solid var(--line,#c9d2d9);border-radius:8px;background:var(--paper,#f7f9fb);min-width:0;box-sizing:border-box}
.prototype-capture-label{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--teal,#27666d);margin-bottom:10px}
.prototype-capture h3{margin:0 0 16px;font-size:21px;line-height:1.3}
.portfolio-shell .prototype-capture-frame{width:100%;max-width:1363px;max-height:none;overflow:hidden;border-radius:4px;background:#091d27;border:1px solid #284451;margin-inline:auto}
.prototype-capture-frame:focus-visible{outline:3px solid #3a9cb4;outline-offset:3px}
.portfolio-shell .prototype-capture-frame img{display:block;width:100%;max-width:var(--capture-native-width,1348px);height:auto;object-fit:contain;object-position:top center;margin-inline:auto}
.portfolio-shell .prototype-capture--tall .prototype-capture-frame{max-height:640px;overflow:auto;scrollbar-gutter:stable}
.prototype-capture figcaption{margin-top:14px;font-size:14px;line-height:1.6;color:var(--muted,#52606d);max-width:85ch}
.prototype-capture figcaption a{display:inline-block;margin-left:8px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:640px){.portfolio-shell figure.prototype-capture{padding:14px}.portfolio-shell .prototype-capture--tall .prototype-capture-frame{max-height:460px}.prototype-capture figcaption a{margin:6px 10px 0 0}}

/* Fluid composition: spread visual evidence without spreading prose into long lines. */
.portfolio-shell .topbar,.portfolio-shell .portfolio-breadcrumb{padding-inline:var(--portfolio-gutter)}
.portfolio-shell :is(.brief-overview,.story-hero-copy,.case-hero-copy,.warehouse-hero-copy)>p,
.portfolio-shell :is(.note-section,.exhibit-stage,.warehouse-section,.mf-section,.mf-deep-dive)>p{max-width:76ch}
.portfolio-shell :is(.brief-heading,.story-hero-copy,.case-hero-copy) h1{max-width:24ch}
.portfolio-shell :is(.note-section,.exhibit-stage,.warehouse-section,.mf-section) h2{max-width:38ch}
.portfolio-shell .about-wrap{max-width:none}
@media(min-width:761px){
 .portfolio-shell .mf-canvas{padding:var(--portfolio-space) var(--portfolio-gutter)}
 .portfolio-shell .mf-section,.portfolio-shell .mf-deep-dive{padding:clamp(24px,2.5vw,44px);margin-bottom:var(--portfolio-space)}
 .portfolio-story.related-note .summary-wrap{padding:var(--portfolio-space) var(--portfolio-gutter)}
 .portfolio-story.related-note .note-section{padding:clamp(24px,2.5vw,44px);margin-block:var(--portfolio-space)}
 .portfolio-story.five-stage-case>.case-brief,.portfolio-story.warehouse-overview .warehouse-hero{padding:var(--portfolio-space) var(--portfolio-gutter)}
 .portfolio-story.five-stage-case .exhibit-stage,.portfolio-story.five-stage-case>.related-work-panel,.portfolio-story.warehouse-overview .warehouse-section{margin:var(--portfolio-space) var(--portfolio-gutter);padding:clamp(24px,2.5vw,44px)}
 .portfolio-story .decision-cards{gap:clamp(16px,2vw,32px)}
 main#home .hero-copy{padding:clamp(28px,3vw,56px) var(--portfolio-gutter)}
 main#home .home-work-layout{padding:var(--portfolio-space) var(--portfolio-gutter);gap:clamp(24px,3vw,56px)}
 main#home .prototype-card,main#home .use-case-card.prototype-case,main#home .related-group .supporting-card{padding:clamp(20px,1.8vw,32px)}
 main#home .prototype-grid,main#home .use-case-grid,main#home .related-group .explore-grid{gap:clamp(16px,1.5vw,28px)}
 main#home .about{padding:var(--portfolio-space) var(--portfolio-gutter)}
 main#home .about-grid{gap:clamp(24px,3vw,56px)}
}
@media(min-width:1251px){
 main#home .home-work-layout{grid-template-columns:minmax(320px,.75fr) minmax(0,2fr)}
 main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 main#home .prototype-featured{padding-right:clamp(24px,2vw,40px)}
 .portfolio-story.related-note .note-hero{grid-template-columns:minmax(0,1fr) minmax(300px,.45fr)}
 .portfolio-shell figure.prototype-capture{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(0,2fr);gap:16px clamp(24px,3vw,48px);align-items:start;padding:clamp(24px,2.5vw,40px)}
 .portfolio-shell figure.prototype-capture>.prototype-capture-label{grid-column:1;grid-row:1;margin:0}
 .portfolio-shell figure.prototype-capture>h3{grid-column:1;grid-row:2;margin:0}
 .portfolio-shell figure.prototype-capture>figcaption{grid-column:1;grid-row:3;margin:0}
 .portfolio-shell figure.prototype-capture>.prototype-capture-frame{grid-column:2;grid-row:1/4}
}

/* Home collections use content height, with matching widths and responsive rows. */
main#home .home-work-layout{align-items:start}
main#home .featured-layout{display:block;align-items:stretch}
@media(min-width:1251px){main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:481px) and (max-width:1250px){main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:1fr}}

/* Align the collection edges; flex containers must stretch their nested grids. */
main#home .featured-layout,main#home #primary-work,main#home .use-case-grid,main#home .related-group,main#home .related-group .explore-grid{width:100%;min-width:0;box-sizing:border-box}
main#home .use-case-card.prototype-case,main#home .related-group .supporting-card{gap:10px}
main#home .use-case-card strong,main#home .related-group .supporting-card h3{font-size:1.2rem;line-height:1.3;margin:0}
main#home .use-case-card>span:not(.use-case-parent):not(.use-case-action),main#home .related-group .supporting-card>p{font-size:1rem;line-height:1.5;margin:0}
main#home .use-case-card .use-case-action,main#home .related-group .card-action{margin-top:auto;padding-top:16px}
main#home .explore-group>h2{font-size:1rem;line-height:1.4;margin:0 0 6px}
main#home .use-case-intro,main#home .related-intro{margin:0 0 16px}
@media(min-width:901px){
 main#home .prototype-featured{display:flex;flex-direction:column}
 main#home .prototype-grid{flex:none;grid-auto-rows:auto;align-content:start}
 main#home .prototype-card{display:flex;flex-direction:column;align-items:flex-start}
 main#home .prototype-top{width:100%}
 main#home .prototype-main-link{margin-top:16px}
 main#home .use-case-card.prototype-case{min-height:160px}
 main#home .related-group .supporting-card{min-height:180px}
}

@media(min-width:761px){
 main#home .prototype-card{padding:22px}
 main#home .use-case-card.prototype-case,main#home .related-group .supporting-card{padding:22px 24px}
 main#home .prototype-grid,main#home .use-case-grid,main#home .related-group .explore-grid{gap:20px}
 main#home .use-case-card .use-case-action,main#home .related-group .card-action{padding-top:10px}
}

/* A shared left rail contains the site navigation and the current story hierarchy. */
body.portfolio-shell.has-left-nav{--portfolio-rail-width:264px}
.portfolio-shell.has-left-nav>main,.portfolio-shell.has-left-nav main.page{width:calc(100% - var(--portfolio-rail-width));margin-left:var(--portfolio-rail-width);margin-right:0}
.portfolio-shell.has-left-nav>.site-footer{width:calc(100% - var(--portfolio-rail-width));margin-left:var(--portfolio-rail-width)}
.portfolio-shell.has-left-nav .material-walkthrough{display:block}
.portfolio-shell .portfolio-left-nav{position:fixed;left:0;top:var(--header-height,64px);bottom:0;width:var(--portfolio-rail-width);height:calc(100vh - var(--header-height,64px));overflow:auto;z-index:25;box-sizing:border-box;padding:24px 18px;background:#fdfcfb;border-right:1px solid #cbd8dc;font:400 1rem/1.5 'DM Sans',sans-serif;color:#123549}
.portfolio-left-nav .portfolio-main-menu>summary{display:none}
.portfolio-shell .portfolio-left-nav .inner-global-nav{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%;margin:0;padding:0;order:initial;border:0}
.portfolio-left-nav .inner-global-nav a{font-size:1rem;padding:11px 14px;border-left:3px solid transparent;border-bottom:0;white-space:normal;border-radius:3px}
.portfolio-left-nav .inner-global-nav a[aria-current]{border-left-color:#812579;border-bottom:0}
.portfolio-rail-context{margin:22px 0 16px;padding:18px 0;border-block:1px solid #d3e1e7;font-size:.875rem;color:#526878}
.portfolio-rail-context ol{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.portfolio-rail-context li{line-height:1.4;overflow-wrap:anywhere}
.portfolio-rail-context li:nth-child(2){padding-left:12px}
.portfolio-rail-context li:nth-child(n+3){padding-left:24px}
.portfolio-rail-context a{color:#075866;text-decoration:none}
.portfolio-rail-context [aria-current]{font-weight:700;color:#123549}
.portfolio-left-nav .mf-local-menu>summary{font-size:.875rem;font-weight:700;margin-bottom:12px;color:#075866}
.portfolio-left-nav .mf-local-menu nav{display:flex;flex-direction:column;gap:4px}
.portfolio-left-nav .mf-local-menu nav a{font-size:.875rem;padding:9px 12px;line-height:1.45}
html[data-theme=dark] .portfolio-left-nav{background:#101b27;color:#eaf1f2;border-color:#344653}
html[data-theme=dark] .portfolio-rail-context{border-color:#344653;color:#bccdd7}
html[data-theme=dark] .portfolio-rail-context a,html[data-theme=dark] .portfolio-rail-context [aria-current],html[data-theme=dark] .portfolio-left-nav .mf-local-menu>summary{color:#9bd6dc}
@media(max-width:900px){
 .portfolio-shell.has-left-nav>main,.portfolio-shell.has-left-nav main.page,.portfolio-shell.has-left-nav>.site-footer{width:100%;margin-left:0}
 .portfolio-shell .portfolio-left-nav{position:sticky;top:var(--header-height,64px);bottom:auto;width:100%;height:auto;padding:10px 18px;border-right:0;border-bottom:1px solid #cbd8dc;overflow:visible}
 .portfolio-left-nav .portfolio-main-menu>summary{display:list-item;font-size:1rem;font-weight:700;cursor:pointer;min-height:28px;color:#075866}
 .portfolio-left-nav .portfolio-main-menu[open] .inner-global-nav{padding-block:10px}
 .portfolio-shell .portfolio-left-nav .inner-global-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .portfolio-rail-context{margin:6px 0;padding:8px 0;font-size:.8rem}
 .portfolio-rail-context ol{display:flex;flex-wrap:wrap;gap:6px 10px}
 .portfolio-rail-context li:nth-child(n){padding-left:0}
 .portfolio-rail-context li+li:before{content:' / ';color:#8da1ab;margin-right:8px}
 .portfolio-left-nav .mf-local-menu>summary{margin:6px 0 0;min-height:28px;cursor:pointer}
 .portfolio-left-nav .mf-local-menu[open]>summary{margin-bottom:10px}
 .portfolio-left-nav .mf-local-menu nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .portfolio-shell .mf-canvas section{scroll-margin-top:calc(var(--header-height,64px) + 135px)}
}
@media(max-width:480px){.portfolio-shell .portfolio-left-nav .inner-global-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Reflow against the space beside the rail, rather than the whole browser width. */
.portfolio-shell.has-left-nav>main{container:portfolio-page / inline-size}
@container portfolio-page (max-width:1200px){
 main#home .home-work-layout{grid-template-columns:minmax(0,1fr)}
 main#home .prototype-featured{padding-right:0;border-right:0}
 main#home .prototype-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container portfolio-page (max-width:1000px){
 .mf-hero,.mf-research,.mf-role-exhibit,.mf-field-proof{grid-template-columns:1fr}
 .portfolio-story.related-note .note-hero{grid-template-columns:1fr}
 .portfolio-story.five-stage-case>.case-brief{grid-template-columns:1fr;grid-template-areas:"heading" "overview" "context" "visual" "evidence" "beyond";gap:20px}
}
@container portfolio-page (max-width:800px){
 main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container portfolio-page (max-width:600px){main#home .prototype-grid{grid-template-columns:1fr}}
@container portfolio-page (max-width:480px){main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:1fr}}


/* A single guide ties the primary navigation together; Work carries the story links. */
.portfolio-shell .portfolio-left-nav .inner-global-nav{position:relative;gap:6px}
.portfolio-left-nav .inner-global-nav:before{content:"";position:absolute;left:12px;top:20px;bottom:20px;width:1px;background:#b8c9ce;pointer-events:none}
.portfolio-shell .portfolio-left-nav .inner-global-nav a[data-nav]{position:relative;display:block;padding:12px 12px 12px 40px;border:0;border-radius:0;background:transparent;line-height:1.4;min-height:46px;box-sizing:border-box;color:#123549;font-weight:500}
.portfolio-left-nav .inner-global-nav a[data-nav]:before{content:"";position:absolute;left:5px;top:50%;transform:translateY(-50%);width:14px;height:14px;border:1px solid #809ba8;border-radius:50%;background:#fdfcfb;box-sizing:border-box}
.portfolio-shell .portfolio-left-nav .inner-global-nav a[data-nav="home"],
.portfolio-shell .portfolio-left-nav .inner-global-nav a[data-nav="work"]{font-weight:700}
.portfolio-shell .portfolio-left-nav .inner-global-nav a[data-nav][aria-current]{background:transparent;color:#123549}
.portfolio-left-nav .inner-global-nav a[data-nav][aria-current]:before{background:#812579;border-color:#812579}
.portfolio-shell .portfolio-left-nav .inner-global-nav a[data-nav]:hover{color:#075866;background:#edf5f5}
body.portfolio-shell.story-navigation{--portfolio-rail-width:300px}
.story-navigation .portfolio-work-children,
.story-navigation .portfolio-work-children ul{list-style:none;margin:0;padding:0;border:0}
.story-navigation .portfolio-work-children{padding-left:22px;margin-bottom:8px}
.story-navigation .portfolio-left-nav .portfolio-tree-group{font-size:.925rem;font-weight:400;padding:10px 0;border:0;color:#526878}
.story-navigation .portfolio-left-nav .mf-local-menu{margin:0;padding:0;border:0}
.story-navigation .portfolio-left-nav .mf-local-menu>summary{display:none}
.story-navigation .portfolio-left-nav .mf-local-menu nav{display:flex;flex-direction:column;gap:3px}
.story-navigation .portfolio-left-nav .mf-local-menu nav a{font-size:.925rem;line-height:1.4;padding:11px 0;border:0;min-height:44px;box-sizing:border-box;color:#334f60;border-radius:3px;font-weight:400}

.story-navigation .portfolio-left-nav .mf-local-menu nav a[aria-current]{background:#e4eff1;color:#334f60;font-weight:700;box-shadow:none;padding-left:8px}
html[data-theme=dark] .portfolio-left-nav .inner-global-nav:before{background:#425b68}
html[data-theme=dark] .portfolio-left-nav .inner-global-nav a[data-nav]:before{background:#101b27;border-color:#809ba8}
html[data-theme=dark] .portfolio-left-nav .inner-global-nav a[data-nav][aria-current]:before{background:#d6a1cf;border-color:#d6a1cf}
html[data-theme=dark] .portfolio-shell .portfolio-left-nav .inner-global-nav a[data-nav]{color:#eaf1f2}
html[data-theme=dark] .portfolio-shell .portfolio-left-nav .inner-global-nav a[data-nav]:hover{background:#203541;color:#ace2e7}
html[data-theme=dark] .story-navigation .portfolio-left-nav .portfolio-tree-group{color:#bccdd7}
html[data-theme=dark] .story-navigation .portfolio-left-nav .mf-local-menu nav a{color:#ccdbe2}
html[data-theme=dark] .story-navigation .portfolio-left-nav .mf-local-menu nav a[aria-current]{background:#203541;color:#ace2e7}
@media(max-width:900px){
 .portfolio-shell .portfolio-left-nav .inner-global-nav{display:flex;flex-direction:column;max-height:calc(100dvh - var(--header-height,64px) - 70px);overflow:auto}
 .story-navigation .portfolio-left-nav .mf-local-menu>summary{display:list-item;min-height:32px;margin:0;padding:8px 0;font-size:.875rem;cursor:pointer}
}

/* Shared navigation hierarchy and readable collection introductions. */
body.portfolio-shell.has-left-nav{--portfolio-rail-width:300px}
.story-section-list,.story-section-children{list-style:none;padding:0;margin:0}
.story-section-children{margin-left:18px}
.story-navigation .portfolio-left-nav .mf-local-menu nav a{display:block;white-space:normal;overflow-wrap:break-word}
.story-navigation .portfolio-work-children .mf-local-menu nav{display:block}
.story-navigation .portfolio-left-nav .mf-local-menu>summary{display:none}
.portfolio-shell .topbar .top-sub{max-width:none;flex:0 1 auto;min-width:0;font-size:.75rem;line-height:1.45;display:block}
.portfolio-shell .topbar .top-sub strong{display:block;white-space:nowrap}
main#home .explore-group>h2{display:block;margin:0 0 8px;font-size:1rem;line-height:1.4}
main#home .use-case-intro,main#home .related-intro{display:block;margin:0 0 20px;max-width:85ch;line-height:1.6;font-size:.925rem}
main#home .related-group{margin-top:32px}
@media(max-width:1100px){.portfolio-shell .topbar .top-sub strong{white-space:normal}.portfolio-shell .topbar .top-sub{flex:1}}
@media(max-width:900px){.story-navigation .portfolio-left-nav .mf-local-menu>summary{display:list-item;min-height:32px;margin:0;padding:8px 0;font-size:.875rem;cursor:pointer}.portfolio-shell .topbar .top-sub{display:none}}
.story-navigation .portfolio-work-children .story-section-children{margin:0 0 0 18px;padding:0;border:0}

/* One scroll destination for the paired reflection panels. */
.portfolio-shell .mf-reflection>.mf-lower-grid>.mf-deep-dive{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.portfolio-shell .mf-reflection>.mf-lower-grid{gap:28px}
.mf-reflection .mf-lower-grid h3{font-size:1.25rem;line-height:1.4;margin:0 0 8px;color:var(--mf-teal)}
.mf-reflection-subtitle{font-size:1rem;line-height:1.5;color:var(--mf-muted);margin:0}
.mf-reflection .mf-check-grid h4{font-size:1.05rem;line-height:1.4;margin:0 0 12px;color:var(--mf-teal)}
.mf-reflection .mf-check-grid>div:last-child h4{color:#812579}
@container portfolio-page (max-width:900px){.mf-reflection>.mf-lower-grid{grid-template-columns:1fr}}

/* Work areas are siblings; cases and story sections have distinct indentation. */
.story-navigation .portfolio-work-children{padding-left:22px;margin:4px 0 10px}
.story-navigation .portfolio-left-nav .portfolio-area-link{display:block;font-size:1rem;line-height:1.4;font-weight:700;color:#526878;border:0;border-radius:3px;padding:12px 8px;margin:2px 0}
.story-navigation .portfolio-left-nav .portfolio-area-link.is-selected-area{background:#e4eff1;color:#334f60}
.story-navigation .portfolio-area-node>.story-rail-menu{margin-left:18px}
.story-navigation .portfolio-work-children .story-page-sections{padding:0;margin:4px 0 10px 18px;border:0;list-style:none}
.story-navigation .portfolio-left-nav .mf-local-menu nav .story-page-title{font-weight:700;font-size:.95rem;background:transparent;color:#123549;padding-left:8px}
.story-navigation .portfolio-left-nav .mf-local-menu nav .story-page-title[aria-current]{background:transparent}
.story-navigation .portfolio-work-children .story-overview-sections{margin-left:0;padding-left:8px}
.story-navigation .portfolio-work-children .portfolio-case-peers{list-style:none;margin:0 0 12px 18px;padding:0;border:0}
.story-navigation .portfolio-left-nav .portfolio-case-link{display:block;padding:11px 8px;border:0;font-size:.925rem;line-height:1.4;color:#334f60;border-radius:3px}
.story-navigation .portfolio-left-nav .portfolio-case-link:hover{background:#edf5f5;color:#075866}
.story-navigation .portfolio-work-children .story-section-children{margin-left:18px}
html[data-theme=dark] .story-navigation .portfolio-left-nav .portfolio-area-link{color:#bccdd7}
html[data-theme=dark] .story-navigation .portfolio-left-nav .portfolio-area-link.is-selected-area{background:#203541;color:#ace2e7}
html[data-theme=dark] .story-navigation .portfolio-left-nav :is(.portfolio-case-link,.mf-local-menu nav .story-page-title){color:#ccdbe2}
html[data-theme=dark] .story-navigation .portfolio-left-nav .portfolio-case-link:hover{background:#203541;color:#ace2e7}

/* Browse categories are siblings, with space after the prototype branches. */
.story-navigation .portfolio-work-children>.portfolio-browse-node{margin-top:16px}
.story-navigation .portfolio-left-nav .portfolio-area-link[data-work-collection][aria-current]{background:#e4eff1;color:#334f60;border:0}
.story-navigation .portfolio-left-nav .story-page-sections>li>a{font-variant-numeric:tabular-nums}
html[data-theme=dark] .story-navigation .portfolio-left-nav .portfolio-area-link[data-work-collection][aria-current]{background:#203541;color:#ace2e7}
