/* Universal header, navigation, and footer for every portfolio route. */
:root{--header-height:100px;--rail:128px;--teal:#075866;--plum:#80477e;--line:#d8dddc}
html{scroll-padding-top:calc(var(--header-height) + 12px)}
.topbar{position:sticky;top:0;z-index:40;width:100%;height:auto;min-height:100px;display:flex;flex-wrap:wrap;align-items:center;gap:15px;row-gap:10px;padding:12px clamp(24px,3vw,52px);border-bottom:1px solid #bfc7c7;background:#fdfcfb}
.brand-lockup{display:inline-flex;align-items:center;gap:16px;flex:none;white-space:nowrap}
.brand-mark{display:block;width:62px;height:auto;flex:none}
.brand-lockup .brand{display:inline-flex;gap:.38em;font:800 clamp(1.55rem,2.2vw,2rem) Manrope,sans-serif;letter-spacing:-.015em;white-space:nowrap}
.brand-surname{color:var(--teal)}
.top-sub{border-left:1px solid #b7c3c5;padding-left:15px;font-size:.84rem;line-height:1.35}
.top-sub strong{color:var(--teal);font-weight:600}
.top-spacer{flex:1}.location{font-size:.8rem;white-space:nowrap;color:#334556}
.top-icons{display:flex;align-items:center;gap:17px;margin-left:10px}.top-icons a{display:flex}
.top-icons svg.icon{display:inline-block;width:22px;height:22px;stroke:var(--ink,#0c2033);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rail{position:fixed;z-index:30;top:var(--header-height);bottom:0;left:0;right:auto;width:var(--rail);height:auto;background:#faf9f7;border-right:1px solid #cdd3d3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px}
.rail:before{content:"";position:absolute;left:30px;top:14%;bottom:15%;width:1px;background:#bdc8ca}
.rail a{position:relative;display:flex;align-items:center;gap:13px;width:100%;padding:13px 13px 13px 24px;font-size:.82rem}
.rail a:before{content:"";z-index:1;width:11px;height:11px;flex:none;border:1px solid #778890;border-radius:50%;background:#faf9f7}
.rail a.active{color:var(--plum);font-weight:700;border:0;padding:13px 13px 13px 24px}
.rail a.active:before{background:var(--plum);border-color:var(--plum);box-shadow:0 0 0 4px #faf9f7}
.rail-actions{position:absolute;left:5px;right:5px;bottom:18px;display:flex;flex-direction:column;gap:9px}
.theme{position:static;width:100%;min-height:38px;padding:9px 2px;border:1px solid #bac5c4;border-radius:8px;background:#fff;color:var(--teal);font-size:.75rem;cursor:pointer;white-space:normal;text-align:center;line-height:1.2}
.theme:hover{background:#edf4f3;border-color:var(--teal)}
.theme svg.icon{display:inline-block;width:16px;height:16px;margin-right:3px;vertical-align:-3px;stroke:currentColor;fill:none;stroke-width:1.8}
.back-top{position:static;width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 4px;border:1px solid #bac5c4;border-radius:8px;background:#fff;color:var(--teal);font-size:.75rem;font-weight:700;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(7px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s}
.back-top.is-visible{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.back-top:hover{background:#edf4f3;border-color:var(--teal)}
.back-top svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.site-footer{display:block;margin-left:var(--rail);background:linear-gradient(115deg,#061d2c 0%,#053c4b 58%,#162d50 80%,#48234d 100%);color:#fff;padding:25px clamp(24px,3vw,52px) 10px;position:relative;overflow:hidden;font-size:1rem}
.site-footer:before{content:"";position:absolute;inset:0;width:auto;height:auto;border:0;border-radius:0;transform:none;box-shadow:none;background-image:radial-gradient(circle,#73d6d3 1.15px,transparent 1.7px),radial-gradient(circle,#b9aaea 1.1px,transparent 1.6px);background-size:20px 20px,60px 60px;background-position:0 0,10px 10px;opacity:.35;mask-image:linear-gradient(90deg,transparent 12%,#000 86%);pointer-events:none}
.site-footer:after{content:"";position:absolute;right:-8%;top:-125%;width:60%;height:280%;background:radial-gradient(ellipse,rgba(70,162,169,.23),transparent 65%);pointer-events:none}
.site-footer .footer-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:27px;align-items:center}
.site-footer .footer-grid>*+*{border-left:1px solid #7c9aa0;padding-left:26px}
.site-footer .eyebrow{font-size:.73rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px}
.site-footer .footer-grid h2{font:700 1.55rem/1.16 Manrope,sans-serif;letter-spacing:-.045em;max-width:365px;margin:4px 0}
.site-footer .footer-grid p{font-size:.84rem;line-height:1.5;max-width:260px;margin:0}
.site-footer .footer-links{display:flex;gap:22px}.site-footer .footer-links a{font-size:.75rem;text-align:center}
.site-footer .footer-bottom{position:relative;z-index:1;border-top:1px solid #58818a;margin-top:22px;padding-top:10px;display:flex;justify-content:space-between;font-size:.72rem}
@media(max-width:1100px){.location{display:none}}
@media(max-width:760px){:root{--rail:0px}html{scroll-padding-top:calc(var(--header-height) + 64px)}.topbar{min-height:70px;padding:12px 20px}.brand-mark{width:43px}.brand-lockup{gap:10px}.brand-lockup .brand{font-size:1.55rem}.top-sub{font-size:.75rem}.top-icons{margin-left:auto;gap:12px}.rail{position:sticky;top:var(--header-height);bottom:auto;left:auto;width:100%;height:52px;flex-direction:row;justify-content:flex-start;gap:0;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line)}.rail:before,.rail a:before{display:none}.rail a{width:auto;white-space:nowrap;padding:15px 12px;font-size:.78rem}.rail a.active{border:0;border-bottom:3px solid var(--plum);padding:15px 12px}.theme{position:static;white-space:nowrap;margin:0 10px 0 auto;padding:7px;font-size:.72rem}.back-top{position:fixed;left:auto;right:15px;bottom:15px;width:auto;z-index:39;padding:10px 13px;border-radius:999px;box-shadow:0 6px 20px #0c203330}.site-footer{margin-left:0}.site-footer .footer-grid{grid-template-columns:1fr 1fr}.site-footer .footer-links{grid-column:1/-1;border-left:0;padding-left:0;justify-content:flex-start}.site-footer .footer-bottom{gap:15px}}
@media(max-width:520px){.top-sub{display:none}.site-footer .footer-grid{display:block}.site-footer .footer-grid>*+*{border:0;padding:0;margin-top:18px}.site-footer .footer-bottom{font-size:.65rem}}
@media(max-width:420px){.brand-mark{width:39px}.brand-lockup .brand{font-size:1.4rem}}
@media(prefers-reduced-motion:reduce){.back-top{transition:none}}
@media(max-width:760px){.rail-actions{position:static;display:block;flex:none;margin-left:auto}.rail-actions .theme{width:auto;min-height:0;margin:0 10px 0 0;white-space:nowrap}.rail-actions .back-top{width:auto}}

/* Portfolio-journey context stays subordinate to each study's existing hero. */
.journey-context{width:min(530px,calc(100% - 48px));margin:18px clamp(24px,3.5vw,56px) 18px auto;padding:15px 18px;border:1px solid #9abdbd;border-left:3px solid #075866;border-radius:6px;background:#f2f7f6;box-shadow:0 3px 12px #0c20330a}
.journey-context h2{margin:0 0 8px;color:#075866;font:800 .68rem/1.4 Manrope,sans-serif;letter-spacing:.09em;text-transform:uppercase}
.journey-pills{display:flex;flex-wrap:wrap;gap:6px}.journey-pills span{display:inline-block;padding:5px 9px;border-radius:999px;background:#dcecea;color:#075866;font-size:.72rem;font-weight:700;line-height:1.25}
.journey-context p{margin:8px 0;color:#526875;font-size:.74rem;line-height:1.4}
.journey-actions{display:flex;flex-wrap:wrap;gap:5px 14px}.journey-actions a,.journey-bottom-actions a{color:#075866;font-size:.76rem;font-weight:800;text-decoration:underline;text-underline-offset:3px}.journey-actions a:hover,.journey-bottom-actions a:hover{color:#812579}
.journey-related{padding:34px clamp(24px,3.5vw,56px) 42px;border-top:1px solid #d1d8d8;background:#f5f7f5;scroll-margin-top:calc(var(--header-height) + 75px)}
.journey-related h2{margin:0 0 5px;color:#0b2b3e;font-size:clamp(1.35rem,2vw,1.85rem);line-height:1.18}
.journey-intro{max-width:none;margin:0 0 21px;color:#526675;font-size:.86rem}
.journey-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.journey-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:17px 18px;border:1px solid #c9d7d8;border-top:3px solid #812579;border-radius:5px;background:#fff;box-shadow:0 4px 13px #0c203308}
.journey-card:hover{border-color:#987095;box-shadow:0 8px 19px #0c203318}.journey-card-meta{color:#6b7d89;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.journey-card strong{color:#12344a;font:800 1.08rem/1.22 Manrope,sans-serif;letter-spacing:-.03em}.journey-card-summary{color:#526675;font-size:.78rem;line-height:1.42}
.journey-card-action{margin-top:auto;padding-top:7px;color:#812579;font-size:.76rem;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.journey-supporting{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 16px;margin-top:17px;padding:13px 16px;border:1px solid #e1e5e2;background:#fafaf8}.journey-supporting h3{margin:0;color:#657582;font-size:.7rem;text-transform:uppercase;letter-spacing:.06em}.journey-supporting a{color:#526675;font-size:.75rem;text-decoration:underline;text-underline-offset:3px}
.journey-bottom-actions{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:19px}
.summary-page .journey-context{margin-top:14px}.summary-page .journey-related{margin-top:0}
@media(max-width:1050px){.journey-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.journey-context{width:auto;margin:15px 20px;padding:14px}.journey-related{padding:28px 20px 36px}.journey-cards{grid-template-columns:1fr}.journey-card{padding:16px}}

/* Three-state case-study explorer; preview choices never mutate the current URL. */
.journey-explorer{width:min(660px,calc(100% - 48px));margin:18px clamp(24px,3.5vw,56px) 22px auto;padding:21px 24px;border:1px solid #8bb8bb;border-radius:7px;background:#f1f7f6;box-shadow:0 4px 14px #0c20330d;scroll-margin-top:calc(var(--header-height) + 76px)}
.journey-explorer-head,.journey-explorer-subhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #cbd9da;padding-bottom:8px}
.journey-explorer-head h2,.journey-explorer-subhead h3{margin:0;color:#006b7b;font:800 1rem/1.25 Manrope,sans-serif;letter-spacing:.065em;text-transform:uppercase}
.journey-explorer-head a,.journey-text-action{color:#075866;text-decoration:underline;text-underline-offset:3px;font-size:.82rem;font-weight:800;white-space:nowrap}
.journey-explorer .journey-text-action{border:0;background:transparent;padding:0;cursor:pointer;font-family:inherit}
.journey-explorer-head a:hover,.journey-text-action:hover{color:#812579}
.journey-explorer-intro{max-width:none;margin:9px 0 14px;color:#506677;font-size:.87rem}
.journey-explorer .journey-pills{margin:15px 0 21px;gap:8px}
.journey-explorer .journey-pills span{padding:7px 11px;font-size:.8rem}
.journey-explorer-subhead{margin:18px 0 0;padding-bottom:6px}.journey-explorer-subhead h3{font-size:.88rem}
.journey-explorer-results{margin:0 0 6px}
.journey-explorer-row{display:grid;grid-template-columns:32px minmax(0,1fr) 22px;gap:12px;align-items:center;padding:11px 5px;border-bottom:1px solid #cbd9da;color:#102e44}
.journey-explorer-row:hover{background:#e5f0ef}
.journey-explorer-row svg.icon{width:29px;height:29px;color:#075866;stroke:currentColor;fill:none;stroke-width:1.7}
.journey-explorer-row-copy{display:block;min-width:0}.journey-explorer-row-copy strong,.journey-explorer-row-copy span{display:block}
.journey-explorer-row-copy strong{font:800 .96rem/1.2 Manrope,sans-serif;letter-spacing:-.02em}
.journey-explorer-row-copy span{margin-top:3px;color:#526677;font-size:.78rem;line-height:1.36}
.journey-explorer-arrow{color:#006d7f;font-size:1.25rem;line-height:1}
.journey-explorer-empty{max-width:none;margin:14px 0;color:#526677;font-size:.82rem}
.journey-explorer .journey-update{border:0;border-radius:3px;background:#006b7b;color:#fff;padding:7px 17px;font:800 .8rem/1.2 Manrope,sans-serif;text-transform:uppercase;cursor:pointer}
.journey-explorer .journey-update:hover{background:#075866}
.journey-explorer-family{margin-top:20px}.journey-explorer-family h4{margin:0 0 3px;color:#18384c;font:800 .85rem/1.3 Manrope,sans-serif;letter-spacing:.035em;text-transform:uppercase}
.journey-explorer .journey-filter-option{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:12px;align-items:center;width:100%;min-height:56px;padding:9px 5px;border:0;border-bottom:1px solid #cbd9da;background:transparent;text-align:left;cursor:pointer}
.journey-explorer .journey-filter-option:hover{background:#e5f0ef}.journey-explorer .journey-filter-option[aria-pressed="true"]{background:#d8ecea;border-left:3px solid #075866;padding-left:11px}
.journey-filter-copy strong,.journey-filter-copy span{display:block}.journey-filter-copy strong{color:#102e44;font:800 .9rem/1.22 Manrope,sans-serif}.journey-filter-copy span{margin-top:3px;color:#526677;font-size:.77rem;line-height:1.3}
.journey-filter-marker{font-size:1.2rem;color:#006d7f;text-align:right}
.journey-bottom-actions button.journey-text-action{border:0;background:none;padding:0;cursor:pointer;font-family:inherit}
.summary-page .journey-explorer{margin-top:16px}
@media(max-width:700px){.journey-explorer{width:auto;margin:15px 20px 22px;padding:17px 16px}.journey-explorer-head h2{font-size:.9rem}.journey-explorer-head a,.journey-text-action{font-size:.75rem}.journey-explorer-row{grid-template-columns:25px minmax(0,1fr) 18px;gap:8px}.journey-explorer-row svg.icon{width:24px;height:24px}.journey-explorer-row-copy strong{font-size:.88rem}.journey-explorer-row-copy span{font-size:.75rem}}

/* Compact shared shell from the revised home reference. */
@media(min-width:761px){:root{--rail:80px;--header-height:64px}.topbar{min-height:64px;padding:8px 32px;gap:12px;flex-wrap:nowrap}.brand-mark{width:40px}.brand-lockup{gap:12px}.brand-lockup .brand{font-size:1.65rem}.top-sub{font-size:.8rem;padding-left:12px}.location{font-size:.75rem}.top-icons{gap:14px}.top-icons svg.icon{width:17px;height:17px}.rail{gap:8px}.rail:before{left:19px}.rail a,.rail a.active{padding:11px 4px 11px 14px;gap:8px;font-size:.75rem}.rail a:before{width:8px;height:8px}.rail-actions{left:3px;right:3px}.theme{font-size:.7rem;min-height:30px;padding:7px 1px;border-radius:3px}.theme svg.icon{width:12px;height:12px;margin-right:1px}}
.site-footer:before,.site-footer:after{content:none}
