.current-projects-page { max-width: 1480px; }
.current-projects-content { width:calc(100% - 96px); max-width:1360px; margin:0 auto; padding: 32px 0 22px; }
.current-projects-intro { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:26px; }
.current-projects-intro h1 { margin:8px 0 0; font-size:clamp(34px,4.6vw,62px); line-height:1.08; letter-spacing:-.045em; }
.current-projects-intro p { margin:0 0 3px; color:#cbb7a8; font-size:16px; line-height:1.6; }
#app .project-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
#app .project-tabs button { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:58px; padding:16px 20px; border:1px solid #684b38; border-radius:12px; background:#1b1510; color:#f8ede3; font:inherit; font-size:17px; cursor:pointer; transition:background-color 160ms,color 160ms,border-color 160ms; }
#app .project-tabs button:hover { background:#38281e; border-color:#f3c29f; }
#app .project-tabs button[aria-selected=true] { background:#f3c29f; color:#181310; border-color:#f3c29f; }
.project-tabs button span,.project-open span { font-family:Arial,sans-serif; }
#app .project-tabs button:focus-visible,.project-open:focus-visible { outline:3px solid #fff3e7; outline-offset:3px; }
.project-preview { border:1px solid #684b38; border-radius:18px; overflow:hidden; background:#17110e; }
.project-preview:focus-visible { outline:2px solid #f3c29f; outline-offset:3px; }
.project-preview-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 26px 10px; }
.project-preview-toolbar h2 { font-size:24px; line-height:1.25; letter-spacing:-.025em; margin:0 0 6px; }
.project-preview-toolbar p { font-size:15px; line-height:1.5; color:#cbb7a8; margin:0; }
#app .project-open { display:inline-flex; align-items:center; justify-content:center; gap:16px; padding:12px 17px; min-height:44px; border:1px solid #886147; border-radius:999px; color:#f3c29f; text-decoration:none; font-size:14px; white-space:nowrap; }
#app .project-open:hover { color:#181310; background:#f3c29f; }
.project-demo-note { margin:0; padding:0 26px 18px; color:#bda48e; font-size:12px; line-height:1.5; }
.project-frame-wrap { background:#fff; height:760px; }
.project-frame-wrap iframe { display:block; border:0; width:100%; height:100%; background:#fff; }
.project-contact-line { margin:22px 0 0; color:#cbb7a8; text-align:center; font-size:15px; }
.project-contact-line a { color:#f3c29f; margin-left:7px; white-space:nowrap; }
@media(min-width:1500px){.project-frame-wrap{height:850px;}}
@media(max-width:700px){
 .current-projects-content{width:calc(100% - 32px);padding-top:24px;}
 .current-projects-intro{display:block;margin-bottom:22px;}
 .current-projects-intro p{margin-top:14px;}
 .current-projects-intro p br{display:none;}
 #app .project-tabs{gap:6px;}
 #app .project-tabs button{font-size:13px;line-height:1.3;padding:12px 9px;min-height:62px;text-align:left;}
 #app .project-tabs button span{display:none;}
 .project-preview-toolbar{display:block;padding:20px 16px 12px;}
 .project-preview-toolbar h2{font-size:22px;}
 #app .project-open{margin-top:14px;}
 .project-demo-note{padding:0 16px 16px;}
 .project-frame-wrap{height:720px;}
 .project-contact-line{line-height:1.7;}
}
@media(prefers-reduced-motion:reduce){#app .project-tabs button{transition:none;}}

.project-contact-line a { display:inline-flex; align-items:center; gap:5px; }
.project-tabs svg,.project-open svg { display:block; }

/* The office fills the page while the portfolio navigation remains in reach. */
.studio-page { width:100%; max-width:none; height:100dvh; min-height:520px; display:flex; flex-direction:column; }
#app .studio-page>.header { flex:0 0 auto; width:100%; max-width:none; min-height:74px; padding:8px 3vw; margin:0; }
.studio-page>.header .brand img { width:48px; height:48px; }
.studio-main { flex:1; min-height:0; display:flex; flex-direction:column; }
.studio-intro { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 3vw; border-bottom:1px solid #684b38; }
.studio-intro h1 { font-size:20px; line-height:1.3; margin:0; letter-spacing:-.02em; }
.studio-intro p { color:#cbb7a8; font-size:14px; line-height:1.4; margin:0; }
.studio-frame-wrap { flex:1; min-height:0; overflow:hidden; background:white; }
.studio-frame-wrap iframe { display:block; width:100%; height:100%; border:0; background:white; }
@media(max-width:600px){
 #app .studio-page>.header { min-height:66px; padding:8px 14px; }
 .studio-page>.header .brand img { width:40px; height:40px; }
 .studio-intro { align-items:flex-start; flex-direction:column; gap:3px; padding:9px 14px; }
 .studio-intro h1 { font-size:18px; }
 .studio-intro p { font-size:13px; }
}
