/* Editable interface drawings: identical geometry in Plain and Sketch. */
.drawn-interface,.reference-gallery,.drawn-case-cover{--study-paper:#fafbf9;--study-ink:#283235;--study-muted:#5d6a6d;--study-line:#9aa9ab;--study-accent:#335d65;--study-soft:#f0f2ef;--study-chart:#dde5e1}
:root[data-style="sketch"] :is(.drawn-interface,.reference-gallery,.drawn-case-cover){--study-paper:#fffdf5;--study-ink:#352c4b;--study-muted:#71657b;--study-line:#86718f;--study-accent:#403275;--study-soft:#fff1ba;--study-chart:#d6ece7}
:root[data-scheme="night"] :is(.drawn-interface,.reference-gallery,.drawn-case-cover){--study-paper:#222b2f;--study-ink:#e5eeeb;--study-muted:#b1c2c3;--study-line:#748d91;--study-accent:#b8d9d5;--study-soft:#303c3f;--study-chart:#4d6264}
:root[data-style="sketch"][data-scheme="night"] :is(.drawn-interface,.reference-gallery,.drawn-case-cover){--study-paper:#2c2638;--study-ink:#eee6f5;--study-muted:#c5b7cf;--study-line:#9b86aa;--study-accent:#c8b5e8;--study-soft:#473d43;--study-chart:#344b4b}
.drawn-interface{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--study-paper);color:var(--study-ink)}
.study-svg{display:block;width:100%;height:100%;overflow:hidden}
.study-svg .study-text{fill:var(--study-ink);stroke:none;font-family:'RagInter',Inter,Arial,sans-serif;font-style:normal;letter-spacing:0}
.study-svg .study-heading{font-family:'RagInter',Inter,Arial,sans-serif}
:root[data-style="clean"] .study-svg .study-heading{font-family:'RagInter',Inter,Arial,sans-serif;font-weight:550}
.study-svg .study-strong{font-weight:600}
.study-svg .study-muted{fill:var(--study-muted)}
.study-svg .study-box{fill:var(--study-paper);stroke:var(--study-line);stroke-width:1.35;stroke-linejoin:round}
.study-svg .study-soft{fill:var(--study-soft);stroke:var(--study-accent)}
.study-svg .study-track{fill:var(--study-soft);stroke:none}
.study-svg .study-accent-fill{fill:var(--study-chart);stroke:var(--study-accent)}
.study-svg .study-line{fill:none;stroke:var(--study-line);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.study-svg .study-line.study-accent{stroke:var(--study-accent);stroke-width:3}
.study-svg :is(.study-echo,.study-hatch){opacity:0}
:root[data-style="sketch"] .study-svg .study-echo{opacity:.6;stroke:var(--study-accent);stroke-width:.65}
:root[data-style="sketch"] .study-svg .study-hatch{opacity:.4;stroke-width:.65}
.reference-gallery{position:absolute;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:var(--study-paper);color:var(--study-ink);font:400 12px/1.4 'RagInter',Inter,Arial,sans-serif;text-align:left}
.reference-gallery *{box-sizing:border-box}
.reference-gallery-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;background:var(--study-paper);border-bottom:1px solid var(--study-line)}
.reference-gallery-toolbar label{display:flex;align-items:center;gap:8px;flex:1;min-width:140px;font:inherit;color:var(--study-muted)}
.reference-gallery-toolbar select{min-width:0;max-width:100%;width:100%;flex:1;font:inherit;padding:7px;border:1px solid var(--study-line);border-radius:5px;background:var(--study-paper);color:var(--study-ink)}
.reference-gallery-toolbar button{display:grid;place-items:center;flex:none;min-width:34px;min-height:34px;padding:6px;border:1px solid var(--study-line);border-radius:5px;background:var(--study-paper);color:var(--study-ink);font:inherit;cursor:pointer}
.reference-gallery-toolbar button:hover{background:var(--study-soft)}
.reference-gallery-count{flex:none;color:var(--study-muted);font:inherit;white-space:nowrap}
.reference-gallery :is(button,select,.reference-gallery-viewport):focus-visible{outline:2px solid var(--study-accent);outline-offset:-2px}
.reference-gallery-viewport{overflow:auto;overscroll-behavior:contain;min-height:0;position:relative;background:var(--study-paper)}
.reference-gallery-viewport>.drawn-interface{position:relative;width:100%;height:100%}
:root[data-style="clean"] .case-cover-drawing{filter:grayscale(1)}
@media(max-width:600px){.reference-gallery-toolbar{gap:6px;padding:7px}.reference-gallery-toolbar label{flex-basis:100%}.reference-gallery-toolbar select{max-width:calc(100% - 100px)}.reference-gallery-count{margin-left:auto}}
.reference-ui{--rui-ink:#17212d;--rui-muted:#647184;--rui-line:#e2e7ed;--rui-bg:#f4f6f9;--rui-brand:#0057b8;--rui-soft:#eaf2fc;--site-ink:var(--rui-ink);--site-muted:var(--rui-muted);--case-ink:var(--rui-ink);--case-muted:var(--rui-muted);position:absolute;inset:0;display:grid;grid-template-columns:21% minmax(0,1fr);overflow:hidden;background:var(--rui-bg);color:var(--rui-ink);font:400 1.65cqw/1.5 'RagInter',Inter,Arial,sans-serif;text-align:left;letter-spacing:-.015em}
.reference-ui *{box-sizing:border-box}
.reference-ui :is(h4,h5,p){margin:0;color:inherit;font-family:'RagInter',Inter,Arial,sans-serif;font-style:normal;letter-spacing:-.02em}
.reference-ui .rui-sidebar{padding:3cqw 1.8cqw;background:#fff;border-right:.16cqw solid var(--rui-line);position:relative;min-width:0}
.rui-brand{display:flex;align-items:center;gap:1cqw;font-size:2.6cqw;letter-spacing:-.04em;color:var(--rui-brand);white-space:nowrap}
.rui-brand i{display:grid;place-items:center;width:3cqw;height:3cqw;flex:none;background:var(--rui-brand);border-radius:.7cqw;color:#fff;font-size:1.8cqw;font-style:normal}
.rui-brand b{font-weight:650}
.rui-sidebar>small{display:block;font-size:1cqw;margin-top:.8cqw;color:var(--rui-muted);line-height:1.4}
.rui-project{display:flex;justify-content:space-between;gap:.6cqw;font-size:1.1cqw;border:.15cqw solid var(--rui-line);border-radius:.7cqw;padding:1cqw .7cqw;margin:3cqw 0}
.rui-nav{display:flex;flex-direction:column;gap:.8cqw}
.rui-nav>span{display:flex;align-items:center;gap:.8cqw;padding:1cqw .7cqw;font-size:1.13cqw;line-height:1.4;color:var(--rui-muted);border-radius:.6cqw;min-width:0}
.rui-nav i{font-style:normal;font-size:1.5cqw;flex:none}
.rui-nav .is-current{background:var(--rui-soft);color:var(--rui-brand);font-weight:600}
.rui-sidebar-foot{position:absolute;bottom:2.5cqw;left:2.5cqw;right:1.6cqw;border-top:.14cqw solid var(--rui-line);padding-top:1.5cqw;color:var(--rui-muted);font-size:1cqw;line-height:1.5}
.rui-sidebar-foot>span{opacity:.8}
.rui-main{min-width:0;padding:0 2.4cqw 2.5cqw}
.rui-top{height:6cqw;display:flex;align-items:center;justify-content:space-between;gap:2cqw;font-size:1.1cqw;color:var(--rui-muted);border-bottom:.15cqw solid var(--rui-line);margin-bottom:2.7cqw}
.rui-top>i{display:grid;place-items:center;width:2.5cqw;height:2.5cqw;border-radius:50%;background:var(--rui-soft);font-size:.9cqw;font-style:normal;color:var(--rui-brand)}
.rui-heading{display:flex;justify-content:space-between;align-items:center;gap:1.3cqw}
.reference-ui .rui-heading h4{font-size:2.6cqw;font-weight:600;line-height:1.2;color:var(--rui-ink)}
.reference-ui .rui-heading p{font-size:1.1cqw;line-height:1.6;margin-top:1cqw;color:var(--rui-muted)}
.rui-date{flex:none;padding:.7cqw .8cqw;border:.15cqw solid var(--rui-line);background:#fff;border-radius:.6cqw;font-size:1cqw;color:var(--rui-muted)}
.rui-tabs{display:flex;gap:2cqw;margin-top:2.7cqw;border-bottom:.15cqw solid var(--rui-line);font-size:1.15cqw;white-space:nowrap;color:var(--rui-muted)}
.rui-tabs>*{padding-bottom:1cqw}
.rui-tabs b{color:var(--rui-brand);border-bottom:.3cqw solid var(--rui-brand);font-weight:600}
.rui-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3cqw;margin-top:2.2cqw}
.rui-metric{min-width:0;padding:1.7cqw;border:.15cqw solid var(--rui-line);border-radius:1cqw;background:#fff}
.rui-metric>span{display:block;font-size:1.05cqw;color:var(--rui-muted)}
.rui-metric b{display:block;font-size:3cqw;line-height:1.2;font-weight:600;margin-top:1cqw;letter-spacing:-.04em;color:var(--rui-ink)}
.rui-metric small{display:block;font-size:.95cqw;color:var(--rui-muted);margin-top:.8cqw}
.rui-panels{display:grid;grid-template-columns:1.25fr 1fr;gap:1.3cqw;margin-top:1.7cqw}
.rui-panel{min-width:0;padding:1.6cqw;background:#fff;border:.15cqw solid var(--rui-line);border-radius:1cqw}
.reference-ui .rui-panel h5{display:flex;align-items:center;justify-content:space-between;gap:1cqw;font-size:1.2cqw;font-weight:600;line-height:1.4;color:var(--rui-ink)}
.rui-panel h5>span{font-size:.85cqw;font-weight:400;color:var(--rui-muted)}
.rui-line{display:block;width:100%;height:14.5cqw;margin-top:1cqw;overflow:visible}
.rui-gridline{fill:none;stroke:var(--rui-line);stroke-width:1}
.rui-trend{fill:none;stroke:var(--rui-brand);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:650;animation:rui-draw .7s cubic-bezier(.22,1,.36,1) both}
.rui-health{display:flex;flex-direction:column;gap:.65cqw;margin-top:1.8cqw}
.rui-health>span{display:flex;justify-content:space-between;font-size:1cqw;color:var(--rui-muted)}
.rui-health b{font-weight:550;color:var(--rui-ink)}
.rui-health>i{height:.7cqw;border-radius:.5cqw;background:linear-gradient(90deg,var(--rui-brand) var(--p),var(--rui-soft) var(--p));margin-bottom:1cqw}
.rui-table{margin-top:1.7cqw;border:.15cqw solid var(--rui-line);border-radius:.9cqw;overflow:hidden;background:#fff}
.rui-table-row{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:1cqw;padding:1cqw 1.4cqw;font-size:1cqw;border-top:.13cqw solid var(--rui-line);color:var(--rui-muted)}
.rui-table-head{border-top:0;background:#f7f9fb;font-size:.9cqw;color:var(--rui-muted)}
.rui-table-row em{font-style:normal;color:#24734a;background:#e9f5ee;padding:.3cqw .5cqw;border-radius:.4cqw;font-size:.9cqw}
.rui-table-row em.warn{color:#9b5f18;background:#fff2d9}
.rui-egenie{--rui-brand:#1fa463;--rui-soft:#eaf6ee;--rui-bg:#f6f7f9}
.rui-aeo{--rui-brand:#4f46e5;--rui-soft:#eef2ff;--rui-bg:#f9fafb}
.rui-audit{--rui-brand:#0057b8;--rui-soft:#e9f1fb}
.rui-ccm{--rui-brand:#8c6f1e;--rui-soft:#f3eddf;--rui-bg:#f4f1e9;--rui-line:#e3ddcf}
.rui-risk{display:grid;grid-template-columns:repeat(5,1fr);gap:.45cqw;margin:1.3cqw auto 0;width:19cqw;height:17cqw}
.rui-risk>span{display:grid;place-items:center;background:#eaf4ed;border-radius:.35cqw;font-size:1.1cqw;color:#374b43}
.rui-risk .risk-0{background:#f5d7d8}.rui-risk .risk-1{background:#f8e5ce}.rui-risk .risk-2{background:#f3eccd}.rui-risk .risk-3{background:#e4eedc}
.rui-plan{display:flex;flex-direction:column;gap:1.1cqw;margin-top:1.8cqw}
.rui-plan>span{display:flex;align-items:center;gap:1cqw;font-size:1cqw;color:var(--rui-muted)}
.rui-plan b{font-size:.9cqw;background:var(--rui-soft);color:var(--rui-brand);padding:.7cqw;border-radius:.5cqw}
.rui-insight{display:flex;align-items:center;gap:1.5cqw;margin-top:1.7cqw;padding:1.5cqw;background:#fff;border:.15cqw solid var(--rui-line);border-radius:.8cqw;font-size:1cqw;color:var(--rui-muted)}
.rui-insight b{color:var(--rui-brand);font-weight:550}.rui-insight i{margin-left:auto;font-style:normal}
.rui-pipeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8cqw;margin-top:1.5cqw}
.rui-pipeline>span{font-size:.85cqw;color:var(--rui-muted);border-left:.2cqw solid var(--rui-line);padding-left:.7cqw}
.rui-pipeline b{display:block;font-size:1.8cqw;font-weight:550;color:var(--rui-ink);margin-top:.5cqw}
.rui-bars{display:flex;gap:1.5cqw;align-items:end;height:9cqw;margin:1cqw .8cqw 0;border-bottom:.1cqw solid var(--rui-line)}
.rui-bars i{height:var(--h);flex:1;background:var(--rui-brand);opacity:.7;border-radius:.5cqw .5cqw 0 0;transform-origin:center bottom;animation:rui-grow .55s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i)*35ms)}
.rui-coverage{text-align:center;padding-top:1.6cqw}.rui-coverage b{display:block;font-size:5cqw;font-weight:550;line-height:1.2;color:var(--rui-brand);letter-spacing:-.05em}.rui-coverage span{font-size:1cqw;color:var(--rui-muted)}
.reference-ui .rui-panel-note{font-size:.9cqw;line-height:1.8;text-align:center;margin-top:1.2cqw;color:var(--rui-muted)}
/* The mega-menu keeps its two-column frame, with distinct Work/Experiments lists. */
.mega-projects [data-menu-list][hidden]{display:none}
.menu-preview-heading{flex:none;margin:0 0 15px;white-space:normal}
.menu-preview-heading>span{font:10px/1.5 'RagInter',Inter,Arial,sans-serif;color:var(--site-muted);letter-spacing:.03em}
.menu-preview-heading h3{font:550 clamp(19px,1.6vw,27px)/1.2 'RagInter',Inter,sans-serif;letter-spacing:-.04em;color:var(--site-ink);margin:7px 0}
.menu-preview-heading p{font:12px/1.6 'RagInter',Inter,sans-serif;color:var(--site-muted);margin:0;max-width:610px}
.mega-preview .preview-frame{container-type:size;padding:12px;min-height:160px}
.menu-ui-preview{position:relative;width:min(100cqw,143cqh);aspect-ratio:1.43;max-width:100%;overflow:hidden;border-radius:11px}
.menu-ui-preview .menu-project-preview{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:1px solid #d4dce3;border-radius:11px;background:#fff;container-type:inline-size}
.mega-preview .preview-footer{font:11px/1.5 'RagInter',Inter,sans-serif;letter-spacing:0;gap:15px;padding-top:13px;color:var(--site-muted)}
.menu-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:13px;white-space:normal}
.menu-preview-actions a{color:var(--site-ink);font:11px/1.5 'RagInter',Inter,sans-serif;border-bottom:1px solid var(--site-line);padding-bottom:3px}
.menu-preview-actions a:first-child{color:var(--site-accent);font-weight:550}
.mega-projects .menu-group-note{font-size:11px;line-height:1.6;white-space:normal;margin-bottom:20px;color:var(--site-muted)}
:root[data-style] .mega-menu .project-item{font-family:'RagInter',Inter,Arial,sans-serif;letter-spacing:-.025em}
@keyframes rui-draw{from{stroke-dashoffset:650}to{stroke-dashoffset:0}}
@keyframes rui-grow{from{scale:1 .08;opacity:.3}to{scale:1 1;opacity:.7}}
@media(max-width:760px){.mega-preview{min-height:420px}.menu-preview-heading h3{font-size:21px}.menu-preview-heading p{font-size:11px}.mega-preview .preview-frame{min-height:210px}.mega-preview .preview-footer{font-size:10px}.menu-preview-actions a{font-size:10px}.mega-projects .menu-group-note{font-size:11px}.menu-ui-preview{border-radius:8px}}
@media(prefers-reduced-motion:reduce){.reference-ui *{animation:none!important;transition:none!important}}

.case-cover-drawing.drawn-case-cover{background:var(--study-paper)}
.drawn-case-cover>.study-svg{height:auto;aspect-ratio:5/3}

/* Project navigation: one category at a time, with a deliberate open/close action. */
:root[data-style] .mega-menu{grid-template-columns:minmax(270px,.9fr) minmax(0,1.1fr);grid-template-rows:auto minmax(0,1fr);width:min(920px,calc(100vw - 40px));height:min(520px,calc(100dvh - 120px));min-height:0;border-radius:18px;backdrop-filter:none}
.menu-header{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding:12px 18px 12px 22px;border-bottom:1px solid var(--site-line)}
.menu-header h2{flex:1;margin:0;color:var(--site-ink);font:550 18px/1.3 'RagInter',Inter,sans-serif;letter-spacing:-.03em}
.menu-header .menu-browse{font:12px/1.4 'RagInter',Inter,sans-serif;color:var(--site-muted);text-decoration:none;padding:10px 0}
.menu-header #menu-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--site-line);border-radius:50%;background:transparent;color:var(--site-ink);font:24px/1 Arial,sans-serif;cursor:pointer}
.menu-header #menu-close:hover{background:var(--site-subtle)}
:root[data-style] .mega-menu .mega-projects{min-height:0;max-height:none;padding:18px;border-bottom:0;border-right:1px solid var(--site-line);overflow:auto}
.menu-categories{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:14px;margin-bottom:8px;border-bottom:1px solid var(--site-line)}
.menu-categories button{display:flex;align-items:center;gap:7px;padding:7px 9px;min-height:34px;border:1px solid var(--site-line);border-radius:6px;background:transparent;color:var(--site-muted);font:12px/1.3 'RagInter',Inter,sans-serif;cursor:pointer}
.menu-categories button>span{opacity:.65;font-size:10px}
.menu-categories button[aria-pressed="true"]{background:var(--site-subtle);color:var(--site-ink);border-color:var(--site-accent)}
.mega-menu :is([hidden],.preview-footer[hidden]){display:none!important}
.mega-menu .project-group{margin:0}
.mega-menu .project-group>p{display:none}
:root[data-style] .mega-menu .project-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;width:100%;margin:0;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--site-muted);font:400 14px/1.4 'RagInter',Inter,sans-serif;text-align:left;letter-spacing:-.015em;transform:none}
.mega-menu .project-item>span:first-child{min-width:0}
.menu-item-arrow{flex:none;opacity:0;font-size:15px}
:root[data-style] .mega-menu .project-item:is(:hover,:focus-visible,.is-active){background:var(--site-subtle);color:var(--site-ink);transform:none}
.mega-menu .project-item:is(:hover,:focus-visible,.is-active) .menu-item-arrow{opacity:1}
:root[data-style] .mega-menu .mega-preview{min-height:0;padding:18px 20px 20px}
.menu-preview-heading{margin:0 0 12px}
.menu-preview-heading>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:10px/1.5 'RagInter',Inter,sans-serif}
.menu-preview-heading h3{font-size:20px;margin:5px 0 0;line-height:1.25}
.mega-menu .mega-preview .preview-frame{padding:8px;min-height:0;border-radius:10px}
.menu-preview-actions{margin-top:12px}
.menu-preview-actions a:first-child{display:flex;justify-content:space-between;align-items:center;min-height:40px;width:100%;padding:9px 12px;border:1px solid var(--site-line);border-radius:7px;text-decoration:none;font-size:12px}
:root[data-style="sketch"] .mega-menu{border-radius:8px 19px 9px 17px}
:root[data-style="sketch"] :is(.menu-categories button,.menu-preview-actions a:first-child){border-radius:4px 9px 4px 7px}
@media(max-width:760px){
 :root[data-style] .mega-menu{position:fixed;top:76px;left:50%;width:calc(100vw - 24px);height:auto;max-height:calc(100dvh - 92px);grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);overflow:hidden}
 .menu-header{gap:10px;padding:9px 12px 9px 16px}.menu-header h2{font-size:17px}.menu-header .menu-browse{font-size:11px}
 :root[data-style] .mega-menu .mega-projects{padding:12px;border:0;max-height:calc(100dvh - 166px)}
 :root[data-style] .mega-menu .project-item{min-height:45px;font-size:14px}
 :root[data-style] .mega-menu .mega-preview{display:none}
 .menu-item-arrow{opacity:.55}.menu-categories{gap:5px;padding-bottom:12px}
}
/* Each project has a visible product notebook alongside its scope and system sketches. */
.case-interface-board{margin:30px 0 38px;padding:24px;background:var(--site-surface);border:1px solid var(--site-line);border-radius:13px;box-shadow:var(--site-shadow)}
.case-interface-heading{margin-bottom:20px}
.case-interface-heading .case-eyebrow{margin:0 0 8px}
.case-interface-heading h5{margin:0 0 10px;color:var(--site-ink);font:400 30px/1.15 'RagInter',Inter,Arial,sans-serif;letter-spacing:-.025em}
.case-editorial .case-interface-heading>p:last-child{max-width:560px;margin:0;color:var(--site-muted);font:13px/1.7 'RagInter',Inter,sans-serif}
.case-interface-board>.case-preview{margin:auto;border:1px solid var(--site-line);border-radius:8px;max-width:100%}
.case-editorial .case-interface-note{margin:14px 0 0;color:var(--site-muted);font:11px/1.5 'RagInter',Inter,sans-serif}
:root[data-style="sketch"] .case-interface-board{border-radius:4px 18px 6px 12px;background:var(--site-solid);box-shadow:4px 5px 0 var(--site-subtle)}
:root[data-style="sketch"] .case-interface-board>.case-preview{border-radius:4px 12px 4px 8px}
:root[data-style="clean"] .case-interface-board .case-preview>*{filter:grayscale(1)}
/* The existing HTML UI studies receive the same paper/ink treatment as vector studies. */
:root[data-style="sketch"] .reference-ui{--rui-bg:#fffdf5;--rui-paper:#fffdf5;--rui-ink:#352c4b;--rui-muted:#71657b;--rui-line:#aa96b4;--rui-brand:#403275;--rui-soft:#fff1ba;background:var(--rui-bg)}
:root[data-style="sketch"][data-scheme="night"] .reference-ui{--rui-bg:#2c2638;--rui-paper:#2c2638;--rui-ink:#eee6f5;--rui-muted:#c5b7cf;--rui-line:#9b86aa;--rui-brand:#c8b5e8;--rui-soft:#473d43}
:root[data-style="sketch"] .reference-ui :is(.rui-sidebar,.rui-metric,.rui-panel,.rui-table,.rui-insight,.rui-date,.rui-table-head){background:var(--rui-paper);border-color:var(--rui-line)}
:root[data-style="sketch"] .reference-ui :is(.rui-panel,.rui-metric,.rui-table,.rui-insight){border-radius:.3cqw 1.2cqw .4cqw .9cqw;box-shadow:.3cqw .4cqw 0 var(--rui-soft)}
:root[data-style="sketch"] .reference-ui .rui-panel{position:relative}
:root[data-style="sketch"] .reference-ui .rui-panel::after{content:'';position:absolute;right:.7cqw;bottom:.7cqw;width:4cqw;height:2cqw;background:repeating-linear-gradient(135deg,transparent 0 3px,var(--rui-line) 3px 3.5px);opacity:.5;pointer-events:none}
:root[data-style="sketch"] .reference-ui :is(.rui-heading h4,.rui-panel h5){font-family:'RagInter',Inter,Arial,sans-serif}
.case-case-footer{flex-wrap:wrap;gap:18px}
.case-next-project{display:flex;flex-direction:column;gap:7px;margin-left:auto;max-width:360px;padding:13px 17px;border:1px solid var(--site-line);border-radius:8px;text-decoration:none;color:var(--site-ink);font:12px/1.4 'RagInter',Inter,sans-serif}
.case-next-project span{color:var(--site-muted);font-size:11px}
.case-next-project strong{font-weight:500}
.case-next-project:hover{background:var(--site-subtle)}
@media(max-width:760px){.case-interface-board{padding:15px 10px;margin:24px 0 28px}.case-interface-heading{padding:0 4px;margin-bottom:14px}.case-interface-heading h5{font-size:26px}.case-editorial .case-interface-heading>p:last-child{font-size:12px}.case-next-project{margin-left:0;width:100%;max-width:none}}

/* Selected work is a small project notebook; every preview follows the chosen style. */
.menu-header h2{font:400 25px/1.2 'RagInter',Inter,Arial,sans-serif;letter-spacing:-.03em}
.mega-menu .project-item .menu-item-number{flex:none;width:22px;color:var(--site-muted);font:10px/1.4 'RagInter',Inter,Arial,sans-serif;opacity:.65}
.mega-menu .project-item>span:nth-child(2){flex:1;min-width:0}
.menu-preview-heading h3{font:400 24px/1.2 'RagInter',Inter,Arial,sans-serif;margin-top:7px}
.menu-preview-heading>span{letter-spacing:.08em;font-size:9px}
:root[data-style="clean"] .menu-project-preview>*{filter:grayscale(1)}
:root[data-style="clean"] .menu-ui-preview .menu-project-preview{border-color:var(--site-line);box-shadow:none}
:root[data-style="sketch"] .menu-header{background:var(--site-solid)}
:root[data-style="sketch"] .menu-header #menu-close{background:var(--site-yellow);border-color:var(--site-line)}
:root[data-style="sketch"] .menu-categories button[aria-pressed="true"]{background:var(--site-yellow);box-shadow:2px 2px 0 var(--site-line)}
:root[data-style="sketch"] .mega-menu .project-item.is-active{background:var(--site-pink);border-radius:3px 11px 5px 8px}
:root[data-style="sketch"] .mega-menu .project-item.is-active .menu-item-number{color:var(--site-accent);opacity:1}
:root[data-style="sketch"] .mega-menu .preview-frame{position:relative;background:var(--site-solid);border-radius:5px 14px 4px 10px;box-shadow:3px 4px 0 var(--site-subtle)}
:root[data-style="sketch"] .mega-menu .preview-frame::after{content:'';position:absolute;inset:4px;border:1px solid var(--site-line);border-radius:3px 11px 5px 8px;opacity:.4;pointer-events:none}
:root[data-style="sketch"] .menu-ui-preview .menu-project-preview{border-color:var(--site-line);border-radius:3px 9px 4px 7px}
:root[data-style="sketch"] .menu-project-preview .portfolio-mini{color:#4e3c69;border-color:#937da2;background:#fffdf5;box-shadow:.6cqw .8cqw 0 #937da222}
:root[data-style="sketch"] .menu-project-preview .portfolio-mini-bar{background:#f3e6f4;border-color:#937da2}
:root[data-style="sketch"] .menu-preview-actions a:first-child{background:var(--site-cyan);box-shadow:2px 3px 0 var(--site-line)}
@media(max-width:760px){.menu-header h2{font-size:23px}}

/* All supplied interface sections are visible in normal page flow. */
.interface-sections{display:grid;gap:32px;min-width:0}
.interface-section{min-width:0;padding-top:22px;border-top:1px dashed var(--site-line)}
.interface-section h6{margin:0 0 9px;color:var(--site-ink);font:500 20px/1.35 'RagInter',Inter,sans-serif;letter-spacing:-.03em}
.case-editorial .interface-section-description{margin:0 0 17px;max-width:640px;color:var(--site-muted);font:13px/1.7 'RagInter',Inter,sans-serif}
.interface-section .interface-section-preview{aspect-ratio:900/560;border:1px solid var(--site-line);border-radius:8px;background:var(--site-surface)}
:root[data-style="sketch"] .interface-section-preview{border-radius:3px 13px 4px 9px;box-shadow:3px 4px 0 var(--site-subtle)}
:root[data-style="clean"] .interface-section-preview>*{filter:grayscale(1)}
.project-study-svg text{fill:var(--study-ink);font-family:'RagInter',Inter,Arial,sans-serif}
:root[data-style="clean"] .project-study-svg text{font-family:'RagInter',Inter,Arial,sans-serif}
.project-study-svg [stroke]{stroke:var(--study-line)}
.project-study-svg :is(path,rect,circle,ellipse,polygon)[fill]:not([fill="none"]){fill:var(--study-paper)}
.project-study-svg text[fill]{fill:var(--study-ink)}
.project-study-svg [fill="#4b3b96"]{fill:var(--study-ink)}
.project-study-svg text[fill]{fill:var(--study-ink)}
.menu-view-controls{display:flex;align-items:center;gap:8px;flex:none;margin-top:10px;min-width:0}
.menu-view-controls[hidden]{display:none}
.menu-view-controls button{display:grid;place-items:center;flex:none;min-width:34px;min-height:34px;border:1px solid var(--site-line);border-radius:5px;background:var(--site-surface);color:var(--site-ink);cursor:pointer}
.menu-view-controls span{flex:1;min-width:0;color:var(--site-muted);font:11px/1.4 'RagInter',Inter,sans-serif}
:root[data-style="sketch"] .menu-view-controls button{background:var(--site-yellow);border-radius:3px 8px 3px 6px}
@media(max-width:760px){.interface-sections{gap:25px}.interface-section{padding-top:18px}.interface-section h6{font-size:17px}.case-editorial .interface-section-description{font-size:12px}.menu-view-controls{display:none}}
.interface-enlarge{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;padding:8px 12px;border:1px solid var(--site-line);border-radius:5px;background:var(--site-surface);color:var(--site-ink);font:12px/1.4 'RagInter',Inter,sans-serif;cursor:pointer}
:root[data-style="sketch"] .interface-enlarge{background:var(--site-cyan);border-radius:3px 8px 3px 6px}
.interface-sketch-dialog{width:min(1120px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--site-line);border-radius:12px;background:var(--site-surface);color:var(--site-ink);box-shadow:0 20px 90px #0004;overflow:hidden}
.interface-sketch-dialog::backdrop{background:#101719aa;backdrop-filter:blur(4px)}
.interface-sketch-dialog:not([open]){display:none}
.interface-sketch-dialog>header{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--site-line);font:15px/1.4 'RagInter',Inter,sans-serif}
.interface-sketch-dialog>header strong{font-weight:500}
.interface-sketch-dialog>header button{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid var(--site-line);border-radius:50%;background:var(--site-surface);color:var(--site-ink);font:25px Arial,sans-serif;cursor:pointer}
.interface-sketch-dialog>p{margin:12px 16px;color:var(--site-muted);font:12px/1.5 'RagInter',Inter,sans-serif}
.sketch-dialog-viewport{max-height:calc(100dvh - 165px);overflow:auto;overscroll-behavior:contain}
.sketch-dialog-sheet{position:relative;width:max(100%,900px);height:560px}
:root[data-style="clean"] .sketch-dialog-sheet>*{filter:grayscale(1)}
@media(max-width:820px){.interface-sketch-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 32px);border-radius:12px}.interface-sketch-dialog>header{gap:10px;padding:10px 12px}.sketch-dialog-viewport{min-height:280px}}
/* A portable outline signature is the same identity on desktop, mobile and résumé. */
.site-signature{display:flex;align-items:center;flex:none;width:200px;height:58px;margin-right:auto;color:var(--site-ink);text-decoration:none}
.signature-logo{display:block;width:100%;height:auto;max-height:58px;overflow:visible;fill:currentColor}
.site-signature:hover{color:var(--site-accent)}
.resume-home>.signature-logo{width:200px;height:auto;max-height:56px;fill:currentColor;stroke:none;border:0;border-radius:0;background:none;rotate:0deg;padding:0;color:var(--site-ink)}
@media(min-width:821px){
 :root[data-style] .top-actions{top:20px;left:32px;right:32px;width:auto;height:64px;transform:none;gap:12px}
 .top-actions .nav-dock{margin-left:auto}
}
@media(min-width:821px) and (max-width:1100px){
 .site-signature{width:155px}.top-actions .nav-dock{height:61px;gap:0;padding:4px}
 .top-actions .nav-dock :is(a,button){display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;flex:0 1 58px;width:58px;min-width:50px;height:51px;padding:3px}
 .top-actions .nav-dock .nav-label{display:block;max-width:none;opacity:1;margin:0;font-size:10px;line-height:1.1}
 .top-actions .nav-dock svg{width:18px;height:18px}
 .top-actions .theme-button{width:46px;height:46px;flex-basis:46px}.top-actions .call-button{height:46px;font-size:12px;padding-right:11px}
}
/* Portrait controls stay on an unobtrusive dock, with accessible icon labels. */
.site-footer .site-footer-toys{position:absolute;left:auto;right:clamp(24px,3vw,60px);bottom:26px;display:flex;align-items:center;gap:7px;padding:6px;max-width:fit-content;border:1px solid #ffffff2a;border-radius:99px;background:#151918ed;box-shadow:0 5px 25px #0004;z-index:5}
.site-footer-toys>button,.site-footer-toys>.site-footer-play{position:relative;left:auto;right:auto;top:auto;bottom:auto;display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:9px;border:1px solid #ffffff20;border-radius:50%;background:#ffffff08;color:#edf3ed;cursor:pointer;transition:background .16s,color .16s,transform .16s}
.site-footer-toys>button svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
#footer-change-ink{color:var(--portrait-action-ink,#f6f5ef)}
.site-footer-toys>button:hover,.site-footer-toys>button:focus-visible{background:#d5eee8;color:#172d2a}
.site-footer-toys>button:active{transform:scale(.94)}
.site-footer-toys>button:hover svg{transform:rotate(-8deg)}
.site-footer-toys>.site-footer-play{background:#edf3ed;color:#162c27}
.footer-action-tip{position:absolute;left:50%;bottom:calc(100% + 12px);padding:7px 10px;border:1px solid #ffffff30;border-radius:7px;background:#202b27;color:#edf3ed;font:11px/1.3 'RagInter',Inter,sans-serif;white-space:nowrap;opacity:0;transform:translate(-50%,4px);pointer-events:none;transition:opacity .14s,transform .14s}
.site-footer-toys>button:hover .footer-action-tip,.site-footer-toys>button:focus-visible .footer-action-tip{opacity:1;transform:translate(-50%,0)}
@media(max-width:820px){.site-footer .site-footer-toys{position:relative;right:auto;left:auto;bottom:auto;margin:16px auto 0;max-width:fit-content}.site-footer-toys>.site-footer-play{position:relative;right:auto;bottom:auto}}
@media(prefers-reduced-motion:reduce){.site-footer-toys>button,.site-footer-toys>button svg,.footer-action-tip{transition:none!important}}
.case-signature{display:flex;align-items:center;flex:none;width:140px;height:44px;color:var(--site-ink)}
.case-signature .signature-logo{max-height:44px}
@media(max-width:820px){.case-signature{display:none}}

/* Project pager: the current page number is readable on its fill (a shared theme rule with an id
   selector was forcing ink colour), and both arrows share one style. */
:root[data-style] .work-pager .work-page-buttons button{min-width:28px;height:28px;border-radius:7px;font-weight:500}
:root[data-style] .work-pager .work-page-buttons button[aria-current="page"]{background:var(--site-accent)!important;border-color:var(--site-accent)!important;color:var(--site-on-accent)!important;box-shadow:none}
:root[data-style="clean"] .work-viewport .work-pager .work-page-buttons button[aria-current="page"]{background:var(--site-ink)!important;border-color:var(--site-ink)!important;color:var(--site-bg)!important}
:root[data-style] .work-pager>button{display:grid;place-items:center;width:34px!important;height:34px!important;padding:0;border:1.4px solid var(--site-line)!important;border-radius:50%;background:var(--site-surface)!important;color:var(--site-ink)!important;font-size:17px;box-shadow:none;transition:background .2s,border-color .2s,opacity .2s}
:root[data-style] .work-pager>button:hover:not(:disabled){background:var(--site-accent-soft)!important;border-color:var(--site-accent)!important}
:root[data-style] .work-pager>button:disabled{opacity:.35}
:root[data-style="sketch"] .work-pager>button{border-color:var(--site-accent)!important;border-radius:48% 52% 45% 55%}
@media(max-width:960px){:root[data-style] .work-pager>button{width:44px!important;height:44px!important}}
/* Phones: arrows and the project count on one centred row, "All projects" on its own row below. */
@media(max-width:960px){
  :root[data-style] .work-pager{display:grid!important;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px 10px!important;width:100%;max-width:420px;padding:8px!important;border-radius:20px!important;box-sizing:border-box}
  :root[data-style] .work-pager>#work-prev{grid-column:1;grid-row:1}
  :root[data-style] .work-pager>#work-page-status{grid-column:2;grid-row:1;min-width:0!important;text-align:center;font-size:14px!important;font-weight:500;font-variant-numeric:tabular-nums}
  :root[data-style] .work-pager>#work-next{grid-column:3;grid-row:1}
  :root[data-style] .work-pager>.work-nav-divider{grid-column:1/-1;grid-row:2;width:100%!important;height:1px!important;margin:0!important}
  :root[data-style] .work-pager>.work-directory{grid-column:1/-1;grid-row:3;justify-self:stretch}
  :root[data-style] .work-pager>.work-directory>summary{justify-content:center;min-height:44px}
}
