/* Responsive corrections only; existing typography, colors, and artwork remain. */
body.portfolio-site img{max-width:100%}
body.portfolio-site :where(main,section,article,figure,form,.book-feature-copy,.home-featured-copy){min-width:0}
body.portfolio-site :where(h1,h2,h3,p,li,dd,a,button){overflow-wrap:break-word}
body.portfolio-site :where(button,.service-button,.text-link){max-width:100%}
body.portfolio-site .opening>aside{height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
body.portfolio-site .portfolio-menu-toggle{display:none}
body.portfolio-site .opening>main{padding:clamp(26px,3vw,44px) clamp(24px,3.2vw,50px) 40px}
body.portfolio-site .home-introduction{gap:clamp(24px,3vw,44px);margin-bottom:clamp(24px,4vw,50px)}
body.portfolio-site.home-redesign .home-intro-copy{padding:0}
body.portfolio-site.home-redesign .home-intro-copy h1{font-size:clamp(34px,3.25vw,54px);line-height:1.09;max-width:23ch;text-wrap:pretty}
body.portfolio-site.home-redesign .home-intro-copy>p:not(.eyebrow){margin-top:18px}
body.portfolio-site.home-redesign .home-intro-art{max-height:400px;height:auto;width:100%;object-fit:contain}
body.portfolio-site .home-intro-actions .service-button{margin:0;white-space:normal}
body.portfolio-site .home-featured{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.4fr);gap:clamp(24px,3vw,42px);grid-template-rows:auto;align-items:center;min-height:0;padding-top:0}
body.portfolio-site .home-featured-copy{min-height:0;padding:0;display:block}
body.portfolio-site .home-featured h2{font-size:clamp(30px,3.5vw,48px);line-height:1.1;margin:14px 0}
body.portfolio-site .home-featured .hero-description{font-size:clamp(14px,1.25vw,17px);line-height:1.6;margin-bottom:18px}
body.portfolio-site .home-featured .hero-image{grid-column:2;grid-row:1;height:auto;min-height:0;width:100%;aspect-ratio:auto;align-self:center}
body.portfolio-site .home-featured .hero-image img{height:auto;width:100%;max-height:490px;object-fit:contain;aspect-ratio:auto}
body.portfolio-site .home-featured .hero-bottom{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
body.portfolio-site .home-featured .hero-bottom .service-button{margin:0}
body.portfolio-site .carousel{display:flex;gap:13px;align-items:center;flex-wrap:wrap}
body.portfolio-site .carousel button{min-width:36px;min-height:36px}
body.portfolio-site .home-offerings{margin:clamp(32px,5vw,64px) 0}
body.portfolio-site .home-offering-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 30px}
body.portfolio-site .home-offering-grid article{display:block;min-width:0}
body.portfolio-site .offering-image{margin-bottom:18px}
body.portfolio-site .offering-image img{height:auto;aspect-ratio:1.65;object-fit:contain}
body.portfolio-site .home-offering-grid h3{font-size:clamp(25px,2.6vw,34px);line-height:1.15}
body.portfolio-site .home-offering-grid article p{font-size:16px;line-height:1.55;margin:14px 0 18px}
body.portfolio-site .home-offering-grid .text-link{display:inline-flex;gap:10px;margin:0}
body.portfolio-site .venture{min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.portfolio-site .venture>div{padding:clamp(24px,3vw,40px)}
body.portfolio-site .venture h2{font-size:clamp(30px,3.2vw,44px);line-height:1.12}
body.portfolio-site .venture-art img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
body.portfolio-site .site-inquiry-footer{box-sizing:border-box;max-width:100%;width:100%;gap:24px}
body.portfolio-site .site-inquiry-footer>div{min-width:0}
body.portfolio-site .site-inquiry-footer .service-button{white-space:normal;flex-shrink:1}
body.portfolio-site .book-collection-heading{flex-wrap:wrap;row-gap:12px}
body.portfolio-site .book-collection-heading h2,body.portfolio-site .overview-feature-heading h2{white-space:normal}
body.portfolio-site .book-feature,body.portfolio-site .work-showcase .book-feature{min-height:0;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}
body.portfolio-site .book-feature-art{min-height:0}
body.portfolio-site .book-feature-art img{min-height:0;height:auto;max-height:460px;object-fit:contain}
body.portfolio-site .content-page>h1,body.portfolio-site .services-intro h1,body.portfolio-site .portfolio-main>h1,body.portfolio-site .notes-editorial .notes-masthead h1{font-size:clamp(36px,4.5vw,64px);line-height:1.1}
body.portfolio-site .notes-feature{min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
body.portfolio-site .notes-editorial .notes-masthead{margin-bottom:25px}
body.portfolio-site .notes-editorial .notes-editorial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.portfolio-site dialog{box-sizing:border-box;max-width:calc(100vw - 28px);max-height:90dvh;overflow-y:auto}
body.portfolio-site dialog img{max-width:100%;object-fit:contain}
body.portfolio-site .filters,body.portfolio-site .notes-filters{flex-wrap:wrap;max-width:100%}
@media(min-width:1280px){body.portfolio-site .opening>aside .intro{margin-top:22px}body.portfolio-site .opening>aside nav{margin-top:0}}
@media(max-width:1279px){
 body.portfolio-site{background:#fff}
 body.portfolio-site .opening:has(>aside){display:block;max-width:none;background:#fff;min-height:0}
 body.portfolio-site .opening>aside{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 20px;height:auto;min-height:0;overflow:visible;padding:18px clamp(22px,4vw,44px);border-right:0;border-bottom:1px solid var(--brand-line);width:100%}
 body.portfolio-site .opening>aside .wordmark{grid-column:1;max-width:190px;width:190px;margin:0;line-height:1}
 body.portfolio-site .opening>aside .portfolio-menu-toggle{display:flex;grid-column:2;grid-row:1;align-items:center;gap:10px;border:1px solid var(--brand-line);border-radius:5px;padding:11px 14px;background:transparent;color:var(--red);font:600 14px Arial,sans-serif;min-height:44px}
 body.portfolio-site .portfolio-navigation{grid-column:1/-1;width:100%;min-width:0}
 body.portfolio-site .navigation-ready .portfolio-navigation{display:none}
 body.portfolio-site .portfolio-menu-toggle[aria-expanded="true"]+.portfolio-navigation{display:block}
 body.portfolio-site .portfolio-navigation .profession,body.portfolio-site .portfolio-navigation .short-rule,body.portfolio-site .portfolio-navigation .intro{display:none}
 body.portfolio-site .portfolio-navigation nav[aria-label="Main navigation"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;width:100%;padding-top:18px;margin:16px 0 0;border-top:1px solid var(--brand-line)}
 body.portfolio-site .portfolio-navigation nav[aria-label="Main navigation"] a{display:flex;align-items:center;min-height:44px;font:600 14px Arial,sans-serif;padding:12px;border:0;border-radius:5px;letter-spacing:0;justify-content:flex-start}
 body.portfolio-site .portfolio-navigation .email{display:inline-flex;font-size:12px;margin-top:18px;white-space:normal}
 body.portfolio-site .opening>main{padding:30px clamp(24px,4vw,48px) 40px;width:100%}
 body.portfolio-site.home-redesign .home-introduction{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
 body.portfolio-site.home-redesign .home-intro-copy{grid-row:1;grid-column:1}
 body.portfolio-site.home-redesign .home-intro-copy h1{font-size:clamp(35px,4.1vw,49px)}
 body.portfolio-site.home-redesign .home-intro-art{grid-row:1;grid-column:2;max-height:360px}
 body.portfolio-site .site-inquiry-footer>div{padding-left:0}
}
@media(max-width:1000px){
 body.portfolio-site .notes-editorial .notes-editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.portfolio-site .home-featured{grid-template-columns:minmax(250px,.9fr) minmax(0,1.2fr);gap:24px}
 body.portfolio-site .case-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.portfolio-site .book-feature{grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:24px}
}
@media(max-width:800px){
 body.portfolio-site.home-redesign .home-introduction{grid-template-columns:1fr;gap:22px}
 body.portfolio-site.home-redesign .home-intro-copy{grid-row:1;grid-column:1}
 body.portfolio-site.home-redesign .home-intro-art{grid-row:2;grid-column:1;max-height:300px;width:100%}
 body.portfolio-site.home-redesign .home-intro-copy h1{font-size:clamp(35px,5.8vw,46px);max-width:25ch}
 body.portfolio-site.home-redesign .home-intro-copy>p:not(.eyebrow){max-width:62ch}
 body.portfolio-site .venture{grid-template-columns:1fr}
 body.portfolio-site .book-feature{grid-template-columns:1fr}
 body.portfolio-site .book-feature-art{min-height:0}
 body.portfolio-site .book-feature-copy .service-button{margin-top:18px}
 body.portfolio-site .site-inquiry-footer{flex-direction:column;align-items:flex-start}
}
@media(max-width:700px){
 body.portfolio-site .opening>main{padding:26px 24px 34px}
 body.portfolio-site .home-featured{grid-template-columns:minmax(0,1fr);gap:18px;grid-template-rows:auto;align-items:start}
 body.portfolio-site .home-featured-copy{grid-column:1;grid-row:1;min-height:0}
 body.portfolio-site .home-featured .hero-image{grid-column:1;grid-row:2;min-height:0;height:auto;aspect-ratio:auto}
 body.portfolio-site .home-featured>.hero-bottom{grid-column:1;grid-row:3;margin-top:0;justify-content:space-between}
 body.portfolio-site .home-featured .hero-image img{max-height:400px;object-fit:contain}
 body.portfolio-site .home-featured h2{font-size:clamp(31px,7vw,40px);margin:10px 0}
 body.portfolio-site .home-featured .hero-description{margin-bottom:0}
 body.portfolio-site .home-offering-grid{grid-template-columns:1fr;gap:32px}
 body.portfolio-site .offering-image img{height:auto;max-height:300px;aspect-ratio:1.65}
 body.portfolio-site .home-offering-grid article p{font-size:16px;margin:12px 0 16px}
 body.portfolio-site .home-notes-preview{grid-template-columns:1fr}
 body.portfolio-site .notes-feature{grid-template-columns:1fr}
 body.portfolio-site .notes-feature-copy{grid-row:1;padding:24px}
 body.portfolio-site .notes-feature-art{grid-row:2}
 body.portfolio-site .case-preview-grid{grid-template-columns:1fr}
 body.portfolio-site .overview-collection .book-shelf,body.portfolio-site .brand-collection .book-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.portfolio-site .company-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.portfolio-site .book-collection-heading>span{display:none}
 body.portfolio-site .notes-editorial .notes-editorial-grid{gap:26px 20px}
 body.portfolio-site .package-grid,body.portfolio-site .support-grid,body.portfolio-site .service-process ol{grid-template-columns:1fr}
}
@media(max-width:479px){
 body.portfolio-site .opening>aside{padding:16px 20px}
 body.portfolio-site .opening>aside .wordmark{width:160px;max-width:calc(100% - 10px)}
 body.portfolio-site .opening>main{padding:24px 20px 32px}
 body.portfolio-site .portfolio-navigation nav[aria-label="Main navigation"]{grid-template-columns:1fr}
 body.portfolio-site.home-redesign .home-intro-copy h1{font-size:clamp(32px,8.8vw,40px);letter-spacing:-1px;max-width:100%}
 body.portfolio-site.home-redesign .home-intro-copy .eyebrow{font-size:9px;letter-spacing:1.5px;line-height:1.6}
 body.portfolio-site.home-redesign .home-intro-copy>p:not(.eyebrow){font-size:16px;margin-top:16px}
 body.portfolio-site .home-intro-actions{flex-direction:column;align-items:stretch;gap:10px}
 body.portfolio-site .home-intro-actions .service-button{width:100%;min-height:44px}
 body.portfolio-site.home-redesign .home-intro-art{max-height:240px}
 body.portfolio-site .home-featured>.hero-bottom{align-items:flex-start;flex-direction:column}
 body.portfolio-site .home-featured .hero-image img{max-height:300px}
 body.portfolio-site .home-featured .hero-description{font-size:15px}
 body.portfolio-site .notes-editorial .notes-editorial-grid,body.portfolio-site .overview-collection .book-shelf,body.portfolio-site .brand-collection .book-shelf{grid-template-columns:1fr}
 body.portfolio-site .testimonial-grid{grid-template-columns:1fr}
 body.portfolio-site .notes-feature h2{font-size:31px}
 body.portfolio-site .case-lead{font-size:17px}
 body.portfolio-site .software-list{gap:8px}
 body.portfolio-site .software-list li{padding:10px 12px;font-size:14px}
 body.portfolio-site .about-portrait{float:none;width:min(100%,290px);margin:0 0 24px}
 body.portfolio-site .site-inquiry-footer{padding:25px 20px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Apply the same compact-header breakpoint to the client workspace. */
@media(max-width:1279px){
 .portal-shell{display:block}
 .portal-shell>.portal-sidebar{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;height:auto;min-height:0;overflow:visible;padding:18px clamp(22px,4vw,44px);border-right:0;border-bottom:1px solid var(--brand-line)}
 .portal-shell .portal-sidebar>.wordmark{grid-column:1;grid-row:1;width:180px;max-width:100%;margin:0}
 .portal-shell .portal-sidebar>.eyebrow{grid-column:1;grid-row:2;text-align:left;margin:4px 0 0}
 .portal-shell .mobile-menu-toggle,body:not(.signed-in) .portal-shell .portal-sidebar button#mobile-menu-toggle{display:flex;grid-column:2;grid-row:1/3;align-self:center;align-items:center;gap:10px;border:1px solid var(--brand-line);border-radius:5px;background:transparent;padding:11px 14px;color:var(--red);font:600 14px Arial,sans-serif;min-height:44px}
 .portal-shell .hamburger-lines{display:grid;gap:4px;width:19px}
 .portal-shell .hamburger-lines>span{display:block;height:2px;width:19px;background:currentColor}
 .portal-shell .portal-mobile-navigation{display:none;grid-column:1/-1;margin-top:12px;padding-top:15px;border-top:1px solid var(--brand-line)}
 .portal-shell .mobile-menu-toggle[aria-expanded="true"]+.portal-mobile-navigation{display:flex}
 .portal-shell .portal-mobile-navigation nav{display:flex;flex-direction:column;gap:5px;margin:0;padding:0}
 .portal-shell .portal-mobile-navigation .nav-link{font-size:14px;padding:12px;width:100%;justify-content:flex-start}
 .portal-shell .portal-mobile-navigation .portfolio-link{margin-top:12px}
 .portal-shell .portal-mobile-navigation .sidebar-bottom{margin-top:15px;padding-top:15px;border-top:1px solid var(--brand-line)}
 .portal-shell main{padding-left:clamp(20px,4vw,44px);padding-right:clamp(20px,4vw,44px);min-width:0}
 .portal-shell .workspace-grid{grid-template-columns:minmax(0,1fr) 250px}
 .portal-shell .project-workspace-top{grid-template-columns:minmax(0,1fr) 250px}
}
@media(max-width:900px){.portal-shell .workspace-grid,.portal-shell .project-workspace-top{grid-template-columns:1fr}.portal-shell .project-summary{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}}
@media(max-width:600px){.portal-shell .project-summary{grid-template-columns:1fr}.portal-shell .project-heading-actions{flex-wrap:wrap}.portal-shell .project-heading-actions>*{max-width:100%;white-space:normal}.portal-shell .tabs{max-width:100%;overflow-x:auto}.portal-shell .prospect-filters{grid-template-columns:1fr}}

/* Keep the professional title with the logo at every width. */
body.portfolio-site .portfolio-identity{min-width:0}
body.portfolio-site.home-redesign .home-introduction{grid-template-columns:minmax(0,1fr)}
body.portfolio-site.home-redesign .home-intro-copy{grid-column:1;grid-row:1;width:100%}
body.portfolio-site.home-redesign .home-intro-copy h1{max-width:28ch}
body.portfolio-site.home-redesign .home-intro-copy>p:not(.eyebrow){max-width:65ch}
@media(max-width:1279px){body.portfolio-site .opening>aside .portfolio-identity{grid-column:1;grid-row:1;width:190px;max-width:100%}body.portfolio-site .opening>aside .portfolio-identity .profession{display:block;margin:12px 0 0;font-size:9px;line-height:1.5;letter-spacing:1.6px;text-align:left}body.portfolio-site .opening>aside .portfolio-identity .wordmark{width:100%;max-width:100%}}
@media(max-width:479px){body.portfolio-site .opening>aside .portfolio-identity{width:160px}}

/* Center the compact-header identity independently of the menu control. */
@media(max-width:1279px){body.portfolio-site .opening>aside{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}body.portfolio-site .opening>aside .portfolio-identity{grid-column:2;grid-row:1;width:220px;max-width:100%;text-align:center}body.portfolio-site .opening>aside .portfolio-identity .wordmark{width:200px;max-width:100%;margin:0 auto}body.portfolio-site .opening>aside .portfolio-identity .profession{white-space:nowrap;text-align:center;font-size:9px;letter-spacing:1.2px;margin:10px 0 0}body.portfolio-site .portfolio-identity .profession br{display:none}body.portfolio-site .portfolio-identity .profession br:after{content:' '}body.portfolio-site .opening>aside .portfolio-menu-toggle{grid-column:3;grid-row:1;justify-self:end}body.portfolio-site .portfolio-navigation{grid-column:1/-1}}
@media(max-width:479px){body.portfolio-site .opening>aside{padding-left:16px;padding-right:16px;column-gap:6px}body.portfolio-site .opening>aside .portfolio-identity{width:210px}body.portfolio-site .opening>aside .portfolio-identity .wordmark{width:175px}body.portfolio-site .opening>aside .portfolio-menu-toggle{padding:10px;min-width:42px;justify-content:center}body.portfolio-site .portfolio-menu-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
/* Homepage introduction as a distinct, centered editorial header. */
body.portfolio-site.home-redesign .home-introduction{display:block;padding:clamp(30px,4.5vw,64px) 0 clamp(32px,4vw,56px);margin:0 0 clamp(30px,4vw,50px);border-bottom:1px solid var(--brand-line);text-align:center}
body.portfolio-site.home-redesign .home-intro-copy{max-width:980px;margin:0 auto;padding:0;text-align:center}
body.portfolio-site.home-redesign .home-intro-copy .eyebrow{max-width:100%;margin:0 auto 16px;text-align:center}
body.portfolio-site.home-redesign .home-intro-copy h1{max-width:29ch;margin:0 auto;text-align:center;text-wrap:balance}
body.portfolio-site.home-redesign .home-intro-copy>p:not(.eyebrow){max-width:65ch;margin:22px auto 0;text-align:center}
body.portfolio-site.home-redesign .home-intro-actions{justify-content:center;margin-top:26px}
@media(max-width:479px){body.portfolio-site.home-redesign .home-introduction{padding-top:24px;padding-bottom:30px;margin-bottom:30px}body.portfolio-site.home-redesign .home-intro-copy .eyebrow{margin-bottom:14px}body.portfolio-site.home-redesign .home-intro-copy>p:not(.eyebrow){margin-top:18px}body.portfolio-site.home-redesign .home-intro-actions{margin-top:22px}}

/* Company feature artwork must show the complete supplied cover. */
body.portfolio-site.company-page .book-feature-art{position:static;min-height:0;height:auto;aspect-ratio:auto;overflow:visible;align-self:center}
body.portfolio-site.company-page .book-feature-art img{position:static;inset:auto;width:100%;height:auto;min-height:0;max-height:490px;object-fit:contain;object-position:center}
body.portfolio-site.aps-page .company-logo-window{position:relative;overflow:hidden;width:min(360px,90%);aspect-ratio:3/1;margin:0 auto 8px}
body.portfolio-site.aps-page .company-logo-window .company-header-logo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:auto;max-width:none;margin:0;object-fit:contain;background:transparent}
body.portfolio-site.aps-page .company-logo-window+h1{margin-top:8px}
