/* Page-specific portfolio. Shared navigation and project cases stay unchanged. */
.portfolio-main{background:#f7f1ea;color:#211c1f}
.portfolio-hero{background:#241b18;color:#f7f1ea;padding:112px 0 80px;overflow:clip}
.portfolio-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(40px,6vw,90px);align-items:center}
.portfolio-intro{max-width:630px;position:relative;z-index:1}
.portfolio-main .portfolio-eyebrow{display:flex;align-items:center;gap:13px;color:#c98b6b;font-size:10px;line-height:1.5;letter-spacing:.17em;text-transform:uppercase;font-weight:600;margin:0 0 26px}
.portfolio-eyebrow::before{content:'';width:30px;height:1px;background:currentColor}
.portfolio-hero h1{font:500 clamp(39px,3.6vw,53px)/1.12 var(--serif);letter-spacing:-.035em;margin:0 0 28px;color:#fff7ee}
.portfolio-hero h1 em{color:#d39775;font-weight:inherit}
.portfolio-title-line{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.portfolio-title-line>span{display:block}
.portfolio-main .portfolio-description{font-size:14px;line-height:1.85;max-width:490px;color:#c6b8ae;margin:0}
.portfolio-explore,.portfolio-conversation{display:inline-flex;align-items:center;gap:28px;padding:13px 0;font-size:12px;font-weight:600;text-decoration:none}
.portfolio-explore{color:#e3af8d;margin-top:25px;border-bottom:1px solid #ac6b4d}
.portfolio-explore span,.portfolio-conversation span{transition:transform 250ms ease}
.portfolio-explore:hover span{transform:translateY(3px)}
.portfolio-art{position:relative;min-width:0;height:360px;display:grid;place-items:center}
.portfolio-art svg{width:100%;height:auto;max-height:390px;overflow:visible}
.portfolio-art [data-art-piece]{transform:translate3d(var(--mosaic-x,0px),var(--mosaic-y,0px),0)}
.portfolio-ready .portfolio-art{animation:portfolio-art-in 1200ms cubic-bezier(.16,1,.3,1) both}
@keyframes portfolio-art-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
.portfolio-gallery{padding:88px 0 96px;scroll-margin-top:100px}
.portfolio-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:76px 40px}
.portfolio-project{min-width:0}
.portfolio-project-link{display:block;color:inherit;text-decoration:none;border-radius:8px}
.portfolio-project-image{position:relative;height:clamp(350px,28vw,400px);overflow:hidden;background:#e8ded3;border:1px solid #dccabd;border-radius:8px;isolation:isolate}
.portfolio-project-image img{display:block;width:100%;height:auto;max-width:100%;transform:translateY(0)}
.portfolio-project-meta{display:flex;justify-content:space-between;align-items:center;gap:22px;padding-top:23px}
.portfolio-main .portfolio-categories{font-size:10px;letter-spacing:.06em;line-height:1.6;color:#98755e;margin:11px 0 0}
.portfolio-project h2{font:500 clamp(24px,2.3vw,33px)/1.14 var(--serif);letter-spacing:-.025em;color:#211c1f;margin:0}
.portfolio-project-arrow{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #c9ab94;border-radius:50%;color:#9c563b;font-size:22px;transition:background 250ms ease,color 250ms ease,border-color 250ms ease}
.portfolio-project-link:focus-visible{outline:2px solid #a9573a;outline-offset:8px}
.portfolio-project-link:focus-visible .portfolio-project-arrow{background:#a9573a;color:#fff7ee;border-color:#a9573a}
@media(hover:hover) and (pointer:fine){
.portfolio-project-link:hover .portfolio-project-arrow{background:#a9573a;color:#fff7ee;border-color:#a9573a}
.portfolio-project-link:hover .portfolio-project-image{border-color:#b6805d}
}
.portfolio-cta{padding:100px 0 110px;background:#241b18;color:#f7f1ea;text-align:center}
.portfolio-cta>.container{display:flex;flex-direction:column;align-items:center}
.portfolio-cta .portfolio-eyebrow{justify-content:center}
.portfolio-cta h2{font:500 clamp(35px,4.2vw,60px)/1.12 var(--serif);letter-spacing:-.035em;max-width:910px;margin:0;color:#f7f1ea;text-wrap:balance}
.portfolio-cta h2 em{color:#d39775;font-weight:inherit}
.portfolio-conversation{color:#e3af8d;margin-top:32px;position:relative}
.portfolio-conversation::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;background:#b97c58;transform:scaleX(.8);transform-origin:left;transition:transform 300ms ease}
.portfolio-conversation:hover::after,.portfolio-conversation:focus-visible::after{transform:scaleX(1)}
.portfolio-conversation:hover span{transform:translate(3px,-3px)}
.portfolio-explore:focus-visible,.portfolio-conversation:focus-visible{outline:2px solid #c98b6b;outline-offset:6px}
.portfolio-ready [data-portfolio-reveal]{opacity:0;transform:translateY(18px);transition:opacity 850ms ease var(--card-delay,0ms),transform 1000ms cubic-bezier(.16,1,.3,1) var(--card-delay,0ms)}
.portfolio-ready [data-portfolio-reveal].is-visible{opacity:1;transform:none}
@media(min-width:768px) and (max-width:1050px){
.portfolio-hero-grid{grid-template-columns:1.2fr .8fr;gap:30px}
.portfolio-hero h1{font-size:42px}
.portfolio-art{height:300px}
.portfolio-gallery-grid{gap:58px 28px}
.portfolio-project-image{height:330px}
}
@media(max-width:767px){
.portfolio-hero{padding:108px 0 52px}
.portfolio-hero-grid{grid-template-columns:minmax(0,1fr);gap:25px}
.portfolio-hero h1{font-size:clamp(37px,8.6vw,52px);max-width:560px}
.portfolio-main .portfolio-description{font-size:14px}
.portfolio-art{height:185px;max-width:280px;margin:0 auto;width:100%}
.portfolio-art svg{max-height:210px}
.portfolio-art [data-art-piece]{transform:none!important}
.portfolio-gallery{padding:58px 0 66px}
.portfolio-gallery-grid{grid-template-columns:minmax(0,1fr);gap:48px}
.portfolio-project-image{height:clamp(245px,70vw,350px)}
.portfolio-project-meta{padding-top:20px;gap:15px}
.portfolio-project h2{font-size:28px}
.portfolio-project-arrow{width:40px;height:40px;flex-basis:40px}
.portfolio-cta{padding:68px 0 80px}
.portfolio-cta h2{font-size:clamp(33px,8.5vw,43px)}
.portfolio-conversation{font-size:12px;gap:16px;min-height:44px}
.portfolio-ready [data-portfolio-reveal]{transition-delay:0ms}
}
@media(prefers-reduced-motion:reduce){
.portfolio-ready [data-portfolio-reveal]{opacity:1;transform:none;transition:none}
.portfolio-ready .portfolio-art{animation:none}
.portfolio-project-image img,.portfolio-project-arrow,.portfolio-explore span,.portfolio-conversation span,.portfolio-conversation::after{transition:none;transform:none!important}
}

/* Match the home and About header without a strip above the hero. */
body.projects-page{padding-top:0}
.projects-page #site-header{left:50%;right:auto;top:0;width:100%;transform:translateX(-50%);background:transparent!important;border:1px solid transparent;border-radius:0;box-shadow:none;backdrop-filter:none;transition:width .3s ease,top .3s ease,height .3s ease,min-height .3s ease,border-radius .3s ease,background .3s ease,box-shadow .3s ease}
.projects-page #site-header.is-scrolled{top:12px;width:min(1240px,calc(100% - 48px));height:68px;min-height:68px;border-radius:999px;border-color:rgba(242,236,231,.09);background:rgba(12,11,14,.96)!important;backdrop-filter:blur(16px);box-shadow:0 12px 36px rgba(0,0,0,.3)}
.projects-page #site-header.is-scrolled .nav-shell{width:100%;height:66px;min-height:66px;padding:0 24px;gap:16px}
@media(max-width:900px){
  .projects-page #site-header.is-scrolled{top:10px;width:calc(100% - 24px);height:64px;min-height:64px}
  .projects-page #site-header.is-scrolled .nav-shell{height:62px;min-height:62px;padding:0 14px}
}
@media(prefers-reduced-motion:reduce){.projects-page #site-header{transition:none}}
